You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cyber AI is a full-stack chat application that integrates multiple Large Language Models (LLMs) including Google Gemini, DeepSeek, and Llama. It features real-time messaging via Socket.io, user authentication, chat history management, and image generation capabilities.
✨ Features
Multi-Model AI Support: Google Gemini, DeepSeek, Llama, OpenRouter
Real-time Messaging: WebSocket-based communication with Socket.io
User Authentication: JWT-based authentication with secure cookies
Chat Management: Create, delete, and search chat conversations
Image Generation: AI-powered image generation with ImageKit integration
Vector Search: Pinecone integration for semantic search
Web Search: Serper API integration for real-time web search
PWA Support: Progressive Web App with offline capabilities
Responsive Design: Tailwind CSS for mobile-first design
Update URLs in action folder (socket.js, Home.jsx, .env)
Frontend input length validation
Redirect to chat after chat creation
Handle empty message array (.length === 0)
Frontend Updates Needed
Update socket connection URL in chat/src/socket.js
Update API URL in chat/src/page/Home.jsx
Update environment variables in chat/.env
Push changes after URL updates
Validation Improvements
Add input length validation in chat input
Implement redirect after successful chat creation
Handle edge case when messages array is empty
📚 API Documentation
Authentication Routes
Method
Endpoint
Description
POST
/api/auth/register
Register new user
POST
/api/auth/login
User login
GET
/api/auth/logout
User logout
GET
/api/auth/me
Get current user
Chat Routes
Method
Endpoint
Description
GET
/api/chat
Get all chats
POST
/api/chat
Create new chat
DELETE
/api/chat/:id
Delete chat
GET
/api/chat/:id/messages
Get chat messages
Socket Events
Event
Direction
Description
connection
Client → Server
Initial connection
send-message
Client → Server
Send user message
ai-response
Server → Client
Receive AI response
typing
Bidirectional
Typing indicator
🔒 Security Features
JWT-based authentication
HTTP-only cookies
CORS configuration
Rate limiting with express-rate-limit
Password hashing with bcryptjs
📄 License
ISC License
🙏 Acknowledgments
Google AI for Gemini API
OpenRouter for multi-model access
Pinecone for vector database
ImageKit for image storage
About
Cyber-AI is a full-stack AI chat application with real-time messaging, image generation, file analysis, and a RAG (Retrieval-Augmented Generation) memory system. Built with React, Node.js, MongoDB, and Google Gemini AI, it features a modern dark-themed UI with capabilities similar to ChatGPT.