Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

WaveDrom CLI

$ wavedrom-cli Official Low Risk
WaveDrom · Design & Docs · MIT · macos / linux / windows

WaveDrom 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.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g wavedrom-cli
CLI vs MCP Decision CLI Only

Compiling WaveJSON/JSON5 files to SVG or PNG locally via wavedrom-cli takes under a second with no MCP overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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
Trust & Safety 24 / 25

Offline Node.js renderer converting JSON5 data structures into SVG/PNG files.

  • Zero credentials or network calls
Setup & Portability 13 / 15

Standard npm/npx package (wavedrom-cli), though PNG output (-p) pulls native image conversion dependencies (sharp).

  • Available via npm and npx across macOS, Linux, and Windows
Utility & Efficiency 11 / 15

De-facto standard for digital hardware timing waveforms and bitfield diagrams, though narrow hardware/protocol scope.

  • Focused digital timing and bitfield diagram renderer
Maintenance & Lineage 7 / 10

Official WaveDrom project (wavedrom/cli) under MIT with stable, infrequent updates.

  • Official wavedrom GitHub org
Docs & Verifiability 7 / 10

Clear README flags and rich WaveJSON syntax tutorial at wavedrom.com.

  • Official tutorial at wavedrom.com and wavedrom/cli README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; renders local WaveJSON/JSON5 files offline.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect WaveDrom CLI flags
npx wavedrom-cli --help

Prints supported input (-i) and output (-s, -p) options without rendering files.

Controlled Writes & Previews

Render digital timing diagram to SVG
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 --validate dry-run mode or JSON error output; invalid JSON5 throws Node stack traces.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI