A lightweight, browser-based Markdown editor with live preview. Write Markdown on the left, see the rendered output on the right in real time.
- Live Preview — See your Markdown rendered instantly as you type
- Syntax Highlighting — CodeMirror-powered editor with Markdown syntax highlighting
- Formatting Toolbar — Quick-access buttons for bold, italic, headings, links, lists, quotes, and inline code
- Templates — 8 pre-built Markdown templates (Open Source, API, CLI, Web App, Mobile App, etc.) to kickstart your documentation
- Document Stats — Real-time word, character, and line count
- Download — Export your document as a
.mdfile with a custom filename - Persistent Storage — Your work is automatically saved to
localStorageand restored on reload
Clone the project
git clone https://github.com/radriann21/readocs.gitGo to the project directory
cd readocsInstall dependencies
pnpm installStart the development server
pnpm devBuild for production
pnpm buildsrc/
├── app/ # App entry component
├── features/
│ ├── editor/ # Editor panel (CodeMirror, Toolbar, Header, Templates)
│ ├── header/ # Top navigation bar (title input, download button)
│ └── preview/ # Live Markdown preview panel
├── shared/
│ ├── layouts/ # MainLayout, EditorLayout
│ ├── model/ # Zustand store, types
│ └── utils/ # Helper functions (getSelection, templates)
└── styles/ # Global CSS (Tailwind)
Client: React 19, TypeScript, TailwindCSS 4, Zustand
Editor: CodeMirror 6 (via @uiw/react-codemirror)
Markdown: react-markdown, remark-gfm, rehype-starry-night, rehype-raw, rehype-sanitize
Build: Vite 7, SWC