{"id":30953583,"url":"https://github.com/davronov-alimardon/google-docs","last_synced_at":"2025-09-11T09:10:28.912Z","repository":{"id":307527239,"uuid":"899238770","full_name":"Davronov-Alimardon/google-docs","owner":"Davronov-Alimardon","description":"A full-stack Google Docs clone with real-time collaboration, commenting, advanced text editing (Tiptap), and a template gallery.  Next.js 15, React 19","archived":false,"fork":false,"pushed_at":"2025-07-31T16:52:02.000Z","size":728,"stargazers_count":45,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-31T19:58:21.296Z","etag":null,"topics":["clerk","clerkauth","code-with-antonio","codewithantonio","convex","editor","google-docs","google-docs-clone","google-docs-ui","liveblocks","mvp","nexjs15","nextjs","react19","shadcn","shadcn-ui","tailwindcss","tiptap"],"latest_commit_sha":null,"homepage":"https://docs-google-ali.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Davronov-Alimardon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-05T21:49:16.000Z","updated_at":"2025-07-31T16:52:07.000Z","dependencies_parsed_at":"2025-07-31T20:11:45.769Z","dependency_job_id":null,"html_url":"https://github.com/Davronov-Alimardon/google-docs","commit_stats":null,"previous_names":["davronov-alimardon/google-docs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Davronov-Alimardon/google-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davronov-Alimardon%2Fgoogle-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davronov-Alimardon%2Fgoogle-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davronov-Alimardon%2Fgoogle-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davronov-Alimardon%2Fgoogle-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davronov-Alimardon","download_url":"https://codeload.github.com/Davronov-Alimardon/google-docs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davronov-Alimardon%2Fgoogle-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274608508,"owners_count":25316613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clerk","clerkauth","code-with-antonio","codewithantonio","convex","editor","google-docs","google-docs-clone","google-docs-ui","liveblocks","mvp","nexjs15","nextjs","react19","shadcn","shadcn-ui","tailwindcss","tiptap"],"created_at":"2025-09-11T09:10:26.354Z","updated_at":"2025-09-11T09:10:28.907Z","avatar_url":"https://github.com/Davronov-Alimardon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Docs Clone\n\nA collaborative document editor built with Next.js, featuring real-time collaboration, authentication, and organizational support. This application provides a Google Docs-like experience with rich text editing, live cursors, comments, and document management.\n\n## Features\n\n- **Real-time Collaboration**: Multiple users can edit documents simultaneously with live cursors and instant updates\n- **Rich Text Editor**: Powered by TipTap with support for headings, formatting, tables, images, and more\n- **Authentication**: Secure user authentication with Clerk, supporting organizations and personal accounts\n- **Document Management**: Create, edit, delete, and organize documents with search functionality\n- **Organizational Support**: Share documents within organizations and manage team collaboration\n- **Responsive Design**: Modern UI built with Tailwind CSS and shadcn/ui components\n- **Template Gallery**: Pre-built document templates for common use cases\n\n## Tech Stack\n\n- **Frontend**: Next.js 15, React 19, TypeScript\n- **Backend**: Convex for real-time database and API\n- **Authentication**: Clerk with organization support\n- **Real-time Collaboration**: Liveblocks for collaborative editing\n- **Editor**: TipTap with collaborative extensions\n- **Styling**: Tailwind CSS, shadcn/ui components\n- **State Management**: Zustand\n\n## Prerequisites\n\nBefore setting up the project, ensure you have:\n\n- A Convex account\n- A Clerk account\n- A Liveblocks account\n\n## Setup Instructions\n\n### 1. Clone and Install Dependencies\n\n```bash\ngit clone https://github.com/Davronov-Alimardon/google-docs.git\ncd google-docs-clone\nnpm install\n```\n\n\u003e **Note**: Use `npm install --legacy-peer-deps` flag if you encounter version conflicts during installation.\n\n### 2. Environment Variables\n\nCreate a `.env.local` file in the root directory with the following variables:\n\n```env\n# Convex\nNEXT_PUBLIC_CONVEX_URL=your-convex-deployment-url\n\n# Clerk\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-publishable-key\nCLERK_SECRET_KEY=your-clerk-secret-key\n\n# Liveblocks\nLIVEBLOCKS_SECRET_KEY=your-liveblocks-secret-key\n```\n\n### 3. Convex Setup\n\n#### Install Convex CLI\n```bash\nnpm install -g convex\n```\n\n#### Initialize Convex\n```bash\nnpx convex dev\n```\n\n#### Configure Authentication\n1. Go to your Convex dashboard\n2. Navigate to Settings \u003e Authentication\n3. Add Clerk as an authentication provider\n4. Use your Clerk domain: `https://your-clerk-domain.clerk.accounts.dev`\n5. Set the application ID to: `convex`\n\n#### Deploy Convex Functions\n```bash\nnpx convex deploy\n```\n\n### 4. Clerk Setup\n\n#### Create Clerk Application\n1. Sign up at [clerk.com](https://clerk.com)\n2. Create a new application\n3. Enable organizations in your Clerk dashboard:\n   - Go to Configure \u003e Organizations\n   - Enable organizations feature\n   - Configure organization settings as needed\n\n#### Configure JWT Template\n1. In your Clerk dashboard, go to Configure \u003e JWT Templates\n2. Create a new template called `convex`\n3. Add the following claims:\n```json\n{\n  \"aud\": \"convex\",\n  \"name\": \"{{user.full_name}}\",\n  \"email\": \"{{user.primary_email_address}}\",\n  \"picture\": \"{{user.image_url}}\",\n  \"nickname\": \"{{user.username}}\",\n  \"given_name\": \"{{user.first_name}}\",\n  \"updated_at\": \"{{user.updated_at}}\",\n  \"family_name\": \"{{user.last_name}}\",\n  \"phone_number\": \"{{user.primary_phone_number}}\",\n  \"email_verified\": \"{{user.email_verified}}\",\n  \"organization_id\": \"{{org.id}}\",\n  \"phone_number_verified\": \"{{user.phone_number_verified}}\"\n}\n```\n\n#### Update Convex Auth Config\nUpdate `convex/auth.config.ts` with your Clerk domain:\n```typescript\nexport default {\n  providers: [\n    {\n      domain: \"https://your-clerk-domain.clerk.accounts.dev\",\n      applicationID: \"convex\"\n    }\n  ]\n}\n```\n\n### 5. Liveblocks Setup\n\n#### Create Liveblocks Project\n1. Sign up at [liveblocks.io](https://liveblocks.io)\n2. Create a new project\n3. Get your public and secret keys from the dashboard\n\n### 6. Run the Development Server\n\n```bash\nnpm run dev\n```\n\nThe application will be available at `http://localhost:3000`.\n\n## Project Structure\n\n```\nsrc/\n├── app/                   # Next.js app directory\n│   ├── (home)/            # Home page and document listing\n│   ├── api/               # API routes\n│   ├── documents/         # Document editing interface\n│   └── layout.tsx         # Root layout\n├── components/            # Reusable components\n│   ├── ui/                # shadcn/ui components\n│   └── ...                # Custom components\n├── hooks/                 # Custom React hooks\n├── lib/                   # Utility functions\n└── store/                 # Zustand stores\n\nconvex/\n├── documents.ts          # Document CRUD operations\n├── schema.ts             # Database schema\n└── auth.config.ts        # Authentication configuration\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavronov-alimardon%2Fgoogle-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavronov-alimardon%2Fgoogle-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavronov-alimardon%2Fgoogle-docs/lists"}