Skip to content

A real-time, collaborative document platform that allows seamless sharing and editing among users.

License

Notifications You must be signed in to change notification settings

MIHIR2006/Live-Docs

Repository files navigation

LiveDocs

📋 Table of Contents

  1. 🤖 Introduction
  2. ⚙️ Tech Stack
  3. Features
  4. 🖼️ Preview
  5. 🤝 Contributions

Built with Next.js to handle the user interface, Liveblocks for real-time features, and styled with TailwindCSS, LiveDocs is a collaborative, real-time document editor, similar to Google Docs. The primary goal is to showcase the developer's ability to work in a real-time environment while creating a useful and engaging application.

If you're just getting started or encounter any bugs, join our active Discord community with over 34k+ members, where fellow developers can assist you!

  • Next.js
  • TypeScript
  • Liveblocks
  • Lexical Editor
  • ShadCN
  • Tailwind CSS

Authentication: User authentication via GitHub using NextAuth for secure sign-in, sign-out, and session management.

Collaborative Text Editor: Multiple users can edit the same document simultaneously, with live updates.

Document Management:

  • Create Documents: Users can create and manage documents, which are automatically saved and listed.
  • Delete Documents: Users can delete documents they own.
  • Share Documents: Documents can be shared via email or link with view/edit permissions.
  • List Documents: View all documents owned or shared with the user, with sorting and searching options.

Comments: Inline and general comments are supported, with threading for discussions.

Active Collaborators: Real-time updates show active collaborators within the text editor.

Notifications: Receive notifications about document shares, comments, and collaborator activities.

Responsive: Fully responsive, ensuring smooth usage across all devices.

➤ And much more, including optimized code architecture and reusability.

Here are some previews of the application in action:

Create Docs

Create Docs

Share Docs

Share Docs

Real-Time Document Sharing

Real-Time Sharing

We welcome contributions to improve LiveDocs! Whether it's fixing a bug, adding a new feature, or improving documentation, your input is highly valued.

To contribute, please follow these steps:

  1. Clone the repo
Git clone https://github.com/MIHIR2006/Live-Docs.git
  1. Install dependencies
npm install
# or
Bun install
  1. Set up environment variables

Create a .env.local file in the root directory of the project and add the following environment variables:

ENV Sample

#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=

# Sentry
SENTRY_AUTH_TOKEN=
  1. Start the dev server
npm run dev
# or
Bun run dev

Give it ⭐

About

A real-time, collaborative document platform that allows seamless sharing and editing among users.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published