sanidhyy/google-docs-clone
À propos
Full-stack Realtime Google Docs Clone using Next.js 15 and Convex.
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalFull-stack Realtime Google Docs Clone using Next.js 15 and Convex

:notebook_with_decorative_cover: Table of Contents
:bangbang: Folder Structure
Here is the folder structure of this app.
google-docs-clone/
|- convex/
|-- _generated/
|-- .env.example
|-- auth.config.ts
|-- documents.ts
|-- environment.d.ts
|-- schema.ts
|- public/
|- src/
|-- app/
|--- (auth)/
|--- (main)/
|--- api/
|--- apple-icon.png
|--- error.tsx
|--- favicon.ico
|--- globals.css
|--- icon1.png
|--- icon2.png
|--- layout.tsx
|--- not-found.tsx
|-- components/
|--- ui/
|--- auth-gate.tsx
|--- convex-client-provider.tsx
|--- fullscreen-loader.tsx
|--- remove-dialog.tsx
|--- rename-dialog.tsx
|-- config/
|--- editor.ts
|--- index.ts
|-- constants/
|--- templates.ts
|-- extensions/
|--- font-size.ts
|--- line-height.ts
|-- hooks/
|--- use-debounce.ts
|--- use-search-param.ts
|-- lib/
|--- utils.ts
|-- store/
|--- use-editor-store.ts
|-- middleware.ts
|- .env.example
|- .env/.env.local
|- .gitignore
|- .prettierignore
|- .prettierrc.json
|- components.json
|- convex.json
|- environment.d.ts
|- eslint.config.mjs
|- liveblocks.config.ts
|- next.config.ts
|- package.json
|- pnpm-lock.yaml
|- pnpm-workspace.yaml
|- postcss.config.mjs
|- tailwind.config.ts
|- tsconfig.json
|- vercel.ts
:toolbox: Getting Started
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.env.localfile in root and convex directory. - Contents of
.env.local:
# disabled telemetry
DO_NOT_TRACK="1"
NEXT_TELEMETRY_DISABLED="1"
CLERK_TELEMETRY_DISABLED="1"
# app base url
NEXT_PUBLIC_APP_BASE_URL="http://localhost:3000"
# convex deployment & url
CONVEX_DEPLOYMENT="dev:<deployment-id>" # team: <team-id>, project: <project-id>
NEXT_PUBLIC_CONVEX_URL="https://<deployment-id>.convex.cloud"
NEXT_PUBLIC_CONVEX_SITE_URL="https://<deployment-id>.convex.site"
# clerk auth keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
CLERK_SECRET_KEY="sk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# clerk redirect urls
NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up"
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL="/"
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL="/"
# liveblocks key
LIVEBLOCKS_SECRET_KEY="sk_dev_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- Contents of
convex/.env.local:
# clerk issuer url (go to your clerk dashboard > JWT Templates > New template > Convex > Save and copy your Issuer URL)
CLERK_ISSUER_URL=https://example-id.clerk.accounts.dev
6. App Base URL
Set the NEXT_PUBLIC_APP_BASE_URL to http://localhost:3000 where your app will be running locally or in production.
7. Convex Deployment
- Visit the Convex website: https://convex.dev
- Log in to your Convex account or sign up if you don't have one.
- Once logged in, navigate to the "Deployments" section.
- Create a new deployment or select an existing one.
- Replace
<deployment-name>,<team-name>, and<project-name>in the.env.localfile with your Convex deployment details. - In the Convex dashboard, find the public URL associated with your deployment.
- Replace
<your-convex-url>in the.env.localfile with your Convex public URL.
8. Clerk Authentication Keys
- Visit the Clerk dashboard: https://clerk.dev
- Log in to your Clerk account or sign up if you don't have one.
- Go to the "Projects" section and select your project.
- Navigate to the "API Keys" tab.
- Copy the "Publishable Key" and replace
<your-clerk-publishable-key>in the.env.localfile with the copied key. - Copy the "Secret Key" and replace
<your-clerk-secret-key>in the.env.localfile with the copied key. - Go to your Clerk dashboard > JWT Templates > New template > Convex.
- In the Claims section add
"organization_id": "{{org.id}}"along with the existing json values. - Click on save and copy the Issuer url.
- Replace
<your-clerk-issuer-url>with the url that you copied. - Also, go to Convex dashboard > Settings > Environment Variables > Add
CLERK_ISSUER_URLvariable with value that you copied.
9. Liveblocks API Keys
- Visit the Liveblocks website > dashboard.
- Navigate to API settings or keys section.
- Generate or locate your API secret.
- Set
LIVEBLOCKS_SECRET_KEYin the.envfile according to the obtained information.
Install Project Dependencies using
npm install --legacy-peer-depsoryarn install --legacy-peer-depsorbun install --legacy-peer-deps.Now app is fully configured 👍 and you can start using this app using either one of
npm run devoryarn devorbun dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
- GitHub Discussions — Open a Q&A discussion for setup and troubleshooting help.
- Email — [email protected]
- Discord —
@sanidhyy
:camera: Screenshots



