{"id":27519580,"url":"https://github.com/injusmol/online-mediator","last_synced_at":"2026-04-10T04:34:56.539Z","repository":{"id":287974470,"uuid":"945631391","full_name":"InjuSmol/Online-Mediator","owner":"InjuSmol","description":"A real-time MERN chat app enhanced with an AI-powered mediator that formalizes messages for thoughtful communication and conflict resolution. ","archived":false,"fork":false,"pushed_at":"2025-07-04T00:56:46.000Z","size":11034,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T01:34:15.813Z","etag":null,"topics":["express","flask","mongodb","react","socket-io","zustand"],"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/InjuSmol.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-09T21:23:06.000Z","updated_at":"2025-07-04T00:56:50.000Z","dependencies_parsed_at":"2025-07-04T01:38:50.347Z","dependency_job_id":null,"html_url":"https://github.com/InjuSmol/Online-Mediator","commit_stats":null,"previous_names":["injusmol/online-mediator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InjuSmol/Online-Mediator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FOnline-Mediator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FOnline-Mediator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FOnline-Mediator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FOnline-Mediator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InjuSmol","download_url":"https://codeload.github.com/InjuSmol/Online-Mediator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InjuSmol%2FOnline-Mediator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018585,"owners_count":26086583,"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-10-14T02:00:06.444Z","response_time":60,"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":["express","flask","mongodb","react","socket-io","zustand"],"created_at":"2025-04-18T05:26:08.376Z","updated_at":"2025-10-14T12:53:03.389Z","avatar_url":"https://github.com/InjuSmol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Online Mediator — AI-Powered Mediator Chat App\n\n\u003cimg width=\"547\" alt=\"Screenshot 2025-04-14 at 6 20 49 PM\" src=\"https://github.com/user-attachments/assets/364aa64f-ddcc-474d-a908-57baaeafe05c\" /\u003e\n\n\u003cimg width=\"547\" alt=\"Screenshot 2025-04-14 at 6 24 09 PM\" src=\"https://github.com/user-attachments/assets/5991f093-428b-4eb8-bab3-a3e7f5a5a6fa\" /\u003e\n\n```\nUser → React Frontend (not shown)\n      ↓\nExpress Server (Node.js)\n      ↳ User Auth (MongoDB)\n      ↳ Message API + Realtime via Socket.io\n      ↳ /formalizer → Flask Microservice\n                         ↓\n       Hugging Face API: Formal Language Model\n```\n\nOnline AI Mediator is a full-stack web application designed to facilitate thoughtful and respectful communication between users through real-time chat. Built with the MERN stack (MongoDB, Express, React, Node.js), socket.io for real-time messages exchanges. The platform integrates a Python-based Flask microservice that leverages a NLP model (prithivida/informal_to_formal_styletransfer) to transform informal or emotionally charged messages into a more formal and neutral tone before delivery.\n\nThis unique mediation layer fosters conflict resolution, reduces miscommunication, and promotes civil discourse — making the application suitable for environments where constructive communication is critical, such as online support groups, team collaboration platforms, or educational discussions. The application also features real-time user presence indicators, JWT-based authentication and authorization, modern UI styling with TailwindCSS and Daisy UI, global state management with Zustand, and end-to-end error handling.\n\nThe application is still under active development, and further improvements are planned for the NLP component to enhance efficiency and flexibility.\n\n## Getting Started\n\n### 1. Update the .env: \n\n```bash\nMONGODB_URI =\nPORT = 5001\n\nJWT_SECRET = \nNODE_ENV = development\nCLOUDINARY_CLOUD_NAME = \nCLOUDINARY_API_KEY = \nCLOUDINARY_API_SECRET = \nPYTHON_API = http://python:5000/\nHF_API_TOKEN = \n```\n\n### 2. Install dependencies\n\n```bash\n# For backend\ncd backend\nnpm install\n\n# For frontend\ncd ../frontend\nnpm install\n\n# For Python AI microservice\ncd ../py_service\npip install -r requirements.txt\n```\n\n### 3. Run the services\n\nIn three separate terminals:\n\n```bash\n# Start Flask microservice\ncd python\npython3 app.py\n\n# Start backend server\ncd ../backend\nnpm run dev\n\n# Start frontend\ncd ../frontend\nnpm run dev\n```\n\n### 4. Access the Application locally: \n\nVisit: [http://localhost:5173](http://localhost:5173)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finjusmol%2Fonline-mediator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finjusmol%2Fonline-mediator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finjusmol%2Fonline-mediator/lists"}