Stria is a web-based reproduction of the Obsidian experience, built for the modern web. This repository provides the open-source frontend editor, offering a powerful and extensible Markdown environment with full live-preview capabilities.
While this repository is strictly the Editor Core, high-quality Markdown (.md) is the gold standard for modern data systems. We provide the frontend foundation that allows users to create structured, clean Markdown files that serve as the perfect source for any backend implementation.
This open-source release includes the suite of Obsidian-style writing tools. We are sharing the Editor logic for everyone to test and use:
- Live Preview: A seamless "what you see is what you get" experience while writing.
- Mermaid & Diagrams: Full support for rendering complex flowcharts and diagrams directly in the editor.
- Developer API Specs: We have implemented specifications for the simple API to help you build out your own backend persistence and logic.
- Clean Markdown Output: Generates standard
.mdfiles that are perfectly structured for documentation, study notes, or data processing.
In the current tech landscape, Retrieval-Augmented Generation (RAG) is a necessity, and those systems require high-quality .md files to function effectively.
- Data Integrity: Stria ensures the Markdown output is clean and structured correctly for LLM loaders.
- Information Density: By supporting diagrams and code fences, the editor helps users create more descriptive context for vector embeddings.
- Standardized Library: A high-quality editor allows users to build a consistent knowledge base that can be easily indexed by AI.
- Frontend-Only Testing: A plug-and-play frontend for developers to test Markdown live preview without needing a complex backend setup.
- API Implementation: Use our defined specs to understand how to build a backend that handles file storage and organization.
- RAG Readiness: Use this editor to generate the high-quality source files needed for RAG infrastructure.
- KISS Compliance: The codebase is kept simple and DRY, making it easy for you to integrate into your own projects.
- Visual Learning: Use Mermaid and diagram support to visualize complex concepts directly within your notes.
- Standardized Note-Taking: Create a personal library of files using a professional-grade editor.
- AI-Ready Notes: Prepare your study materials in a format that AI systems can easily summarize or query.
- Frontend: Next.js, Tailwind CSS
- Editor Core: CodeMirror 6
- Real-time Engine: Yjs
- Format: Markdown (.md)
- Clone the repo:
git clone https://github.com/your-repo/stria.git - Install dependencies:
npm install - Run Dev:
npm run dev
Important
This repository is frontend-only. Advanced organizational features like Graph View, Links Mentions, and Tag Counts are part of our proprietary implementation and are not included in this open-source core.
- React + TypeScript + Vite
- React Router for client-side routes
- TanStack Query for API state
- CodeMirror markdown editor
- Optional client-only collaboration when
VITE_WS_URLis configured
VITE_API_BASE_URL=https://your-api.example.com
VITE_DEFAULT_FILE_SCOPE_ID=default
# Optional
VITE_WS_URL=wss://your-realtime-api.example.comThe API adapter preserves the existing project/node-style client methods and calls endpoints under VITE_API_BASE_URL.
npm run dev
npm run build
npm run preview
npm run lint
npm testOpen your browser and navigate to:
To see the Stria Editor in action or to start building your own full-stack implementation, use the links below. The prototype backend is designed to meet the existing API specifications of the Stria frontend without the overhead of a database.
- Stria Editor (Frontend Demo): https://stria-editor.vercel.app
- Backend Prototype (Live API): https://stria-api.vercel.app
This is a stateless backend prototype. It fulfills all the API requirements for the Stria Editor (fetching, saving, and listing files) but keeps things simple by using in-memory storage or local file system routing rather than a complex database.
- GitHub Repository: https://github.com/e2e2a/stria-api
- Features: Meets all Stria API specs, lightweight Nestjs setup.