{"id":29027028,"url":"https://github.com/devanshdevs/chat-app","last_synced_at":"2026-05-03T22:34:24.788Z","repository":{"id":300539946,"uuid":"1006424536","full_name":"DEVanshDEVS/chat-app","owner":"DEVanshDEVS","description":"A responsive real-time chat application built with React, Node.js, and Socket.IO. It supports instant messaging, live online user tracking, typing indicators, and system notifications — all wrapped in a clean, modern UI using Tailwind CSS and shadcn/ui.","archived":false,"fork":false,"pushed_at":"2025-06-22T09:04:11.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T09:33:47.481Z","etag":null,"topics":["socket-io","tailwindcss","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DEVanshDEVS.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,"zenodo":null}},"created_at":"2025-06-22T08:33:05.000Z","updated_at":"2025-06-22T09:05:22.000Z","dependencies_parsed_at":"2025-06-22T09:33:51.139Z","dependency_job_id":"7c9928a9-d6a3-4bf4-be21-e706644932bc","html_url":"https://github.com/DEVanshDEVS/chat-app","commit_stats":null,"previous_names":["devanshdevs/chat-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DEVanshDEVS/chat-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEVanshDEVS%2Fchat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEVanshDEVS%2Fchat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEVanshDEVS%2Fchat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEVanshDEVS%2Fchat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEVanshDEVS","download_url":"https://codeload.github.com/DEVanshDEVS/chat-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEVanshDEVS%2Fchat-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271019931,"owners_count":24685772,"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-18T02:00:08.743Z","response_time":89,"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":["socket-io","tailwindcss","webdevelopment"],"created_at":"2025-06-26T06:01:59.452Z","updated_at":"2026-05-03T22:34:24.752Z","avatar_url":"https://github.com/DEVanshDEVS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Chat Application\n\nA modern, real-time chat application built with React and Node.js, featuring Socket.IO for instant messaging capabilities.\n\n🚀 Features\n\n- ⚡ Real-time messaging via WebSockets\n- 🧍‍♂️ Live user presence and online list\n- ✍️ Typing indicators\n- ✅ Connection status and auto-reconnect\n- 📱 Fully responsive UI (mobile + desktop)\n- 🎨 Clean UI using Tailwind CSS + shadcn/ui\n- 🔔 System messages (join/leave events)\n\n---\n\n🛠️ Tech Stack\n\n🧩 Backend\n- **Node.js** + **Express**\n- **Socket.IO**\n- **CORS**\n\n🎨 Frontend\n- **React** + **Vite**\n- **Tailwind CSS** + **shadcn/ui**\n- **Lucide React**\n- **Socket.IO client**\n\n---\n\n📁 Project Structure\n\n```\nchat-app/\n├── backend/\n│   ├── server.js          # Main server file\n│   ├── package.json       # Backend dependencies\n│   └── node_modules/      # Backend dependencies\n├── frontend/\n│   ├── src/\n│   │   ├── App.jsx        # Main React component\n│   │   ├── App.css        # Styles\n│   │   ├── main.jsx       # Entry point\n│   │   └── components/    # UI components\n│   ├── index.html         # HTML template\n│   ├── package.json       # Frontend dependencies\n│   └── node_modules/      # Frontend dependencies\n└── README.md              # This file\n```\n\n⚙️ Installation \u0026 Setup\n\n🧾 Prerequisites:\nNode.js v18+\nnpm or pnpm installed globally\n\nglobally\n\n🔧 Backend Setup\ncd backend         # Navigate to backend directory\nnpm install        # Install server dependencies\nnpm run dev        # Start backend server\n   The backend server will run on `http://localhost:3001`\n\n💻 Frontend Setup\ncd backend         # Navigate to backend directory\nnpm install        # Install server dependencies\nnpm run dev        # Start backend server\n   The frontend will be available at `http://localhost:5173` or `http://localhost:5174`\n\n\n🧪 Usage\n\n🟢 Start both servers – Backend + Frontend\n🌐 Open http://localhost:5173 in your browser\n👤 Enter a username to join the chat\n💬 Start chatting with other users in real time\n🧪 Test multiple users by opening additional tabs or windows\n\n📡 API \u0026 WebSocket Events\n\n🌐 Backend Routes\n- `GET /` - Server status check\n- `GET /health` - Health check with connection info\n\n🔌 Socket.IO Events\n- `join` - User joins the chat\n- `send_message` - Send a message\n- `receive_message` - Receive a message\n- `typing` - Typing indicator\n- `user_joined` - User joined notification\n- `user_left` - User left notification\n- `users_list` - Current users list\n- `users_update` - Updated users list\n\n⚙️ Configuration\n\n🛠 Backend Configuration\nThe backend server is configured to:\n- Listen on port 3001 (configurable via PORT environment variable)\n- Accept connections from any origin (CORS enabled)\n- Listen on all network interfaces (0.0.0.0)\n\n🎨 Frontend Configuration\nThe frontend is configured to:\n- Connect to `http://localhost:3001` for Socket.IO\n- Use Vite for development with hot reload\n- Support responsive design for mobile and desktop\n\n🛠 Development\n\n🔄 Running in Development Mode\nBoth servers support hot reload for development:\n- Backend: Uses `nodemon` for automatic restart on file changes\n- Frontend: Uses Vite's built-in hot module replacement\n\n🏗 Building for Production\nTo build the frontend for production:\n```bash\ncd frontend\npnpm run build\n```\n\n✨ Features in Detail\n\n🔁 Real-time Communication\n- Uses Socket.IO for WebSocket-based real-time communication\n- Automatic reconnection on connection loss\n- Connection status indicator\n\n🖼️ User Interface\n- Modern, clean design with gradient backgrounds\n- Responsive layout that works on all screen sizes\n- Smooth animations and transitions\n- Professional color scheme with light/dark mode support\n\n📨 Message Features\n- Timestamps on all messages\n- User identification with different styling for own messages\n- System messages for user join/leave events\n- Typing indicators with timeout\n\n🧑‍💻 User Management\n- Live user count\n- Online users list with visual indicators\n- Automatic cleanup when users disconnect\n\n🐞 Troubleshooting\n\n❗Common Issues\n1. **Connection refused** - Make sure the backend server is running on port 3001\n2. **CORS errors** - The backend is configured to allow all origins\n3. **Port conflicts** - Vite will automatically use the next available port\n4. **Socket connection issues** - Check that both frontend and backend are running\n\n📜 Logs\n- Backend logs show user connections, messages, and server status\n- Frontend console shows Socket.IO connection status and errors\n\n🚀 Future Enhancements\n\nPotential features that could be added:\n- User authentication and persistent sessions\n- Message history and persistence\n- Private messaging\n- File sharing\n- Emoji support\n- Message reactions\n- User profiles and avatars\n- Chat rooms/channels\n- Message encryption\n\n📄 License\n\nThis project is open source and available under the MIT License.\n\n🙋‍♂️ Support\n\nFor issues or questions, please check the troubleshooting section above or review the code comments for implementation details.\n\nBuilt with ⚡ by DEVanshDEVS","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanshdevs%2Fchat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevanshdevs%2Fchat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanshdevs%2Fchat-app/lists"}