Text → schematic · v1.0.2 · MIT
Write the circuit. Get the drawing.
A few lines of plain text become a routed, deterministic SVG schematic — electrical, digital, quantum and UML — on a server, in a build, or in a browser worker, with no dependencies.
npm i @schemd/core - Parse
- Place
- Route by net
- Emit
- compile
- 2.17 ms
- parts
- 11
- nets
- 6
- svg
- 28.4 KB
C4 · Routing
Routed the way a draughtsman would route it.
Every net is grown as one tree on an integer lattice, contention is negotiated away, and the same source gives the same bytes on every engine.
Trees, not detours
Wires meet where you put the junction
Three wires written to N1 run straight into it. 0.8 pulled each one out through
a stub on the left first.
Contact is meaning
Bridges where nets cross, dots where they join
Separate nets never touch: the vertical run hops. Wires of one net that cross are one node, so the crossing gets a dot.
Negotiated, then exact
Contention priced away, in integers
Nets that fight for a channel are torn up and rerouted with the price raised. Every coordinate is an integer milli-unit, so nothing drifts.
D2 · Vocabulary
One language, four families.
The same declarations draw a filter, a flip-flop, a Bell pair or a class diagram. Every kind comes from the compiler's registry, so these pages never fall behind it.
Electrical
Passives, sources, amplifiers, switches and junctions — drawn on the sheet above.
amplifier:U1 "OPA192" at (560, 173) #purple [type=opamp]Digital
flipflop:FF "D-FF" at (260, 140) #purple [type=d]Quantum
prepare:Q0 "|0\rangle" at (70, 90) #blueUML
API.right -> NET.left #slate [ortho association label="builds"]E6 · Evidence
Proof, not promises.
Every figure here is measured from the compiler this page runs, or read from the evidence pages.
- to compile the filter at the top
- 2.17ms
- of SVG for it, byte-identical on every engine
- 28.4KB
- runtime dependencies; no DOM, canvas or fonts
- 0
F3 · The site
One sheet, five modes.
Every page shares the frame: zone rulers to find your place, a title block for state, copper for motion. The frame adapts to the work.