An open-source
Google Docs alternative.
DocX is a collaborative document editor with built-in AI commands. Real-time sync, version history, self-hostable. Free and open source.
This is a small project I've been hacking on for a while. It's basically a Google Docs clone with a few AI commands — ▎
A look at the editor.
Built on Tiptap and Y.js. Switch between writing, asking AI, and managing access — all from the same surface.
Untitled
I started building DocX because I wanted to learn how Google Docs works under the hood — CRDTs, real-time sync, all that. It turns out it's a lot, but also kind of fun ▎
↳ DocX: want me to make this less rambly?
Everything you need to write,
collaborate, and create with AI.
Live cursors and edits sync over Yjs, in a room scoped to the one document. Share a link and anyone holding it can join.
Improve, fix grammar, translate, change tone, expand or tighten. Press ⌘K, or select text and use the bubble menu.
Press ⌘J and ask across everything you can read. Answers are grounded in your own passages and cite them — and say so when nothing matches.
Snapshots are captured as you write. Preview any version as a thumbnail and restore it in one click.
Pull a doc in from Google Drive with its images re-hosted, and take your work out again as Markdown or plain text.
Clone the repo, point it at your own Postgres, and it's yours. Open source, no hidden tiers.
Three steps. That's it.
Login, click new. Or just go straight to the editor demo without an account.
Share the link. They can comment without an account, or login to edit alongside you.
Highlight text and press ⌘K. Ask for a rewrite, a counter-argument, or a translation.
Ready to give it a try?
Open the editor demo in your browser — no login needed. Star the repo on GitHub if you find it useful.