{"id":27437377,"url":"https://github.com/ryomendev/real-time-tracking","last_synced_at":"2026-05-13T20:32:19.589Z","repository":{"id":282699338,"uuid":"949392039","full_name":"RyomenDev/Real-time-Tracking","owner":"RyomenDev","description":"This project tracks active users on a webpage using Socket.io and Express.js, storing their IP addresses and socket IDs. It provides real-time user count updates and an API to fetch current users. Ideal for monitoring online presence dynamically and efficiently. 🚀","archived":false,"fork":false,"pushed_at":"2025-03-16T14:11:20.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T20:38:01.363Z","etag":null,"topics":["real-time","realtimetracking","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/RyomenDev.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":"2025-03-16T11:04:41.000Z","updated_at":"2025-03-17T09:46:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b66c302-c012-4420-a613-0b3c3d3b16ff","html_url":"https://github.com/RyomenDev/Real-time-Tracking","commit_stats":null,"previous_names":["ryomendev/real-time-tracking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RyomenDev/Real-time-Tracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyomenDev%2FReal-time-Tracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyomenDev%2FReal-time-Tracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyomenDev%2FReal-time-Tracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyomenDev%2FReal-time-Tracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyomenDev","download_url":"https://codeload.github.com/RyomenDev/Real-time-Tracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyomenDev%2FReal-time-Tracking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["real-time","realtimetracking","socket-io"],"created_at":"2025-04-14T20:29:01.304Z","updated_at":"2026-05-13T20:32:19.584Z","avatar_url":"https://github.com/RyomenDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📌 Real-Time User Tracking with Socket.io\n\nThis project tracks active users on a page in real-time using **Express, Socket.io, and React**. Each connected user's **IP address** is saved along with their **socket ID**, and the count of online users is updated dynamically.\n\n## 🚀 Features\n\n- **Real-time user tracking** with WebSockets\n- **Stores IP address** of connected users\n- **Live updates** on the frontend\n- **API to get active users**\n- **Handles user disconnects properly**\n\n---\n\n## 🛠️ Tech Stack\n\n- **Backend:** Node.js, Express, Socket.io\n- **Frontend:** React, WebSockets\n\n---\n\n## 📂 Installation \u0026 Setup\n\n### 1️⃣ Clone the repository\n\n```sh\ngit clone https://github.com/your-username/repo-name.git\ncd repo-name\n```\n\n### 2️⃣ Install dependencies\n\n```sh\n# Install backend dependencies\ncd server\nnpm install\n\n# Install frontend dependencies\ncd client\nnpm install\n```\n\n### 3️⃣ Start the servers\n\n```sh\n# Start backend (Express \u0026 Socket.io)\ncd server\nnode index.js\n\n# Start frontend (React)\ncd client\nnpm start\n```\n\n---\n\n### 🖥️ Backend: Express + Socket.io\n\n#### 🔹 **Server Code (`server.js`)**\n\n---\n\n### 🎨 Frontend: React + WebSockets\n\n#### 🔹 **React Component (`PageTracker.js`)**\n\n---\n\n## 📡 API Endpoints\n\n| Method | Endpoint             | Description              |\n| ------ | -------------------- | ------------------------ |\n| GET    | `/api/current-users` | Get list of active users |\n\n---\n\n## 🔥 Expected Output\n\n### **Console Logs (Backend)**\n\n```sh\nUser connected: abc123 from IP: 192.168.1.10\nUser connected: xyz456 from IP: 192.168.1.11\nUser disconnected: abc123\n```\n\n### **UI on Frontend**\n\n```\n📌 Users on this Page\n2 users online\n\n1. IP: 192.168.1.10\n2. IP: 192.168.1.11\n```\n\n---\n\n## 🎯 Future Improvements\n\n✅ Store user data in **Redis** for scalability  \n✅ Use **GeoIP API** to display location info  \n✅ Add **user authentication** for tracking logged-in users\n\n---\n\n## 📝 License\n\nThis project is licensed under the **MIT License**.\n\n---\n\n## 🤝 Contributing\n\nFeel free to submit issues or pull requests!\n\n🔗 **GitHub Repository**: [repo-link](https://github.com/RyomenDev/Real-time-Tracking.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryomendev%2Freal-time-tracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryomendev%2Freal-time-tracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryomendev%2Freal-time-tracking/lists"}