A React-based WYSIWYG editor for Typst documents with real-time preview.
# Install dependencies
npm install
# Start development server
npm start
# Start backend server (in another terminal)
cd typst-server
node server.jsVisit http://localhost:3000 to use the editor.
- Rich Text Editing: Tiptap-based editor with toolbar
- Real-time Preview: Live PDF preview
- Slash Commands: Type
/for quick formatting - Typst Syntax: Full Typst markup support
/bold,/italic- Text formatting/heading1-3- Headers/bulletList,/orderedList- ListsCtrl+B/I/U- Bold/Italic/Underline
src/
├── components/
│ ├── Editor/ # Rich text editor
│ ├── Preview/ # PDF preview
│ └── Layout/ # UI layout
├── services/ # API calls
└── utils/ # Helpers
typst-server/ # Backend server
The editor requires a Typst compilation server running on port 8080:
POST /compile- Compile Typst to PDFGET /health- Health check
MIT