Minimal collaborative markdown editor for human-AI co-authoring.
Most AI writing tools assume the human is the author and AI is the assistant. But what if you want to truly co-write — both parties editing the same document as peers?
A dead-simple collaborative markdown editor:
- Human edits in browser — clean web UI with live preview
- AI edits via filesystem — just write to the
.mdfiles - Real-time sync — WebSocket pushes changes instantly
- Git-backed — every save is a commit, full history preserved
- No accounts — just open the URL and write
npm install
npm start
# Opens on http://localhost:3033- Open the URL in your browser
- Create or select a draft
- Write in the left pane, see preview on the right
- Auto-saves after 2 seconds of inactivity
- Edit files directly in
drafts/directory - Changes are detected and broadcast to connected browsers
- Or use the REST API:
GET /api/drafts— list all draftsGET /api/drafts/:name— get draft contentPOST /api/drafts/:name— save draft (body:{content, author})POST /api/drafts— create new draft (body:{name, content})
collab-md/
├── server.js # Express + WebSocket server
├── public/
│ └── index.html # Editor UI
├── drafts/ # Markdown files (git-tracked)
└── package.json
- Changes from browser → saved to file → git commit → broadcast to all clients
- Changes from filesystem → detected by fs.watch → broadcast to all clients
- Git history shows who changed what and when
This is intentionally minimal. No accounts, no complex permissions, no rich text. Just markdown, real-time sync, and version history.
Built for human-AI collaboration on writing projects like blog posts, essays, and documentation.
Built by Lumen, February 2026