Open-source frontend editor, the core writing experience behind the Stria platform.
→ Live Demo · Backend Reference · Backend Repo
The full Stria platform is a proprietary, Next.js-based knowledge management system. This repository is the editor core, extracted, open-sourced, and made available as a standalone frontend application.
This is not a simplified version. This is the actual editor logic: the same live preview engine, the same CodeMirror 6 implementation, the same Mermaid diagram renderer. We separated it from the main platform so developers can use it, extend it, or wire it up to their own backend without touching the proprietary codebase.
| Stria Platform | Stria Editor (this repo) | |
|---|---|---|
| Stack | Next.js | React + TypeScript + Vite |
| Source | Proprietary | Open source |
| Editor core | ✓ | ✓ Same implementation |
| Graph View | ✓ | ✗ |
| Link Mentions | ✓ | ✗ |
| Tag Counts | ✓ | ✗ |
| Multi-user workspace | ✓ | ✗ |
| Backend | Built-in | Bring your own |
- Test Markdown live preview without setting up a backend
- Build your own backend using the included API spec
- Extend or fork the editor for your own product
- Generate clean
.mdfiles for documentation, notes, or AI pipelines
- Live Preview, renders as you type
- Mermaid & Diagrams, flowcharts, sequence diagrams, rendered inline
- API Spec, defined contract so you can build any compatible backend
- Optional Collaboration, Yjs-powered real-time sync, enabled via
VITE_WS_URL - Clean Markdown Output, structured
.mdfiles, ready for any use case
| Layer | Technology |
|---|---|
| Runtime | React + TypeScript + Vite |
| Editor | CodeMirror 6 |
| Real-time (optional) | Yjs |
| Routing | React Router |
| API State | TanStack Query |
git clone https://github.com/your-repo/stria.git
cd stria
npm install
npm run devVITE_API_BASE_URL=https://your-api.example.com
VITE_DEFAULT_FILE_SCOPE_ID=default
# Optional, enables real-time collaboration
VITE_WS_URL=wss://your-realtime-api.example.comnpm run dev # Start development server
npm run build # Production build
npm run preview # Preview production build
npm run lint # Lint
npm test # Run testsThis repo is frontend-only. To run it with a real backend:
- Reference API (live): https://stria-api.vercel.app
- Reference API (repo): https://github.com/e2e2a/stria-api
The reference backend is stateless, no database needed. It implements the full API contract (list, fetch, save, delete files) using in-memory storage. Use it to get started, then replace it with your own when you're ready.
PRs and issues are welcome. If you build something on top of this, open an issue and share it.