Getting started
Install Schematex and render your first diagram in under a minute.
Install
npm install schematexRender
import { render } from 'schematex';
const svg = render(`
genogram "Smiths"
john [male, 1950]
mary [female, 1952]
john -- mary
alice [female, 1975, index]
`);The diagram type is inferred from the first keyword. The output is a plain SVG
string — safe to inject via dangerouslySetInnerHTML, innerHTML, or write to
disk.
Tree-shakable imports
Import only what you need:
import { render } from 'schematex/genogram';
import { render } from 'schematex/ladder';
import { render } from 'schematex/sld';Each sub-module ships its own parser / layout / renderer and is fully independent.
Frameworks
- React — drop the SVG string into
dangerouslySetInnerHTML, or wait for@schematex/react(coming soon). - SSR — Schematex is pure string output, no DOM. Works in Node, edge runtimes, Cloudflare Workers, and the browser.
- Markdown — a
remark-schematexplugin is planned.
What's next?
Pick your diagram type from the sidebar and read its syntax guide.
Introduction
Schematex compiles plain text into standards-compliant SVG diagrams. 13+ diagram types across relationship, electrical, and business domains.
Genogram
Multi-generation family trees following the McGoldrick standard. Gender-specific shapes, medical condition fills, emotional relationship lines, index-person markers. Used in family therapy, social work, and clinical medicine.