WaveDrom CLI
$ wavedrom-cli Official Low RiskWaveDrom CLI (wavedrom-cli) compiles WaveJSON / JSON5 timing and register-field specifications directly into SVG (-s) or PNG (-p) diagrams in Node.js without a browser. Its declarative JSON5 input schema makes it particularly easy for coding agents to author deterministic digital waveform and protocol bitfield diagrams.
npm install -g wavedrom-cli Compiling WaveJSON/JSON5 files to SVG or PNG locally via wavedrom-cli takes under a second with no MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean non-interactive -i + -s/-p CLI with declarative JSON5 input, though it lacks --json diagnostic output or a dedicated --validate dry flag.
- Declarative JSON5 input ideal for LLM generation
- No dry-run/validate-only flag or JSON diagnostics
Offline Node.js renderer converting JSON5 data structures into SVG/PNG files.
- Zero credentials or network calls
Standard npm/npx package (wavedrom-cli), though PNG output (-p) pulls native image conversion dependencies (sharp).
- Available via
npmandnpxacross macOS, Linux, and Windows
De-facto standard for digital hardware timing waveforms and bitfield diagrams, though narrow hardware/protocol scope.
- Focused digital timing and bitfield diagram renderer
Official WaveDrom project (wavedrom/cli) under MIT with stable, infrequent updates.
- Official
wavedromGitHub org
Clear README flags and rich WaveJSON syntax tutorial at wavedrom.com.
- Official tutorial at wavedrom.com and
wavedrom/cliREADME
Security, Auth & Guardrails
None required; renders local WaveJSON/JSON5 files offline.
100% free, offline, and open-source (MIT).
# WaveDrom CLI Agent Rules - Prefer SVG output (`-s out.svg`) over PNG (`-p`) unless raster output is explicitly required, as PNG depends on native `sharp`/cairo bindings. - Validate JSON5 syntax before passing `-i <file>` to avoid opaque parser stack traces.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx wavedrom-cli --help
Prints supported input (-i) and output (-s, -p) options without rendering files.
Controlled Writes & Previews
npx wavedrom-cli -i wave.json5 -s out.svg
Compiles the WaveJSON specification in wave.json5 into vector out.svg.
Strengths for Agents
- + Declarative WaveJSON/JSON5 input is easy for coding agents to generate and diff cleanly.
- + Browser-free SVG rendering (
-s out.svg) runs quickly offline.
Caveats & Pitfalls
- ! Narrowly specialized for digital timing waveforms and register bitfields.
- ! No
--validatedry-run mode or JSON error output; invalid JSON5 throws Node stack traces.