Live Chat API
This project is a robust, real-time communication backend designed for speed and scalability. Built on the Bun runtime, it provides a comprehensive API for various chat functionalities, including a "Random Chat" feature similar to Omegle, alongside standard messaging capabilities.
Key Features
- Versatile Chat Modes: Supports secure 1-on-1 private messaging, dynamic group chats, and random user matching (Omegle-style).
- Real-Time Interactive: Powered by Socket.io for instant message delivery, live typing indicators, and real-time read receipts.
- Message Management: Full CRUD capabilities allowing users to edit or delete messages with instant updates across all connected clients.
- Persistent Storage: All chat history is securely stored in PostgreSQL, managed via Prisma ORM for type-safe database interactions.
Tech Stack
- Runtime: Bun (for high-performance execution)
- Framework: Express.js, TypeScript
- Real-time: Socket.io (WebSockets)
- Database: PostgreSQL, Prisma ORM
- Auth: Cookie-based sessions