do-md/domd
30KB Markdown-native WYSIWYG editor for React, built for AI streaming, human editing, huge files, macOS, Web, and agent workflows.
What it solves
DOMD provides a high-performance, WYSIWYG Markdown editor that avoids the common lag and flicker associated with large files or real-time streaming. It solves the problem of fixed inline syntax in Markdown by allowing developers to extend the grammar to include semantic types and interactive React components directly within the document.
How it works
At its center is a Markdown-native editor kernel (@do-md/core-react) that treats the Markdown document as the source of truth rather than converting it to an intermediate rich-text format. It uses a deterministic state machine for parsing and rendering, ensuring that only changed nodes are updated. For collaboration and offline work, it employs a CRDT foundation (via an optional Yjs plugin) to enable conflict-free merging at the paragraph level and real-time synchronization of content and cursors.
Who it’s for
- Developers building AI interfaces, collaborative workspaces, or CMS fields that require a lightweight, streaming-capable Markdown editor.
- Writers and Power Users who need a fast, local-first Markdown editor capable of handling documents up to 20,000 lines without performance degradation.
- AI Agent Creators who can use the provided CLI to stream content into documents or automate rewrites.
Highlights
- Ultra-lightweight: The core kernel is just over 30 KB after Brotli compression.
- AI-Ready Streaming: Handles token-by-token Markdown emission from LLMs without flicker, rendering partial syntax (like open fences) correctly mid-stream.
- Extensible Syntax: Supports Pandoc-style inline attributes to turn Markdown spans into live React UI components.
- Conflict-Free Merging: Supports fine-grained merging within paragraphs for offline and multi-device synchronization.
- Local-First: Offers a native macOS app and a web editor where processing stays on the device.
Related
- Project
- Project
- Project
- Project
- Project