An open API service indexing awesome lists of open source software.

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.

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.

![AI-Powered Chat App with Realtime translation](./app-screenshots.png)

---

## πŸ›  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