Schematics from plain text

Write one part or one wire per line. schemd places the parts, routes the wires and draws the SVG.

npm i @schemd/core
pronounced like skemd /skɛmd/
Active low-pass filter11 components and 12 connections.VINVinR110 kΩN1VcC11 nFU1OPA192FBVfbRF100 kΩRG10 kΩVOUTVoutG0 VG20 V
Active low-pass filter
Active low-pass filter: 11 parts on 6 nets, compiled in 2.06 ms. Hover a line to find its wire.

What it draws

The same language draws four kinds of diagram. Each figure shows one line of its source.

Registered inverter5 components and 4 connections.DDCLKCLKCLKDFFD-FFINVNOTQQ
Registered inverter
Registered inverter flipflop:FF "D-FF" at (260, 140) #purple [type=d]
Bell pair6 components and 5 connections.Q0|0⟩Q1|0⟩HHHCXCXM0MM1M
Bell pair
Bell pair prepare:Q0 "|0\rangle" at (70, 90) #blue
Compiler and netlist2 components and 1 connection.builds«entry»Compiler- limits: Limits+ compile(src): Svg+ diagnose(src): ListNetlist- nets: Net[]- nodes: Node[]+ verify(): Report
Compiler and netlist
Compiler and netlist API.right -> NET.left #slate [ortho association label="builds"]

0.8

R1aN1VxR2bC1c

1.3.1

Wires meet at the junction4 components and 3 connections.R1aN1VxR2bC1c
Wires meet at the junction
Three wires to one junction, then and now.
Bridges and dots8 components and 4 connections.AABBCCDDTTUUSSZZ
Bridges and dots
Separate nets bridge where they cross.

At a glance

Package@schemd/core 1.3.1
Component kinds114
Runs onNode.js 24 or newer, browsers, web workers
DependenciesNone
OutputThe same SVG bytes on every engine
Design rules54 of 57 documentation diagrams pass
LicenceMIT