Standards-as-code
for professional diagrams.
Mermaid draws generic flowcharts. Schematex draws a genogram a genetic counselor accepts clinically, ladder logic that maps 1:1 to IEC 61131-3, and a cap table that survives a Series A review — all from a tiny text DSL.
02 / WHERE SCHEMATEX IS THE PROFESSIONAL CHOICE
Diagrams professionals actually sign off on.
Each diagram family is built for the practitioner who owns it — from a few lines of DSL to the version a domain expert would put in a chart, a memo, or a permit. Every output conforms to a published standard.
Clinical pedigree for BRCA1 breast and ovarian cancer — affected status, carriers, presymptomatic markers, proband arrow.
The canonical three-wire motor start/stop ladder logic with seal-in contact — taught in every automation course.
Three-generation genogram with marriages, deaths, the index person, and three kinds of emotional relationships.
Utility one-line: 138 kV grid source → 15 MVA step-down transformer → 13.8 kV medium-voltage bus → three feeder breakers.
Delaware C-corp parent, UK operating subsidiary, Cayman fund, and South Dakota dynasty trust — typical M&A/tax structure.
Six-category Ishikawa diagram for an organic-traffic drop — Content, Technical, Backlinks, UX, Competition, Algorithm — 24 causes.
03 / WHY
Built for diagrams people sign off on.
Generic flowchart tools can't draw professional diagrams. Schematex treats each standard as a first-class citizen.
Every diagram type implements a published spec — McGoldrick, IEC 61131-3, IEEE 315, NSGC, Newick. Domain experts accept it.
No D3, no dagre, no parser generators. Each diagram is an independent plugin with its own parser, layout, renderer.
Minimal grammars an LLM can learn from one example. Copy a gallery DSL into ChatGPT or Claude and get a professional diagram back — first try.
04 / POSITIONING
Not another flowchart library.
How Schematex compares to the tools people already reach for.
| Tool | Domain standards | Deps | Pricing | LLM-shaped DSL |
|---|---|---|---|---|
| Mermaid | generic flowcharts only | dagre-d3 | free | — |
| GoJS | isolated samples | — | $7k+ / seat | — |
| Schemdraw | circuits only | matplotlib | free | Python only |
| draw.io | GUI — no published spec | — | free | — |
| schematex | 20 families · spec-cited | 0 | free | designed for it |
05 / QUICKSTART
Install in 10 seconds.
One function, one string in, one SVG out. Works anywhere TypeScript does.
npm install schemateximport { render } from 'schematex';
const svg = render(`
genogram "Smiths"
john [male, 1950]
mary [female, 1952]
john -- mary
alice [female, 1975, index]
`);import { render } from 'schematex';
export default function Page() {
const svg = render(dsl);
return <div dangerouslySetInnerHTML={{ __html: svg }} />;
}'use client';
import { render } from 'schematex';
import { useMemo } from 'react';
export function Diagram({ dsl }: { dsl: string }) {
const svg = useMemo(() => render(dsl), [dsl]);
return <div dangerouslySetInnerHTML={{ __html: svg }} />;
}Start with a single string.
Open the playground to render any of 20 diagram types live — or browse the gallery for DSL you can copy, paste, and adapt.