LiveDocs – Real-Time Collaborative Word Editor

July 7, 2025 (8mo ago)


🤖 LiveDocs – Real-Time Collaborative Word Editor

✨ Originally shared on X by Aniruddh Nagare

LiveDocs is a Google Docs clone that enables multiple users to edit .docx documents collaboratively in real time. Built using Next.js, Liveblocks, Clerk, and styled with Tailwind CSS, this app showcases how to create a modern, full-stack, collaborative experience.

The primary goal of this project is to demonstrate a real-time environment that reflects a developer’s ability to build fast, scalable, and user-friendly collaborative tools.


⚙️ Tech Stack


🔋 Features

🔐 Authentication

Secure GitHub OAuth login via Clerk, with session management.

📝 Collaborative Editing

Multiple users can edit the same .docx document in real time. Presence, cursors, and updates are synced instantly.

📁 Document Management

💬 Comments

Supports inline and general comments, with threading to enable discussions inside the editor.

👥 Real-Time Presence

Visual indicators show active collaborators within the document.

🔔 Notifications

Users get notified when documents are shared, commented on, or edited by others.

📱 Fully Responsive

Built to work across all devices — desktop, tablet, and mobile.

🧱 Developer Friendly

Clean code architecture with reusable components and scalable patterns.


🤸 Quick Start

✅ Prerequisites

🛠️ Installation

git clone https://github.com/ANNI69/DocSync.git
cd DocSync
npm install

🔐 Setup Environment Variables

Create a .env file in the root:

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
 
# Liveblocks
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=
LIVEBLOCKS_SECRET_KEY=

Fill in credentials from your Clerk and Liveblocks accounts.

🚀 Run the Dev Server

npm run dev

Visit http://localhost:3000 to test the app.


🧩 Notable Files


👥 Join the Community

Need help or feedback? Join the Liveblocks Discord — 34k+ developers collaborating in real time.


🎯 Final Thoughts

LiveDocs isn’t just a clone of Google Docs — it’s a full-stack, real-time playground for modern web development. If you're looking to build collaborative tools with clean UX and robust architecture, this project is a great starting point.

🔗 Live Demo 💻 GitHub Repo