{"id":27256255,"url":"https://github.com/mrcoder991/vibe-chat","last_synced_at":"2025-04-11T02:57:16.330Z","repository":{"id":286628637,"uuid":"961994791","full_name":"mrcoder991/vibe-chat","owner":"mrcoder991","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-07T15:08:12.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T15:27:33.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vibechat-mrcoder991.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/mrcoder991.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}},"created_at":"2025-04-07T13:42:44.000Z","updated_at":"2025-04-07T15:08:16.000Z","dependencies_parsed_at":"2025-04-07T15:38:02.206Z","dependency_job_id":null,"html_url":"https://github.com/mrcoder991/vibe-chat","commit_stats":null,"previous_names":["mrcoder991/vibe-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcoder991%2Fvibe-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcoder991%2Fvibe-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcoder991%2Fvibe-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcoder991%2Fvibe-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrcoder991","download_url":"https://codeload.github.com/mrcoder991/vibe-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333595,"owners_count":21086199,"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","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":[],"created_at":"2025-04-11T02:57:15.811Z","updated_at":"2025-04-11T02:57:16.316Z","avatar_url":"https://github.com/mrcoder991.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vibe Chat\n\nA modern real-time chat application with user invitations and multimedia support. Built with Next.js, Firebase, and TypeScript.\n\n## Features\n\n- **User Authentication**: Secure email and password authentication\n- **User Invitation System**: Connect with other users by sharing and accepting user IDs\n- **Real-time Messaging**: Instant message delivery with read receipts\n- **Image Sharing**: Send and receive images in your conversations\n- **Message Quoting**: Reply to specific messages with context\n- **Message \u0026 Chat Management**: Delete messages or entire conversations\n- **Online Status**: See when your contacts are online or offline\n- **Responsive Design**: Works on desktop and mobile devices\n\n## Technology Stack\n\n- **Frontend**: Next.js, React, TypeScript, Tailwind CSS\n- **Backend**: Firebase (Authentication, Firestore)\n- **Image Storage**: ImageKit\n- **State Management**: Zustand\n- **Form Handling**: React Hook Form\n- **Notifications**: React Hot Toast\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+ and npm\n- Firebase account\n- ImageKit account (free tier available)\n\n### Setup\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/yourusername/vibe-chat.git\ncd vibe-chat\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Create a Firebase project:\n   - Go to [Firebase Console](https://console.firebase.google.com/)\n   - Create a new project\n   - Set up Authentication with Email/Password\n   - Create a Firestore database\n   - Get your Firebase config from Project Settings\n\n4. Create an ImageKit account:\n   - Go to [ImageKit.io](https://imagekit.io/)\n   - Sign up for a free account\n   - Get your Public Key, Private Key, and URL Endpoint from the Developer section\n\n5. Create a `.env.local` file in the root directory with your configurations:\n\n```\n# Firebase Configuration\nNEXT_PUBLIC_FIREBASE_API_KEY=your-api-key\nNEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-auth-domain\nNEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id\nNEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-storage-bucket\nNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id\nNEXT_PUBLIC_FIREBASE_APP_ID=your-app-id\n\n# Next Auth\nNEXTAUTH_URL=http://localhost:3000\nNEXTAUTH_SECRET=your-secret-key-here\n\n# ImageKit Configuration\nIMAGEKIT_PUBLIC_KEY=your-public-key\nIMAGEKIT_PRIVATE_KEY=your-private-key\nIMAGEKIT_URL_ENDPOINT=https://ik.imagekit.io/your_imagekit_id\n```\n\n6. Update Firestore rules:\n\n```rules\nrules_version = '2';\nservice cloud.firestore {\n  match /databases/{database}/documents {\n    match /users/{userId} {\n      allow read: if request.auth != null;\n      allow write: if request.auth != null \u0026\u0026 request.auth.uid == userId;\n    }\n    \n    match /chats/{chatId} {\n      allow read, write: if request.auth != null \u0026\u0026 request.auth.uid in resource.data.participants;\n      allow create: if request.auth != null \u0026\u0026 request.auth.uid in request.resource.data.participants;\n    }\n    \n    match /messages/{messageId} {\n      allow read: if request.auth != null \u0026\u0026 \n        exists(/databases/$(database)/documents/chats/$(resource.data.chatId)) \u0026\u0026 \n        request.auth.uid in get(/databases/$(database)/documents/chats/$(resource.data.chatId)).data.participants;\n      \n      allow create: if request.auth != null \u0026\u0026 request.auth.uid == request.resource.data.senderId;\n      \n      allow update: if request.auth != null \u0026\u0026 \n        (request.auth.uid == resource.data.senderId ||\n        (request.resource.data.diff(resource.data).affectedKeys().hasOnly(['read']) \u0026\u0026 \n         exists(/databases/$(database)/documents/chats/$(resource.data.chatId)) \u0026\u0026\n         request.auth.uid in get(/databases/$(database)/documents/chats/$(resource.data.chatId)).data.participants));\n      \n      allow delete: if request.auth != null \u0026\u0026 request.auth.uid == resource.data.senderId;\n    }\n    \n    match /invites/{inviteId} {\n      allow read: if request.auth != null \u0026\u0026 (request.auth.uid == resource.data.senderId || request.auth.uid == resource.data.recipientId);\n      allow create: if request.auth != null \u0026\u0026 request.auth.uid == request.resource.data.senderId;\n      allow update: if request.auth != null \u0026\u0026 request.auth.uid == resource.data.recipientId;\n    }\n  }\n}\n```\n\n7. Run the development server:\n\n```bash\nnpm run dev\n```\n\n8. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Deployment\n\nThis application can be easily deployed to Vercel:\n\n1. Push your code to a GitHub repository\n2. Connect your repository to Vercel\n3. Configure the environment variables in the Vercel project settings\n4. Deploy\n\n## How to Use\n\n1. Create an account or log in\n2. Find your user ID in the bottom of the sidebar\n3. Share your user ID with a friend\n4. Start a new chat by clicking \"New Chat\" and entering a friend's user ID\n5. Accept chat invitations from others\n6. Exchange messages, images, and enjoy chatting!\n\n## License\n\nMIT\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcoder991%2Fvibe-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrcoder991%2Fvibe-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcoder991%2Fvibe-chat/lists"}