regex-visualizer
Render 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) "Export Image" feature. Use when the user provides a regex and wants an image for documentation, sharing, debugging, or embedding; output should match the web UI rendering rather than a re-implemented diagram. Supports flags i/m/g.
- License 许可
- MIT
- 最近更新
- 2026-05-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- regex-visualizer
- description
- Render 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) "Export Image" feature. Use when the user provides a regex and wants an image for documentation, sharing, debugging, or embedding; output should match the web UI rendering rather than a re-implemented diagram. Supports flags i/m/g.
02 资源文件 10
- 参考文档_meta.json289 B
- 参考文档agents/openai.yaml262 B
- 资产文件assets/example.svg9.1 KB
- 资产文件assets/regulex.html147.9 KB
- 许可证LICENSE.txt1.1 KB
- 参考文档manifest.yaml306 B
- 参考文档package-lock.json30.8 KB
- 参考文档package.json158 B
- 参考文档README.md561 B
- 脚本scripts/render.mjs7.7 KB
03 SKILL.md 正文
Regex Visualizer
Overview
Export 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).
Quick Start
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
Install Dependencies
This skill uses puppeteer-core (does not bundle Chromium). Install once:
cd ~/.codex/skills/regex-visualizer
npm install
Screenshot
An example export generated using the built-in web UI rendering:
assets/example.pngassets/example.svg
Behavior
- Uses
assets/regulex.html(a copy of the Regulex-Plus web UI) and loads it with#!cmd=export&flags=...&re=.... - Waits for the page to produce the exported canvas (
canvas.exportCanvas) and then writes:<out>.pngfrom the same canvas as the web UI "Export Image" button<out>.svgfrom the same<svg>element used by the web UI
Notes
- Flags are limited to what the web UI supports by default:
i,m,g. - If the regex fails to parse, the script surfaces the same error text shown in the UI.
Resources
scripts/
scripts/render.mjs: Headless export to SVG/PNG via the built-incmd=exportmode.
references/
None.
assets/
assets/regulex.html: Copy ofRegulex-Plus/docs/index.htmlused for rendering/export.
04 同仓库更多 Skills
zvukogram
Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.
zohomail
Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-recruit
Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows. Use this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-people
Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave. Use this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-mail
Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-inventory
Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments. Use this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.