Think Collab overview
One realtime room per project for co-editing, presence and change events.
Think Collab runs one realtime room per project, on a Cloudflare Durable Object. Every edit is an operation sent to the room. The room transforms it against what others did in the meantime (operational transform with a server referee) and broadcasts it, so two people typing in the same line both keep their words.
The room also tells every open tab when the tree, a title or a table changes, and keeps a small live state for HTML pages. AI agents editing over MCP join the same room and appear as one more person typing.
The database stays the source of truth
The room writes back to the database about 1.5 seconds after the last edit, and only if nobody wrote in between. A client that wrote directly is merged three ways when it reconnects.
How developers use it today
Think Collab is built into every page and table of a project. Your code uses it through HTML pages: live state with think.setState, and change events with think:data and think:state. There is no public WebSocket API for third-party clients yet.