RaktFlow is a secure, real-time SaaS chat platform designed for private 1v1 conversations โ fast, encrypted, and minimal. Featuring seamless login, intelligent user discovery, and an integrated AI chatbot system powered by EndGaming AI API , RaktFlow offers users a unique blend of privacy, speed, and smart interaction. Whether you're chatting with friends or engaging in deep conversations with bots, your messages stay yours โ always private, always flowing.
- Features
- Tech Stack
- System Flow
- Installation
- Usage Guide
- Screenshots
- Deployment
- AI Bot Example
- Roadmap
- License
- Contact
| Feature | Description |
|---|---|
| ๐ Authentication | Unique username and password registration & secure login/logout system |
| ๐ฅ User List | View all existing users on the platform |
| ๐ Search Users | Easily search users by username |
| ๐ค AI Bots Tab | Chat with AI-powered bots in a separate section |
| ๐ฌ 1v1 Private Chat | True private messaging with no third-party visibility |
| ๐ Persistent Login | Re-login anytime with your registered credentials |
| ๐ Logout Anytime | Easily logout and return to login screen |
Frontend:
- React.js (Vite)
- Tailwind CSS
- Axios
- Context API (for state management)
- Socket.IO-client
- React Router Dom (for routing)
Backend:
- Node.js
- Express.js
- MongoDB (Mongoose)
- Socket.IO (WebSockets)
- JWT (Authentication)
- Bcrypt (Password hashing)
sequenceDiagram
participant User
participant Frontend
participant Backend
participant MongoDB
participant Socket.IO
User->>Frontend: Registers/Login
Frontend->>Backend: POST /register or /login
Backend->>MongoDB: Save/Check User
MongoDB-->>Backend: Success/Error
Backend-->>Frontend: JWT + User Info
User->>Frontend: Navigates to Chat
Frontend->>Socket.IO: Connect
Frontend->>Backend: GET /users
Frontend->>Backend: GET /chat/:userId
User->>Frontend: Sends message
Frontend->>Socket.IO: Emit message
Socket.IO-->>Recipient: Real-time receive
- Node.js v18+
- MongoDB Atlas or Local MongoDB
- (Optional) AI API Key for chatbot
git clone https://github.com/201Harsh/RaktFlow.git
cd RaktFlow/Backend
npm install
cp .env
npm run devcd ../Frontend
npm install
cp .env
npm run dev- Register using a unique username and password
- Get redirected to the chat page
- Search users and start private chats
- Switch to the AI Bots tab to chat with AI
- Logout and login again anytime
See the Screenshots Below
Render:
- Backend: Deploy Express server and MongoDB URI in environment variables
- Frontend: Build with
npm run buildand serve using static hosting
Vercel:
- Frontend only (connect to backend API via HTTPS)
MongoDB Atlas:
- Use cloud database connection string
This guide shows how to integrate the EndGaming AI API with your RaktFlow backend to enable real-time AI-powered chatbot interactions.
Ensure you have the following dependencies installed in your backend project:
npm install express axios dotenvCreate or update your .env file with your EndGaming AI API key:
ENDGAMING_AI_KEY=your_actual_api_key_hereHere's a sample route for handling AI-powered replies using EndGaming AI API:
// backend/routes/ai.js
const express = require("express");
const router = express.Router();
const axios = require("axios");
router.post("/bot-reply", async (req, res) => {
try {
const { prompt } = req.body;
const response = await axios.post(
"https://api.endgamingai.com/v1/chat",
{
prompt,
model: "endgaming-gpt",
temperature: 0.7,
maxTokens: 150,
},
{
headers: {
Authorization: `Bearer ${process.env.ENDGAMING_AI_KEY}`,
"Content-Type": "application/json",
},
}
);
res.json({ reply: response.data.reply });
} catch (error) {
console.error("AI Bot Error:", error.message);
res.status(500).json({ error: "Failed to get AI response" });
}
});
module.exports = router;- You can adjust
temperature,model, ormaxTokensfor different response behavior. - Consider adding rate limiting and fallback responses in case of failure.
Enjoy building smarter chatbots with EndGaming AI!
A glance at what's built, what's brewing, and what's coming soon:
- โ Chat UI Cleanup โ Minimal, sleek interface for better usability
- โ User Search & AI Tabs โ Switch between human chats and bots seamlessly
- โ Chatbot Integration (Basic) โ Initial integration with EndGaming AI API
- ๐ End-to-End Encryption โ Ensure full message privacy with E2EE protocols
- ๐ Chat History Storage โ Save and retrieve past conversations
- ๐ Typing Indicators & Online Status โ Real-time awareness of user activity
- ๐ File & Media Sharing โ Allow images, PDFs, and more in chats
- ๐ Notifications โ Browser and in-app message alerts
- ๐ง Advanced AI Bot Features โ Contextual memory, personalized replies
- ๐ Internationalization (i18n) โ Support for multiple languages
- ๐ฑ Mobile Optimization โ Fully responsive mobile experience
- ๐ Admin Dashboard โ Manage users, bots, and conversations
- ๐งช Unit & Integration Tests โ Robust testing coverage for stability
We welcome all contributions to make RaktFlow even better! Whether you're fixing bugs, improving the UI, enhancing chatbot logic, or adding new features โ your help is valued and appreciated.
- Fork the repository
- Clone your fork to your local machine
git clone https://github.com/201Harsh/RaktFlow.git- Create a new branch for your feature/fix
git checkout -b feature/YourFeatureName- Make your changes and commit
git commit -m "Add: Description of your feature"- Push to your branch
git push origin feature/YourFeatureName- Open a Pull Request on the main repo with a clear description of what youโve done.
- ๐งฑ Add support for emojis, images, or file sharing
- ๐ Implement more end-to-end encryption
- ๐ค Improve AI bot responses using GPT/Gemini API
- ๐งโ๐จ Refactor or redesign UI components (Tailwind + Plan CSS)
- ๐ฌ Add message read receipts or typing indicators
- ๐ Add internationalization / localization support
- ๐ Add User's Online/Offline Feature
- Follow consistent code style (Prettier + ESLint recommended)
- Keep PRs small and focused
- Add clear, meaningful commit messages
- Document your changes where necessary
- see the site live at
MIT License
Copyright (c) 2025 Harsh
Permission is hereby granted, free of charge, to any person obtaining a copy...
- GitHub: https://github.com/201Harsh
- Instagram: https://www.instagram.com/201harshs/
- Email: support@endgamingai2@gmail.com



