{"id":18903525,"url":"https://github.com/rxshabn/discord-clone","last_synced_at":"2025-07-29T11:07:54.015Z","repository":{"id":261701713,"uuid":"885087669","full_name":"rxshabN/discord-clone","owner":"rxshabN","description":"This is a clone of Discord created using NextJS 15 and TypeScript.","archived":false,"fork":false,"pushed_at":"2025-07-22T05:27:18.000Z","size":793,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T06:47:35.126Z","etag":null,"topics":["backend-development","chatapp","frontend-development","nextjs","postgresql","prisma","react","socketio","supabase","tailwindcss","typescript","webdevelopment"],"latest_commit_sha":null,"homepage":"https://discord-clone-rn.up.railway.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/rxshabN.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-11-07T23:47:32.000Z","updated_at":"2025-07-22T05:27:16.000Z","dependencies_parsed_at":"2024-11-08T00:30:46.358Z","dependency_job_id":"3961258c-cf27-41cb-9665-8dc737a43d45","html_url":"https://github.com/rxshabN/discord-clone","commit_stats":null,"previous_names":["rxshabn/discord-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rxshabN/discord-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxshabN%2Fdiscord-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxshabN%2Fdiscord-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxshabN%2Fdiscord-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxshabN%2Fdiscord-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxshabN","download_url":"https://codeload.github.com/rxshabN/discord-clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxshabN%2Fdiscord-clone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267677164,"owners_count":24126312,"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-07-29T02:00:12.549Z","response_time":2574,"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":["backend-development","chatapp","frontend-development","nextjs","postgresql","prisma","react","socketio","supabase","tailwindcss","typescript","webdevelopment"],"created_at":"2024-11-08T09:05:27.340Z","updated_at":"2025-07-29T11:07:53.834Z","avatar_url":"https://github.com/rxshabN.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Clone by RishabN\n\nA full-featured real-time chat application inspired by Discord. This clone provides messaging, audio, and video chat capabilities using [LiveKit](https://livekit.io/), with user authentication handled by [Clerk](https://clerk.dev/). Built with Next.js, Prisma, and Tailwind CSS for a responsive and modern user interface.\n\n**Live Demo**: [https://discord-clone-rn.vercel.app](https://discord-clone-rn.vercel.app)\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Setup and Installation](#setup-and-installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n\n---\n\n## Features\n\n- **Real-Time Messaging**: Instantly send and receive messages with auto-scroll to the latest.\n- **Audio/Video Chat**: Audio and video call functionality powered by LiveKit.\n- **User Authentication**: Secure, seamless authentication using Clerk.\n- **Persistent Chat History**: All message data is saved to the database using Prisma ORM.\n- **Responsive UI**: Built with Tailwind CSS to provide a smooth experience on both mobile and desktop.\n\n## Tech Stack\n\n- **Frontend**: Next.js, React, Tailwind CSS\n- **Backend**: Node.js, Express, LiveKit\n- **Database**: Prisma ORM (supports PostgreSQL, MySQL, etc.)\n- **Authentication**: Clerk\n- **Real-Time**: WebSocket, Socket.IO\n- **Hosting**: Vercel\n\n## Setup and Installation\n\n### Prerequisites\n\n- Node.js and npm installed\n- PostgreSQL or another compatible database\n- Clerk account for authentication\n- LiveKit account for video/audio integration\n\n### Installation Steps\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/yourusername/discord-clone.git\n   cd discord-clone\n   ```\n\n2. **Install dependencies**:\n\n   ```bash\n   npm install\n   ```\n\n3. **Environment Variables**: Create a `.env` file in the root directory and add the following variables:\n\n   ```plaintext\n   DATABASE_URL=\u003cyour_database_url\u003e\n   LIVEKIT_API_KEY=\u003cyour_livekit_api_key\u003e\n   LIVEKIT_SECRET=\u003cyour_livekit_secret\u003e\n   CLERK_FRONTEND_API=\u003cyour_clerk_frontend_api\u003e\n   CLERK_API_KEY=\u003cyour_clerk_api_key\u003e\n   NEXT_PUBLIC_CLERK_FRONTEND_API=\u003cyour_clerk_frontend_api\u003e\n   ```\n\n4. **Database Setup**:\n   Run Prisma migrations to create the necessary tables.\n\n   ```bash\n   npx prisma migrate dev\n   ```\n\n5. **Start the development server**:\n\n   ```bash\n   npm run dev\n   ```\n\n6. **Access the app**: Open your browser and go to `http://localhost:3000` to view the app.\n\n## Usage\n\n1. **Login/Register**: Users must authenticate via Clerk to access chat rooms.\n2. **Chat**: Enter any conversation and start messaging in real time.\n3. **Video Chat**: Join a video or audio chat session within a room.\n4. **Message History**: View previous messages and experience auto-scroll to the latest message.\n\n## API Endpoints\n\n- **GET `/api/livekit`**: Retrieves a LiveKit token for audio/video chat.\n- **POST `/api/messages`**: Adds a new message to a conversation.\n- **DELETE `/api/messages/:id`**: Deletes a message by ID.\n\n---\n\n### Additional Notes\n\n1. **Clerk Setup**: Ensure your Clerk API keys are properly configured in `.env`.\n2. **Error Handling**: Basic error handling is implemented, but improvements are welcome!\n3. **Contribution**: Contributions are welcome! Please open a pull request or issue if you'd like to contribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxshabn%2Fdiscord-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxshabn%2Fdiscord-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxshabn%2Fdiscord-clone/lists"}