Draft is a schema-first editor and React component kit for precise technical diagrams.
The application at draft.jonny.design uses the same read-only renderer that
Draft publishes through its shadcn registry. Editor behavior stays in a
separate optional block.
npm install
npm run devnpx tsc --noEmit
npm run lint
npm run registry:build
npm run build
npm testThe root registry.json publishes two entries:
draft-diagramcontainsDiagramProvider,DiagramFrame,Diagram, the diagram primitives, and the document schema.draft-editoradds the complete authoring interface and depends ondraft-diagram.
Install the read-only renderer into a shadcn project with:
npx shadcn@latest add https://draft.jonny.design/r/draft-diagram.jsonInstall the complete editor separately:
npx shadcn@latest add https://draft.jonny.design/r/draft-editor.jsonRun npm run registry:build whenever a published component changes.