100% Client-Side
Zero tracking • Zero accounts • Zero lock-in
Write Markdown. See it live.
CodeInk is a free, open-source online Markdown editor with real-time preview, syntax highlighting, Mermaid diagrams, and KaTeX math support. Built with privacy and performance in mind.Get started
Create your first document in seconds. No signup required.
View on GitHub
Full source code available under MIT license.
Why CodeInk?
CodeInk is designed for developers and technical writers who need a powerful Markdown editor without compromising privacy or requiring accounts.Private by architecture
Your documents are saved in IndexedDB. Nothing is transmitted, stored, or processed on any server. Zero tracking, zero cookies.
No accounts, no lock-in
Open the editor and start writing. No signup, no subscriptions, no vendor lock-in. Your data stays under your control.
Built with modern tech
Astro, CodeMirror 6, Shiki, and Tailwind CSS. Fast, lightweight, and works offline once cached.
Free & open source
MIT licensed. No premium tiers, no paywalls. Full source on GitHub.
Core features
Everything you need to write technical Markdown, built into one clean interface.Real-time split-pane editor
Write Markdown on the left, see the rendered output on the right. Updates instantly as you type with live word count, line count, and character count in the status bar.src/scripts/editor.ts
Documents auto-save after 1 second of inactivity. Save status is displayed in the bottom-right corner of the editor.
Syntax highlighting via Shiki
Supports 16+ programming languages using the same highlighting engine as VS Code, with the One Dark Pro theme.Mermaid diagrams
Render flowcharts, sequence diagrams, ER diagrams, Gantt charts, class diagrams, and more — all in real-time.Mermaid diagrams are rendered client-side in the preview pane. They update automatically when you modify the diagram code.
KaTeX math
Render LaTeX math expressions inline and in display mode. Perfect for equations, matrices, and integrals. Inline: — Einstein’s famous equation. Display mode:Markdown linting with auto-fix
Real-time diagnostics via remark-lint with one-click auto-fix. CodeInk uses unified, remark-parse, and remark-preset-lint-recommended to catch common Markdown issues.src/scripts/markdown-linter.ts
Local storage via IndexedDB
All documents are stored locally in your browser using IndexedDB. No server, no sync, complete privacy.src/lib/db.ts
Flexible view modes
Switch between split-pane, editor-only, and preview-only modes. Perfect for different workflows and screen sizes.src/scripts/view-mode.ts
On mobile devices (width < 640px), CodeInk automatically defaults to editor-only mode for better usability.
Export to Markdown
Download your documents as.md files with one click. Filenames are automatically generated from your document title.
src/scripts/export.ts
Technology stack
CodeInk is built with modern web technologies for performance and developer experience.Astro
Static site generation with partial hydration
CodeMirror 6
Modern editor with extension system
Shiki
VS Code-powered syntax highlighting
Mermaid
Diagrams and flowcharts from text
KaTeX
Fast LaTeX math rendering
Tailwind CSS
Utility-first CSS framework
Frequently asked questions
Is CodeInk free?
Is CodeInk free?
Yes, CodeInk is 100% free and open source. There are no premium tiers, no paywalls, and no feature restrictions. The full source code is available on GitHub.
Does CodeInk require an account?
Does CodeInk require an account?
No. Zero signup required. Open the editor and start writing. Your documents are saved locally in your browser via IndexedDB.
Is my data private in CodeInk?
Is my data private in CodeInk?
Your documents never leave your browser. CodeInk runs 100% client-side with zero tracking and zero cookies. Nothing is stored on any server.
Does CodeInk support Mermaid diagrams?
Does CodeInk support Mermaid diagrams?
Yes. CodeInk renders Mermaid diagrams in real-time directly in the preview pane. Supported types include flowcharts, sequence diagrams, ER diagrams, Gantt charts, class diagrams, and more.
Does CodeInk support math equations?
Does CodeInk support math equations?
Yes. CodeInk supports KaTeX for rendering LaTeX math expressions inline (with
$...$) and in display mode (with $$...$$).Can I export my documents?
Can I export my documents?
Yes. Click the export button in the editor to download your document as a
.md file. The filename is automatically generated from your document’s first heading.Does CodeInk work offline?
Does CodeInk work offline?
Yes. Once CodeInk is cached by your browser, it works completely offline. All processing happens client-side.
How do I delete a document?
How do I delete a document?
Navigate to the documents page and hover over the document you want to delete. Click the trash icon that appears in the top-right corner of the card.
Get started
Ready to start writing? Follow the quickstart guide to create your first document.Quickstart
Create your first document in seconds
GitHub Repository
Star us on GitHub and contribute