{"id":16484781,"url":"https://github.com/khareyash05/real-time-chat-app","last_synced_at":"2026-06-11T00:31:05.585Z","repository":{"id":109230854,"uuid":"473427911","full_name":"khareyash05/Real-Time-Chat-App","owner":"khareyash05","description":"Created a real-time React Js chat application using Web Sockets","archived":false,"fork":false,"pushed_at":"2022-03-28T14:38:35.000Z","size":852,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T23:59:31.581Z","etag":null,"topics":["reactjs","web-sockets"],"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/khareyash05.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":"2022-03-24T02:20:51.000Z","updated_at":"2022-03-24T02:24:18.000Z","dependencies_parsed_at":"2023-03-14T17:00:39.992Z","dependency_job_id":null,"html_url":"https://github.com/khareyash05/Real-Time-Chat-App","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khareyash05/Real-Time-Chat-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khareyash05%2FReal-Time-Chat-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khareyash05%2FReal-Time-Chat-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khareyash05%2FReal-Time-Chat-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khareyash05%2FReal-Time-Chat-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khareyash05","download_url":"https://codeload.github.com/khareyash05/Real-Time-Chat-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khareyash05%2FReal-Time-Chat-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34177445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","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":["reactjs","web-sockets"],"created_at":"2024-10-11T13:18:13.625Z","updated_at":"2026-06-11T00:31:05.560Z","avatar_url":"https://github.com/khareyash05.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Secure Chat Application using React and the Signal Protocol\n\n## Technology Stack\n1. ReactJS library for UI\n2. Signal Protocol Implementation for E2EE\n3. Axios for AJAX calls\n4. LocalStorage to store/fetch Pre-key bundle and Chats/Conversations\n5. Web Sockets Implementation for Instant Messaging\n\n## To Initialize the Frontend of this Project use the command -\n` nodemon start `\n\n## Components\n1. Login\n2. Chat Window\n    1. Contact List\n    2. Message Box\n\n## Axios Calls\n1. GET - api/users/login/userName - Returns User Object of the given User\n2. GET - api/users/users/userId/role - Returns Users Array other than the given User with given role\n\n## Web Sockets\n1. Establishing WS Connection: `let webSocket = new WebSocket(\"ws://localhost:3000/chat\")`\n2. Event Listeners of the webSocket Object:\n```\n    webSocket.onopen = () =\u003e {\n        console.log(‘WebSocket Client Connected’);\n        webSocket.send('Hi this is web client.');\n    };\n    webSocket.onmessage = (e) =\u003e {\n        console.log(‘Received: ’ + e.data);\n    };\n    webSocket.close = () =\u003e {\n        console.log('WebSocket Client Closed.’);\n    };\n```\n\n## Signal Protocol Implementation\n1. InMemorySignalProtocolStore.js (and helpers.js) are taken for storage purpose from Signal Github (link mentioned in resources)\n2. libsignal-protocol.js (also from Signal Github) implements the protocol\n3. Signal Gateway - Created by me to integrate React with Signal. It performs the Initialization, Encryption and Decryption functionality when required on Frontend. Check the file in src/signal/SignalGateway.js for detailed code.\n\n**Note:** If you do not clear local storage, then you can recover your old conversations post re-login since these are saved in their respective decrypted form. No data is stored on the server. Kindly view the tutorial for more details.\n\n## Resources\n1. [Complete YouTube Tutorial for this project](https://www.youtube.com/watch?v=gNbdgIznjhU\u0026ab_channel=QED42)\n2. [Complete Blog for this project](https://www.qed42.com/blog/developing-real-time-secure-chat-application-like-whatsapp-or-signal-with-end-end-encryption)\n3. [Backend - NodeJS](https://github.com/VertikaJain/node-express-ts-chat-app)\n4. [Signal Protocol in JavaScript Github](https://github.com/signalapp/libsignal-protocol-javascript)\n5. [Why Axios](https://medium.com/@MinimalGhost/what-is-axios-js-and-why-should-i-care-7eb72b111dc0)\n6. [ReactJS](https://reactjs.org/)\n7. [Web Sockets API](https://developer.mozilla.org/en-US/docs/Web/API/Websockets_API)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhareyash05%2Freal-time-chat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhareyash05%2Freal-time-chat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhareyash05%2Freal-time-chat-app/lists"}