https://github.com/parshavshah/openchat-translator
OpenChat Translator is an AI-powered multilingual chat app that translates messages in real-time using OpenAI, enabling seamless communication between users speaking different languages via a simple, AJAX-based interface.
https://github.com/parshavshah/openchat-translator
express messaging-app multilingual nodejs openai sqlite translation
Last synced: about 1 month ago
JSON representation
OpenChat Translator is an AI-powered multilingual chat app that translates messages in real-time using OpenAI, enabling seamless communication between users speaking different languages via a simple, AJAX-based interface.
- Host: GitHub
- URL: https://github.com/parshavshah/openchat-translator
- Owner: parshavshah
- License: mit
- Created: 2025-06-28T05:12:52.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-06-28T12:02:37.000Z (7 months ago)
- Last Synced: 2025-06-28T13:19:14.712Z (7 months ago)
- Topics: express, messaging-app, multilingual, nodejs, openai, sqlite, translation
- Language: EJS
- Homepage: http://mindwaredev.com/
- Size: 337 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# π Multilingual Messaging App (Node.js + OpenAI)
A full-stack messaging application where users can log in with their name and preferred language, view all active users, send messages in their own language, and receive translated responsesβall powered by the OpenAI API.

---
## π Tech Stack
- **Backend**: Node.js, Express.js
- **Database**: SQLite3
- **Frontend**: EJS, Bootstrap 5
- **Translation**: OpenAI API
- **Architecture**: API-based (no real-time sockets)
---
## π Features
- β
Login with name and preferred language (no password)
- β
View all active/live users
- β
Send messages to any live user
- β
Automatic message translation using OpenAI
- β
Receive both original and translated message
- β
Fully REST API-based (no WebSockets or real-time communication)
- β
Manual logout (removes user from live list/database)
- β
Auto-logout after 1 hour of inactivity (no messaging)
---
## π§ Setup Instructions
### 1. Clone the Repository
```bash
git clone https://github.com/parshavshah/openchat-translator.git
cd openchat-translator
````
### 2. Install Dependencies
```bash
npm install
```
### 3. Configure OpenAI API Key
Create a `.env` file and add your OpenAI key:
```
OPENAI_API_KEY=your_openai_key_here
```
### 4. Run the App
```bash
npm start
```
App will be available at `http://localhost:3000`
---
## π License
MIT License Β© 2025 Parshav Shah