Hamza Khuswan gave up on contentEditable entirely and wrote a text editor that renders everything — glyphs, cursor, selection, line breaking, RTL Arabic text — on an HTML5 2D canvas. The only concession to the browser is a hidden input element, because IME and autocorrect only fire when the browser believes a real text field exists. Browser never draws; it just eavesdrops on keystrokes, which honestly is what it was going to do anyway.
Collaboration without a server is handled with a hand-rolled CRDT, peers syncing over encrypted WebRTC. A signaling server helps devices find each other and stores nothing; an encrypted relay is the fallback for hostile networks. Local-first, no accounts.
He detoured through WebGL/WebGPU and hand-parsed TrueType glyph outlines first, shipped little, and retreated to 2D canvas — a confession several of us could have made in 1987 about abandoning hardware scrolling, if I'm honest. The Christmas 2025 discovery that LLMs were useful on a messy codebase is what accelerated the whole thing.
Licensing is sensibly split: app under AGPL, editor engine under MIT with an SDK. Runs on six platforms.
Worth asking: what's the accessibility story? Screen readers are not known for their warm relationship with a canvas full of pixels.
reply