:gear: Tech Stack
:wrench: Stats
:raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
:gem: Acknowledgements
Useful resources and dependencies that are used in Docs.
- Thanks to CodeWithAntonio: https://codewithantonio.com/
- @babel/eslint-parser: ^8.1.2
- @clerk/nextjs: ^7.10.4
- @eslint/eslintrc: ^3.3.7
- @floating-ui/dom: ^1.8.0
- @liveblocks/client: ^3.25.1
- @liveblocks/node: ^3.25.1
- @liveblocks/react: ^3.25.1
- @liveblocks/react-tiptap: ^3.25.1
- @liveblocks/react-ui: ^3.25.1
- @next/eslint-plugin-next: ^16.4.6
- @radix-ui/react-alert-dialog: ^1.2.1
- @radix-ui/react-dialog: ^1.3.1
- @radix-ui/react-dropdown-menu: ^2.2.1
- @radix-ui/react-menubar: ^1.2.1
- @radix-ui/react-separator: ^1.2.0
- @radix-ui/react-slot: ^1.5.0
- @tiptap/core: 3.34.0
- @tiptap/extension-font-family: 3.34.0
- @tiptap/extension-highlight: 3.34.0
- @tiptap/extension-image: 3.34.0
- @tiptap/extension-list: 3.34.0
- @tiptap/extension-table: 3.34.0
- @tiptap/extension-text-align: 3.34.0
- @tiptap/extension-text-style: 3.34.0
- @tiptap/pm: 3.34.0
- @tiptap/react: 3.34.0
- @tiptap/starter-kit: 3.34.0
- @tiptap/suggestion: 3.34.0
- @trivago/prettier-plugin-sort-imports: ^6.0.0
- @types/node: ^26.6.6
- @types/react: ^19
- @types/react-color: ^3.0.12
- @types/react-dom: ^19
- @vercel/config: ^0.15.0
- class-variance-authority: ^0.7.1
- clsx: ^2.1.1
- convex: ^1.51.0
- date-fns: ^4.1.0
- embla-carousel-react: ^8.5.2
- eslint: ^9.39.5
- eslint-config-next: 15.5.28
- eslint-config-prettier: ^10.0.1
- eslint-plugin-prettier: ^5.5.7
- lucide-react: ^1.76.0
- mprocs: ^0.9.6
- next: 15.5.28
- next-themes: ^0.4.4
- nuqs: ^2.10.3
- postcss: ^8
- prettier: ^3.10.1
- prettier-plugin-tailwindcss: ^0.8.1
- react: 19.3.1
- react-color: ^2.19.3
- react-dom: 19.3.1
- react-icons: ^5.4.0
- sonner: ^2.0.8
- tailwind-merge: ^3.7.0
- tailwindcss: ^3.4.1
- tailwindcss-animate: ^1.0.7
- tiptap-extension-resize-image: ^1.5.1
- typescript: ^6
- zustand: ^5.1.0
:coffee: Buy Me a Coffee
:rocket: Follow Me
:books: Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
:page_with_curl: Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out Next.js deployment documentation for more details.
:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:star2: Star History
Explorer des projets similaires
Chargement…