{"id":28754409,"url":"https://github.com/inaveed-git/websocket-chatapp","last_synced_at":"2026-04-29T10:09:02.270Z","repository":{"id":299104953,"uuid":"1002078184","full_name":"inaveed-git/WebSocket-ChatApp","owner":"inaveed-git","description":"A lightweight real-time chat application built with React, TypeScript, and WebSockets. Users can join a room using a unique Room ID and exchange messages instantly with others in the same room.","archived":false,"fork":false,"pushed_at":"2025-06-14T17:11:07.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-14T18:24:29.960Z","etag":null,"topics":["chat","tailwind","websocket"],"latest_commit_sha":null,"homepage":"","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/inaveed-git.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-14T17:04:47.000Z","updated_at":"2025-06-14T17:15:02.000Z","dependencies_parsed_at":"2025-06-14T18:24:54.810Z","dependency_job_id":"d4e9692e-fdf5-488f-af1c-b38147285d7b","html_url":"https://github.com/inaveed-git/WebSocket-ChatApp","commit_stats":null,"previous_names":["inaveed-git/websocket-chatapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inaveed-git/WebSocket-ChatApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaveed-git%2FWebSocket-ChatApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaveed-git%2FWebSocket-ChatApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaveed-git%2FWebSocket-ChatApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaveed-git%2FWebSocket-ChatApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inaveed-git","download_url":"https://codeload.github.com/inaveed-git/WebSocket-ChatApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaveed-git%2FWebSocket-ChatApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269458,"owners_count":22983648,"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":["chat","tailwind","websocket"],"created_at":"2025-06-17T01:09:13.436Z","updated_at":"2026-04-29T10:09:02.241Z","avatar_url":"https://github.com/inaveed-git.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## 💬 WebSocket Chat Room\n\nA lightweight real-time chat application built with **React**, **TypeScript**, and **WebSockets**. Users can join a room using a unique `Room ID` and exchange messages instantly with others in the same room.\n\n---\n\n### 🚀 Features\n\n* 📡 Real-time messaging with WebSocket\n* 🧠 Room-based chat functionality\n* 🗃️ Room ID stored in localStorage (auto-join after refresh)\n* 💡 Lightweight frontend with Tailwind CSS\n* 📦 Built using TypeScript (frontend + backend)\n* ✅ Responsive UI\n\n---\n\n### 📁 Project Structure\n\n```\n.\n├── backend\n│   └── src\n│       └── index.ts       # WebSocket server using ws\n├── frontend\n│   └── src\n│       └── App.tsx        # React chat app\n│       └── main.tsx\n│       └── index.css\n├── README.md\n├── package.json\n```\n\n---\n\n### 🛠️ Tech Stack\n\n* **Frontend**: React + TypeScript + Tailwind CSS\n* **Backend**: Node.js + TypeScript + ws (`WebSocket` library)\n\n---\n\n### ⚙️ Getting Started\n\n#### 1. Clone the repository\n\n```bash\ngit clone https://github.com/inaveed-git/WebSocket-ChatApp.git\ncd WebSocket-ChatApp\n```\n\n---\n\n#### 2. Setup Backend\n\n```bash\ncd backend\nnpm install\nnpm run dev\n```\n\n\u003e This will start the WebSocket server on `ws://localhost:8080`.\n\n---\n\n#### 3. Setup Frontend\n\n```bash\ncd frontend\nnpm install\nnpm run dev\n```\n\n\u003e This will start the React app on `http://localhost:5173` (Vite default port).\n\n---\n\n### 📷 Preview\n\n![Chat UI Preview](frontend/screenshots/ws1.PNG)\n![Chat UI Preview](frontend/screenshots/ws2.PNG)\n\n---\n\n### 🧪 Usage\n\n1. Start both the **frontend** and **backend**.\n2. Open the app in the browser.\n3. Enter a `Room ID` to join a chat room.\n4. Start chatting with others who join the same room!\n\n---\n\n### 📌 Notes\n\n* The app uses a single WebSocket connection.\n* Messages are **not persisted** — no database.\n* Designed for local use or learning purposes.\n\n---\n\n\n\n### 🧑‍💻 Author\n\n**Naveed khan**\nGitHub: [@inaveed-git](https://github.com/inaveed-git)\n\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaveed-git%2Fwebsocket-chatapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finaveed-git%2Fwebsocket-chatapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaveed-git%2Fwebsocket-chatapp/lists"}