01

From Word Processors to Intelligent Canvases

The collaborative document editing space has undergone a radical transformation. Tools like Google Docs and Notion proved that real-time co-authoring works at scale, but the underlying technology stack is evolving rapidly. Modern frameworks like TipTap — a headless, extensible rich-text editor built on ProseMirror — give developers complete control over the editing experience. GreatChat's Editor experience adds structured block types, slash commands, and drag-and-drop content blocks that go beyond flat text.

02

Conflict-Free Replication with Yjs

Real-time collaboration requires solving a genuinely hard computer science problem: how do multiple users edit the same document simultaneously without conflicts? The answer is CRDTs (Conflict-free Replicated Data Types). Yjs implements a YATA CRDT that ensures every user's edits converge to the same state without requiring a central server to resolve conflicts. When paired with WebSocket providers, Yjs enables sub-100ms sync between collaborators — even across continents. This is the same technology stack that powers editors in Figma, Linear, and now GreatChat.

03

AI-Assisted Writing in the Editor

The real game-changer in collaborative editing is AI integration directly into the text canvas. GreatChat's Editor experience includes inline AI assistance — select any text and ask the AI to rewrite, expand, summarize, or translate it. Powered by GreatRouter for intelligent model selection, the editor can adapt its writing style based on the document's purpose: concise and direct for technical specs, persuasive and engaging for marketing copy, or structured and formal for legal documents. The AI doesn't replace the writer — it amplifies their capabilities.

04

Beyond Text: Structured Content Blocks

Documents are no longer just walls of text. Modern editors support structured content blocks — tables, code snippets with syntax highlighting, embedded Figma frames, Mermaid diagrams, and interactive data visualizations. TipTap's extension architecture makes this possible: each block type is a self-contained extension with its own rendering, keyboard shortcuts, and serialization logic. GreatChat ships with over 20 block types out of the box, and developers can add custom blocks for domain-specific content — think CAD previews for engineering teams or contract clauses for legal teams.