Install
openclaw skills install regex-visualizerRender Regulex-style railroad diagrams for a JavaScript regular expression and export the exact same SVG/PNG as the Regulex-Plus web UI (docs/index.html) "Ex...
openclaw skills install regex-visualizerExport the Regulex-Plus web visualizer output to *.svg and/or *.png in a single command, using the built-in web UI export logic (no re-drawing).
Render both SVG and PNG:
cd "$env:USERPROFILE\.codex\skills\regex-visualizer"
node scripts/render.mjs `
--re "hello\\s+world" `
--flags "i" `
--out "out/hello-world"
cd ~/.codex/skills/regex-visualizer
node scripts/render.mjs \
--re 'hello\\s+world' \
--flags 'i' \
--out 'out/hello-world'
SVG only:
cd ~/.codex/skills/regex-visualizer
node scripts/render.mjs `
--re "^(a|b)*?$" `
--out "out/re" `
--svg-only
PNG only:
cd ~/.codex/skills/regex-visualizer
node scripts/render.mjs `
--re "^(a|b)*?$" `
--out "out/re" `
--png-only
This skill uses puppeteer-core (does not bundle Chromium). Install once:
cd ~/.codex/skills/regex-visualizer
npm install
An example export generated using the built-in web UI rendering:
assets/example.pngassets/example.svgassets/regulex.html (a copy of the Regulex-Plus web UI) and loads it with #!cmd=export&flags=...&re=....canvas.exportCanvas) and then writes:
<out>.png from the same canvas as the web UI "Export Image" button<out>.svg from the same <svg> element used by the web UIi, m, g.scripts/render.mjs: Headless export to SVG/PNG via the built-in cmd=export mode.None.
assets/regulex.html: Copy of Regulex-Plus/docs/index.html used for rendering/export.