{"id":24255859,"url":"https://github.com/bernietv/twitch-clone","last_synced_at":"2026-04-10T02:40:44.584Z","repository":{"id":272171114,"uuid":"915711546","full_name":"BernieTv/Twitch-Clone","owner":"BernieTv","description":"Twitch Clone build with Nest.js and Next.js 👾🟣🎥🔴🔥","archived":false,"fork":false,"pushed_at":"2025-01-27T14:33:01.000Z","size":15699,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T18:45:37.813Z","etag":null,"topics":["apollo-client","bun","graph","livekit","nestjs","nextjs","prisma","redis","stripe","tailwindcss","zod"],"latest_commit_sha":null,"homepage":"https://twitch-clone-swart-kappa.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/BernieTv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-01-12T15:55:03.000Z","updated_at":"2025-01-27T14:33:06.000Z","dependencies_parsed_at":"2025-01-27T15:41:21.610Z","dependency_job_id":null,"html_url":"https://github.com/BernieTv/Twitch-Clone","commit_stats":null,"previous_names":["bernietv/twitch-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BernieTv/Twitch-Clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernieTv%2FTwitch-Clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernieTv%2FTwitch-Clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernieTv%2FTwitch-Clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernieTv%2FTwitch-Clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BernieTv","download_url":"https://codeload.github.com/BernieTv/Twitch-Clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernieTv%2FTwitch-Clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121168,"owners_count":24702723,"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-08-19T02:00:09.176Z","response_time":63,"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":["apollo-client","bun","graph","livekit","nestjs","nextjs","prisma","redis","stripe","tailwindcss","zod"],"created_at":"2025-01-15T04:06:09.857Z","updated_at":"2026-04-10T02:40:44.552Z","avatar_url":"https://github.com/BernieTv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Twitch Clone\n\nA **feature-rich** Twitch clone built with modern web technologies! 🎮✨ This project replicates core functionalities of Twitch, incorporating live streaming, real-time chat, authentication, and much more. 🌟\n\n## 🛠️ Tech Stack\n\nHere are the technologies that power this Twitch clone:\n\n- **Backend:**\n\n  - 🟢 [Nest.js](https://nestjs.com/) - A progressive Node.js framework.\n  - ⚙️ [GraphQL](https://graphql.org/) - API query language for flexibility.\n  - 💾 [Prisma](https://www.prisma.io/) - Modern ORM for database access.\n\n- **Frontend:**\n\n  - ⚡ [Next.js 15](https://nextjs.org/) - The React framework for production.\n  - 🔄 [Apollo Client](https://www.apollographql.com/docs/react/) - State management for GraphQL.\n  - 🌐 [Next Intl](https://next-intl-docs.vercel.app/) - Internationalization support.\n\n- **Authentication:**\n\n  - 🔐 OTP Authentication for secure login.\n\n- **Real-Time Streaming:**\n\n  - 📹 [LiveKit](https://livekit.io/) - Scalable WebRTC for real-time communications.\n\n- **Payments:**\n\n  - 💳 [Stripe](https://stripe.com/) - Secure and seamless payment integration.\n\n- **Validation:**\n\n  - ✅ [Zod](https://zod.dev/) - Schema declaration and validation.\n\n- **Caching:**\n- 🏎️ [Redis](https://redis.io/) - Lightning-fast in-memory data store.\n\n- **UI Components:**\n\n  - 🎨 [Shadcn UI](https://ui.shadcn.dev/) - Accessible and reusable components.\n\n- **State Management:**\n\n  - 📊 [Zustand](https://zustand-demo.pmnd.rs/) - Simplified state management for React.\n\n- **Bundler:**\n\n  - ⚡ [Bun](https://bun.sh/) - Ultra-fast JavaScript runtime and bundler.\n\n- **Messaging Integration:**\n  - 📩 [Telegram Bot API](https://core.telegram.org/bots/api) - Integration for notifications and updates.\n\n---\n\n## 🌟 Features\n\n- 🔴 Live Streaming and Real-Time Chat\n- 🌍 Multi-Language Support with Translations\n- 🔒 Secure OTP Authentication\n- 💸 Stripe-Powered Payment Integration\n- 🎛️ User-Friendly Dashboard and Controls\n- 📚 Modular and Scalable Codebase\n- ⚡ Ultra-Fast Bundling with Bun\n- 📩 Telegram Notifications for Updates and Alerts\n- 🏎️ Enhanced Performance with Redis Caching\n\n---\n\n## 🛑 Prerequisites\n\nBefore you get started, ensure you have the following installed:\n\n- [Node.js](https://nodejs.org/) (v18 or higher) 🟢\n- [Bun](https://bun.sh/) (optional, for faster builds) ⚡\n- [Docker](https://www.docker.com/) (for database and LiveKit setup) 🐳\n- A Stripe account 💳\n- A Telegram Bot API key 📩\n- LiveKit API keys ⚡\n\n---\n\n## 🚀 Getting Started\n\nFollow these steps to set up the project locally:\n\n### 1️⃣ Clone the Repository\n\n```bash\n$ git clone https://github.com/BernieTv/twitch-clone.git\n$ cd twitch-clone\n```\n\n### 2️⃣ Install Dependencies\n\n```bash\n# cd to backend server\ncd backend \u0026\u0026 yarn\n\n# cd to frontend folder\n$ cd frontend \u0026\u0026 bun install\n```\n\n### 3️⃣ Set Up Environment Variables\n\nCreate a `.env` file in frontend and backend folders and add the following:\n\n```env\n# for backend\n\nNODE_ENV='development'\n\nAPPLICATION_PORT=4000\nAPPLICATION_URL='http://localhost:${APPLICATION_PORT}'\nGRAPHQL_PREFIX='/graphql'\nALLOWED_ORIGIN='http://localhost:3000'\n\nCOOKIES_SECRET='secret'\nSESSION_SECRET='secret'\nSESSION_NAME='session'\nSESSION_DOMAIN='localhost'\nSESSION_MAX_AGE='30d'\nSESSION_HTTP_ONLY=true\nSESSION_SECURE=false\nSESSION_FOLDER='sessions:'\n\nPOSTGRES_USER='root'\nPOSTGRES_PASSWORD='123456'\nPOSTGRES_HOST='localhost'\nPOSTGRES_PORT='5433'\nPOSTGRES_DATABASE='*'\nPOSTGRES_URI='postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DATABASE}'\n\nREDIS_USER='default'\nREDIS_PASSWORD='123456'\nREDIS_HOST='localhost'\nREDIS_PORT='6379'\nREDIS_URI='redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}'\n\nMAIL_HOST='*'\nMAIL_PORT=*\nMAIL_LOGIN='*t'\nMAIL_PASSWORD='*'\n\nS3_ENDPOINT='*'\nS3_REGION='*'\nS3_ACCESS_KEY_ID='*'\nS3_SECRET_ACCESS_KEY='*'\nS3_BUCKET_NAME='*'\n\nLIVEKIT_API_URL='*'\nLIVEKIT_API_KEY='*'\nLIVEKIT_API_SECRET='*'\n\nTELEGRAM_BOT_TOKEN='*'\n\nSTRIPE_SECRET_KEY='*'\nSTRIPE_WEBHOOK_SECRET=''\n\n# for frontend\n\nNEXT_PUBLIC_APP_URL='http://localhost:3000'\n\nNEXT_PUBLIC_SERVER_URL='http://localhost:4000/graphql'\nNEXT_PUBLIC_WEBSOCKET_URL='ws://localhost:4000/graphql'\nNEXT_PUBLIC_MEDIA_URL='*'\n\nNEXT_PUBLIC_LIVEKIT_WS_URL=''\n```\n\n### 4️⃣ Start the Services\n\nStart the databases using Docker:\n\n```bash\n$ docker-compose up -d\n```\n\n### 5️⃣ Run the Development Server\n\n```bash\n# for backend\n$ yarn run start:dev\n\n# for frontend\n$ bun run dev\n```\n\n---\n\n## 📚 Documentation\n\n- [Nest.js Documentation](https://docs.nestjs.com/)\n- [Next.js Documentation](https://nextjs.org/docs)\n- [Prisma Documentation](https://www.prisma.io/docs)\n- [GraphQL Documentation](https://graphql.org/learn/)\n- [Stripe Documentation](https://stripe.com/docs)\n- [Telegram Bot API Documentation](https://core.telegram.org/bots/api)\n- [Redis Documentation](https://redis.io/docs)\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. 📝\n\n---\n\n## ✨ Demo\n\nCheck out the live demo here: [Twitch Clone Demo](https://twitch-clone-swart-kappa.vercel.app) 🎥\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernietv%2Ftwitch-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernietv%2Ftwitch-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernietv%2Ftwitch-clone/lists"}