{"id":23439667,"url":"https://github.com/sanidhyy/slack-clone","last_synced_at":"2025-10-17T02:41:10.444Z","repository":{"id":268912959,"uuid":"853759798","full_name":"sanidhyy/slack-clone","owner":"sanidhyy","description":"Collaborate with your team using real-time messaging, rich text editing, and emoji support in this Slack-like app built with Next.js, Convex, and Shadcn UI.","archived":false,"fork":false,"pushed_at":"2025-02-27T06:06:47.000Z","size":5393,"stargazers_count":28,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T14:52:40.105Z","etag":null,"topics":["convex","nextjs","nuqs","quill-editor","react","react-emoji-picker","realtime","realtime-chat","realtime-messaging","shadcn-ui","slack-clone","sonner","tailwindcss","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://app-slack.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanidhyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["sanidhyy"],"patreon":"sanidhy","custom":"https://www.buymeacoffee.com/sanidhy"}},"created_at":"2024-09-07T13:10:23.000Z","updated_at":"2025-10-04T22:32:19.000Z","dependencies_parsed_at":"2025-04-13T08:09:40.720Z","dependency_job_id":"8235cd99-b94d-4729-a2b2-bed0f2bf7079","html_url":"https://github.com/sanidhyy/slack-clone","commit_stats":null,"previous_names":["sanidhyy/slack-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanidhyy/slack-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fslack-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fslack-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fslack-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fslack-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanidhyy","download_url":"https://codeload.github.com/sanidhyy/slack-clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanidhyy%2Fslack-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016127,"owners_count":26085804,"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-10-13T02:00:06.723Z","response_time":61,"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":["convex","nextjs","nuqs","quill-editor","react","react-emoji-picker","realtime","realtime-chat","realtime-messaging","shadcn-ui","slack-clone","sonner","tailwindcss","typescript","vercel"],"created_at":"2024-12-23T15:33:12.086Z","updated_at":"2025-10-17T02:41:10.402Z","avatar_url":"https://github.com/sanidhyy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sanidhyy","https://patreon.com/sanidhy","https://www.buymeacoffee.com/sanidhy"],"categories":["Platforms \u0026 Applications"],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n# Collaborate with your team in this Slack clone built using Next.js\n\n![Collaborate with your team in this Slack clone built using Next.js](/.github/images/img_main.png 'Collaborate with your team in this Slack clone built using Next.js')\n\n[![Ask Me Anything!](https://flat.badgen.net/static/Ask%20me/anything?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy 'Ask Me Anything!')\n[![GitHub license](https://flat.badgen.net/github/license/sanidhyy/slack-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/blob/main/LICENSE 'GitHub license')\n[![Maintenance](https://flat.badgen.net/static/Maintained/yes?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/commits/main 'Maintenance')\n[![GitHub branches](https://flat.badgen.net/github/branches/sanidhyy/slack-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/branches 'GitHub branches')\n[![Github commits](https://flat.badgen.net/github/commits/sanidhyy/slack-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/commits 'Github commits')\n[![GitHub issues](https://flat.badgen.net/github/issues/sanidhyy/slack-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/issues 'GitHub issues')\n[![GitHub pull requests](https://flat.badgen.net/github/prs/sanidhyy/slack-clone?icon=github\u0026color=black\u0026scale=1.01)](https://github.com/sanidhyy/slack-clone/pulls 'GitHub pull requests')\n[![Vercel status](https://img.shields.io/badge/Vercel-000000?style=for-the-badge\u0026logo=vercel\u0026logoColor=white)](https://app-slack.vercel.app/ 'Vercel status')\n\n\u003c!-- Table of Contents --\u003e\n\u003cdetails\u003e\n\n\u003csummary\u003e\n\n# :notebook_with_decorative_cover: Table of Contents\n\n\u003c/summary\u003e\n\n- [Folder Structure](#bangbang-folder-structure)\n- [Getting Started](#toolbox-getting-started)\n- [Screenshots](#camera-screenshots)\n- [Tech Stack](#gear-tech-stack)\n- [Stats](#wrench-stats)\n- [Contribute](#raised_hands-contribute)\n- [Acknowledgements](#gem-acknowledgements)\n- [Buy Me a Coffee](#coffee-buy-me-a-coffee)\n- [Follow Me](#rocket-follow-me)\n- [Learn More](#books-learn-more)\n- [Deploy on Vercel](#page_with_curl-deploy-on-vercel)\n- [Give A Star](#star-give-a-star)\n- [Star History](#star2-star-history)\n- [Give A Star](#star-give-a-star)\n\n\u003c/details\u003e\n\n## :bangbang: Folder Structure\n\nHere is the folder structure of this app.\n\n```bash\nslack-clone/\n  |- convex/\n    |-- _generated/\n    |-- auth.config.ts\n    |-- auth.ts\n    |-- channels.ts\n    |-- conversations.ts\n    |-- http.ts\n    |-- members.ts\n    |-- messages.ts\n    |-- reactions.ts\n    |-- README.md\n    |-- schema.ts\n    |-- tsconfig.json\n    |-- upload.ts\n    |-- users.ts\n    |-- workspaces.ts\n  |- public/\n    |-- logo.svg\n  |- src/\n    |-- app/\n        |--- auth/\n        |--- join/\n        |--- workspace/\n        |--- apple-icon.png\n        |--- favicon.ico\n        |--- globals.css\n        |--- icon1.png\n        |--- icon2.png\n        |--- layout.tsx\n        |--- page.tsx\n    |-- components/\n        |--- ui/\n        |--- channel-hero.tsx\n        |--- conversation-hero.tsx\n        |--- convex-client-provider.tsx\n        |--- editor.tsx\n        |--- emoji-popover.tsx\n        |--- hint.tsx\n        |--- jotai-provider.tsx\n        |--- message-list.tsx\n        |--- message.tsx\n        |--- modal-provider.tsx\n        |--- reactions.tsx\n        |--- renderer.tsx\n        |--- thread-bar.tsx\n        |--- thumbnail.tsx\n        |--- toolbar.tsx\n    |-- config/\n        |--- index.ts\n    |-- features/\n        |--- auth/\n        |--- channels/\n        |--- conversations/\n        |--- members/\n        |--- messages/\n        |--- reactions/\n        |--- upload/\n        |--- workspaces/\n    |-- hooks/\n        |--- use-channel-id.ts\n        |--- use-confirm.tsx\n        |--- use-member-id.ts\n        |--- use-panel.ts\n        |--- use-workspace-id.ts\n    |-- lib/\n        |--- utils.ts\n    |-- middleware.ts\n  |- .env.example\n  |- .env.local\n  |- .eslintrc.json\n  |- .gitignore\n  |- .prettierrc.json\n  |- .prettierrc.mjs\n  |- bun.lockb\n  |- components.json\n  |- environment.d.ts\n  |- next-env.d.ts\n  |- next.config.mjs\n  |- package.json\n  |- postcss.config.js\n  |- README.md\n  |- tailwind.config.ts\n  |- tsconfig.json\n```\n\n\u003cbr /\u003e\n\n## :toolbox: Getting Started\n\n1. Make sure **Git** and **NodeJS** is installed.\n2. Clone this repository to your local computer.\n3. Create `.env.local` file in **root** directory.\n4. Contents of `.env.local`:\n\n```env\n# .env.local\n\n# disabled next.js telemetry\nNEXT_TELEMETRY_DISABLED=1\n\n# deployment used by `npx convex dev` or `bunx convex dev`\nCONVEX_DEPLOYMENT=dev:\u003cdeployment-name\u003e # team: \u003cteam-name\u003e, project: \u003cproject-name\u003e\n\n# convex public url\nNEXT_PUBLIC_CONVEX_URL=\"https://\u003cdeployment-name\u003e.convex.cloud\"\n\n```\n\n5. Convex Deployment\n\n- Visit the Convex website: [https://convex.dev](https://convex.dev)\n- Log in to your Convex account or sign up if you don't have one.\n- Once logged in, navigate to the \"Deployments\" section.\n- Create a new deployment or select an existing one.\n- Replace `\u003cdeployment-name\u003e`, `\u003cteam-name\u003e`, and `\u003cproject-name\u003e` in the `.env.local` file with your Convex deployment details.\n- In the Convex dashboard, find the public URL associated with your deployment.\n- Replace `\u003cyour-convex-url\u003e` in the `.env.local` file with your Convex public URL.\n\n6. Initialise Convex Auth Development Keys\n\n- Run the initialization command: `npx @convex-dev/auth` or `bunx @convex-dev/auth` to setup your project for authenticating via the library.\n- Make sure your **SITE_URL** environment variable is set correctly. This is the URL where your app is hosted, e.g., `http://localhost:3000` for development.\n- Your project authentication is setup for logging in with credentials.\n\n7. Setting Up Google OAuth\n\n**Step 1: Create a Google Cloud Project**\n\n- Go to the [Google Cloud Console](https://console.cloud.google.com/).\n- Create a new project (if you don’t have one) by clicking on **Select a project** \u003e **New Project**, and give it a name.\n- Enable the **Google OAuth 2.0** API by navigating to **APIs \u0026 Services \u003e Library** and searching for **Google OAuth 2.0**.\n\n**Step 2: Create OAuth Credentials**\n\n- In the **APIs \u0026 Services \u003e Credentials** section, click **Create Credentials** and choose **OAuth 2.0 Client IDs**.\n- Select **Web Application** as the application type.\n- Set the **Authorized Redirect URI** to your Convex callback URL. The origin (domain) of the callback URL is your Convex backend's **HTTP Actions URL**. You can find it in your Convex dashboard and it is similar to your `CONVEX_URL`, but with `.site` instead of `.cloud`.\n\n- After setting the redirect URI, click **Create**. You’ll be provided with a **Client ID** and **Client Secret**.\n\n**Step 3: Set Google OAuth Environment Variables in Convex**\nTo configure Google OAuth in your Convex backend, run the following commands with your actual values:\n\n```bash\nnpx convex env set AUTH_GOOGLE_CLIENT_ID your-google-client-id\nnpx convex env set AUTH_GOOGLE_CLIENT_SECRET your-google-client-secret\n```\n\nOR\n\n```bash\nbunx convex env set AUTH_GOOGLE_CLIENT_ID your-google-client-id\nbunx convex env set AUTH_GOOGLE_CLIENT_SECRET your-google-client-secret\n```\n\n8. Setting Up GitHub OAuth\n\n**Step 1: Create a GitHub OAuth Application**\n\n- Go to [GitHub Developer Settings](https://github.com/settings/developers).\n- Under **OAuth Apps**, click **New OAuth App**.\n- Fill in the following:\n\n  - **Application Name**: Name your app (e.g., \"Slack Clone\").\n  - **Homepage URL**: Your app’s homepage URL, like `http://localhost:3000` for local development.\n  - **Authorization Callback URL**: Set this to your Convex callback URL (Similar to Google OAuth **Authorized Redirect URI**).\n\n- After registering the app, you’ll get a **Client ID** and **Client Secret**.\n\n**Step 2: Set GitHub OAuth Environment Variables in Convex**\n\n- To configure GitHub OAuth in your Convex backend, run the following commands with your actual values:\n\n```bash\nnpx convex env set AUTH_GITHUB_ID your-github-client-id\nnpx convex env set AUTH_GITHUB_SECRET your-github-client-secret\n```\n\nOR\n\n```bash\nbunx convex env set AUTH_GITHUB_ID your-github-client-id\nbunx convex env set AUTH_GITHUB_SECRET your-github-client-secret\n```\n\n9. Install Project Dependencies using `npm install --legacy-peer-deps` or `yarn install --legacy-peer-deps` or `bun install --legacy-peer-deps`.\n\n10. Now app is fully configured 👍 and you can start using this app using either one of `npm run dev` or `yarn dev` or `bun dev`.\n\n**NOTE:** Please make sure to keep your API keys and configuration values secure and do not expose them publicly.\n\n## :camera: Screenshots\n\n![Sign in and Sign up form using Convex Auth](/.github/images/img1.png 'Sign in and Sign up form using Convex Auth')\n\n![Modern UI/UX](/.github/images/img2.png 'Modern UI/UX')\n\n![Threads and Reactions](/.github/images/img3.png 'Threads and Reactions')\n\n![Search Channels and DMs](/.github/images/img4.png 'Search Channels and DMs')\n\n## :gear: Tech Stack\n\n[![React JS](https://skillicons.dev/icons?i=react 'React JS')](https://react.dev/ 'React JS') [![Next JS](https://skillicons.dev/icons?i=next 'Next JS')](https://nextjs.org/ 'Next JS') [![Typescript](https://skillicons.dev/icons?i=ts 'Typescript')](https://www.typescriptlang.org/ 'Typescript') [![Tailwind CSS](https://skillicons.dev/icons?i=tailwind 'Tailwind CSS')](https://tailwindcss.com/ 'Tailwind CSS') [![Vercel](https://skillicons.dev/icons?i=vercel 'Vercel')](https://vercel.app/ 'Vercel')\n\n## :wrench: Stats\n\n[![Stats for Slack Clone](/.github/images/stats.svg 'Stats for Slack Clone')](https://pagespeed.web.dev/analysis?url=https://app-slack.vercel.app/ 'Stats for Slack Clone')\n\n## :raised_hands: Contribute\n\nYou 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.\n\n## :gem: Acknowledgements\n\nUseful resources and dependencies that are used in Slack Clone.\n\n- Thanks to CodeWithAntonio: https://codewithantonio.com/\n- [@auth/core](https://www.npmjs.com/package/@auth/core): ^0.34.2\n- [@convex-dev/auth](https://www.npmjs.com/package/@convex-dev/auth): ^0.0.65\n- [@radix-ui/react-alert-dialog](https://www.npmjs.com/package/@radix-ui/react-alert-dialog): ^1.1.1\n- [@radix-ui/react-avatar](https://www.npmjs.com/package/@radix-ui/react-avatar): ^1.1.0\n- [@radix-ui/react-dialog](https://www.npmjs.com/package/@radix-ui/react-dialog): ^1.1.1\n- [@radix-ui/react-dropdown-menu](https://www.npmjs.com/package/@radix-ui/react-dropdown-menu): ^2.1.1\n- [@radix-ui/react-popover](https://www.npmjs.com/package/@radix-ui/react-popover): ^1.1.1\n- [@radix-ui/react-separator](https://www.npmjs.com/package/@radix-ui/react-separator): ^1.1.0\n- [@radix-ui/react-slot](https://www.npmjs.com/package/@radix-ui/react-slot): ^1.1.0\n- [@radix-ui/react-tooltip](https://www.npmjs.com/package/@radix-ui/react-tooltip): ^1.1.2\n- [@radix-ui/react-visually-hidden](https://www.npmjs.com/package/@radix-ui/react-visually-hidden): ^1.1.0\n- [class-variance-authority](https://www.npmjs.com/package/class-variance-authority): ^0.7.0\n- [clsx](https://www.npmjs.com/package/clsx): ^2.1.1\n- [cmdk](https://www.npmjs.com/package/cmdk): 1.0.0\n- [convex](https://www.npmjs.com/package/convex): ^1.15.0\n- [date-fns](https://www.npmjs.com/package/date-fns): ^4.1.0\n- [emoji-picker-react](https://www.npmjs.com/package/emoji-picker-react): ^4.12.0\n- [jotai](https://www.npmjs.com/package/jotai): ^2.9.3\n- [lucide-react](https://www.npmjs.com/package/lucide-react): ^0.439.0\n- [next](https://www.npmjs.com/package/next): 14.2.8\n- [next-themes](https://www.npmjs.com/package/next-themes): ^0.3.0\n- [nuqs](https://www.npmjs.com/package/nuqs): ^1.19.1\n- [quill](https://www.npmjs.com/package/quill): ^2.0.2\n- [react](https://www.npmjs.com/package/react): ^18\n- [react-dom](https://www.npmjs.com/package/react-dom): ^18\n- [react-icons](https://www.npmjs.com/package/react-icons): ^5.3.0\n- [react-resizable-panels](https://www.npmjs.com/package/react-resizable-panels): ^2.1.2\n- [react-use](https://www.npmjs.com/package/react-use): ^17.5.1\n- [react-verification-input](https://www.npmjs.com/package/react-verification-input): ^4.1.2\n- [sonner](https://www.npmjs.com/package/sonner): ^1.5.0\n- [tailwind-merge](https://www.npmjs.com/package/tailwind-merge): ^2.5.2\n- [tailwindcss-animate](https://www.npmjs.com/package/tailwindcss-animate): ^1.0.7\n- [@babel/eslint-parser](https://www.npmjs.com/package/@babel/eslint-parser): ^7.25.1\n- [@trivago/prettier-plugin-sort-imports](https://www.npmjs.com/package/@trivago/prettier-plugin-sort-imports): ^4.3.0\n- [@types/node](https://www.npmjs.com/package/@types/node): ^20\n- [@types/react](https://www.npmjs.com/package/@types/react): ^18\n- [@types/react-dom](https://www.npmjs.com/package/@types/react-dom): ^18\n- [eslint](https://www.npmjs.com/package/eslint): ^8\n- [eslint-config-next](https://www.npmjs.com/package/eslint-config-next): 14.2.8\n- [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier): ^9.1.0\n- [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier): ^5.2.1\n- [postcss](https://www.npmjs.com/package/postcss): ^8\n- [prettier-plugin-tailwindcss](https://www.npmjs.com/package/prettier-plugin-tailwindcss): ^0.6.6\n- [tailwindcss](https://www.npmjs.com/package/tailwindcss): ^3.4.1\n- [typescript](https://www.npmjs.com/package/typescript): ^5\n\n## :coffee: Buy Me a Coffee\n\n[\u003cimg src=\"https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black\" width=\"200\" /\u003e](https://www.buymeacoffee.com/sanidhy 'Buy me a Coffee')\n\n## :rocket: Follow Me\n\n[![Follow Me](https://img.shields.io/github/followers/sanidhyy?style=social\u0026label=Follow\u0026maxAge=2592000)](https://github.com/sanidhyy 'Follow Me')\n[![Tweet about this project](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Ftwitter.com%2FTechnicalShubam)](https://twitter.com/intent/tweet?text=Check+out+this+amazing+app:\u0026url=https%3A%2F%2Fgithub.com%2Fsanidhyy%2Fslack-clone 'Tweet about this project')\n[![Subscribe to my YouTube Channel](https://img.shields.io/youtube/channel/subscribers/UCNAz_hUVBG2ZUN8TVm0bmYw)](https://www.youtube.com/@OPGAMER./?sub_confirmation=1 'Subscribe to my YouTube Channel')\n\n## :books: Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## :page_with_curl: Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\n## :star: Give A Star\n\nYou can also give this repository a star to show more people and they can use this repository.\n\n## :star2: Star History\n\n\u003ca href=\"https://star-history.com/#sanidhyy/slack-clone\u0026Timeline\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=sanidhyy/slack-clone\u0026type=Timeline\u0026theme=dark\" /\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=sanidhyy/slack-clone\u0026type=Timeline\" /\u003e\n  \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=sanidhyy/slack-clone\u0026type=Timeline\" /\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Fslack-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanidhyy%2Fslack-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanidhyy%2Fslack-clone/lists"}