Lekh (लेख) — Sanskrit for "writing"
A modern, beautiful, and blazing-fast markdown editor built for every platform.
- 📝 Full Markdown Support — CommonMark + GitHub Flavored Markdown (GFM)
- 🎨 Syntax Highlighting — 100+ programming languages via CodeMirror 6
- ➗ Math Equations — KaTeX-powered LaTeX rendering (inline & block)
- 📊 Mermaid Diagrams — Flowcharts, sequence diagrams, and more
- 🌙 Dark / Light / System Themes — Beautiful, eye-friendly design
- ⌨️ Keyboard-First — Comprehensive shortcuts for everything
- 📁 File Management — Multi-tab editing with unsaved change indicators
- 🔍 Command Palette — Fuzzy search for instant access to all commands
- 🖥️ Split View — Editor + live preview side-by-side with draggable divider
- 🧘 Zen Mode — Distraction-free writing, hide all chrome
- 💾 Auto-Save — Configurable automatic saving
- 📤 Export to HTML — One-click export with embedded styles
- 🖱️ Drag & Drop — Drop
.mdfiles directly into the editor - 🎯 Document Outline — Navigate headings with a click
- ⚙️ Highly Configurable — Font, theme, tab size, word wrap, and more
Coming soon
| Layer | Technology |
|---|---|
| Runtime | Tauri v2 (Rust backend) |
| Frontend | React 19 + TypeScript |
| Bundler | Vite 7 |
| Editor | CodeMirror 6 |
| Markdown | unified / remark / rehype pipeline |
| Math | KaTeX |
| Diagrams | Mermaid |
| State | Zustand |
| Animations | Framer Motion |
| Icons | Lucide React |
| Shortcut | Action |
|---|---|
Ctrl+P |
Command Palette |
Ctrl+S |
Save File |
Ctrl+O |
Open File |
Ctrl+N |
New Tab |
Ctrl+W |
Close Tab |
Ctrl+B |
Toggle Sidebar |
Ctrl+, |
Open Settings |
Ctrl+1 / 2 / 3 |
Editor / Split / Preview |
Ctrl+Shift+E |
Toggle Zen Mode |
Alt+Z |
Toggle Word Wrap |
Ctrl+= / Ctrl+- |
Increase / Decrease Font Size |
Escape |
Close overlay / Exit Zen Mode |
Download the latest release for your platform from the Releases page.
⚠️ Unsigned Binaries Note: All pre-built binaries (Windows, macOS, Linux, and Android) provided in the GitHub Releases are unsigned.
- Windows: You may see a Microsoft Defender SmartScreen warning ("Windows protected your PC"). Click "More info" -> "Run anyway".
- macOS: Gatekeeper may block the app. You may need to bypass this by right-clicking the app and selecting "Open", or by running
xattr -cr /Applications/Lekh.appin your terminal.- Android: Your device may warn you about installing an unsigned APK, or require you to sign it manually depending on your security settings.
Prerequisites:
- Node.js (v18+)
- Rust (latest stable)
- Tauri v2 Prerequisites
# Clone the repository
git clone https://github.com/dcryptoniun/lekh.git
cd lekh
# Install dependencies
npm install
# Run in development mode
npm run tauri dev
# Build for production
npm run tauri build# Initialize Android target
npm run tauri android init
# Run on connected device/emulator
npm run tauri android dev
# Build APK
npm run tauri android buildLekh is designed to run on Windows, macOS, Linux, and Android.
Note: This project has been primarily developed and tested on Windows. While it is architected for cross-platform compatibility, it has not been tested on all platforms. If you encounter issues on macOS, Linux, or Android, please open an issue — contributions and bug reports from all platforms are very welcome!
| Platform | Status |
|---|---|
| Windows | ✅ Tested |
| macOS | |
| Linux | |
| Android |
This project was vibe coded — built through natural language conversations with AI, iterating on ideas, debugging in real-time, and shipping fast. The entire codebase, from architecture to pixel-perfect UI, was crafted through this collaborative human-AI workflow.
Vibe coding is about trusting the flow: describe what you want, refine what you get, and ship something beautiful.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.
- Tauri — For making cross-platform apps lightweight and secure
- CodeMirror — For the incredible editor framework
- unified — For the powerful markdown processing ecosystem
- KaTeX — For beautiful math rendering
- Mermaid — For diagram support
Lekh (लेख) — Write beautifully, everywhere.
Made with ❤️ by Mayank Meena