Browser-based LaTeX editor that compiles entirely in your browser.
siglum/
├── app/ # Frontend React app (Cloudflare Pages)
├── worker/ # API worker (Cloudflare Workers + R2)
- Full LaTeX compilation in browser (pdfTeX, XeTeX)
- CodeMirror 6 editor with LaTeX syntax highlighting
- Live PDF preview
- GitHub sync (clone, pull, push, auto-sync)
- OPFS-based file storage
- Automatic package fetching from CTAN
- Preamble caching for faster compiles
# Install dependencies
bun install
# Start app dev server
bun run dev
# Start worker locally (optional, for API development)
bun run dev:worker# Login to Cloudflare
wrangler login
# Create Pages project
wrangler pages project create siglum
# Create R2 bucket (if not exists)
wrangler r2 bucket create siglum-bundles# Deploy frontend to Cloudflare Pages
bun run deploy:pages
# Deploy API worker
bun run deploy:worker
# Upload bundles/WASM to R2 (from siglum-engine)
bun run upload:r2
# Or with custom path:
cd worker && ./upload-to-r2.sh /path/to/siglum-engineUses these separate packages:
- @siglum/busytex-lazy - LaTeX compiler (pdfTeX/XeTeX in WASM)
- @siglum/git - Browser-based Git operations
- @siglum/filesystem - Filesystem abstraction
- React 18 + TypeScript + Vite
- CodeMirror 6 (editor)
- pdf.js (PDF rendering)
- Cloudflare Workers + R2 (API/storage)
- Cloudflare Pages (hosting)
MIT