How beni-miansi/nexaa works
NexaAI is a web chatbot with account authentication, configurable specialist assistants and models, streamed AI replies, and persisted, searchable conversations. Users register or log in, then enter the protected chat, manage conversations and settings, and send messages; the chat page handles the streamed response. The React client calls an Express API, which implements authentication, chat, and conversation/history endpoints backed by SQLite and the Groq API. The graph reflects documented capabilities, but unsampled server and database details are not expanded beyond the evidence shown.
Main entry points: ChatPage.jsx Chat page · App.jsx Route application · api.js API client · db.js Database access
Components 20
React application
- Route application
src/App.jsx - App state
src/context/AppContext.jsx - Login page
src/pages/LoginPage.jsx - Registration page
src/pages/RegisterPage.jsx - Chat page
src/pages/ChatPage.jsx - API client
src/api.js
Chat interface
- Chat sidebar
src/components/Sidebar.jsx - Conversation list
src/components/ConversationList.jsx - Message display
src/components/ChatMessages.jsx - Message input
src/components/MessageInput.jsx - Empty chat state
src/components/EmptyState.jsx - Profile settings
src/components/ProfileModal.jsx - Toast notifications
src/components/Toast.jsx
API and domain
- Authentication routes
server.js - Chat and streaming
server.js - Conversation and history routes
server.js
Persistence and AI
- Database access
db.js - SQLite database
- Groq API
Other components
- User
Connections 25
- User → Route application: uses
src/App.jsx - Route application → App state: reads session
src/App.jsx - Route application → Login page: routes to
src/App.jsx - Route application → Registration page: routes to
src/App.jsx - Route application → Chat page: guards route
src/App.jsx - Route application → Toast notifications: renders
src/App.jsx - Login page → API client: calls login
src/pages/LoginPage.jsx - Registration page → API client: calls register
src/pages/RegisterPage.jsx - Login page → App state: sets user
src/pages/LoginPage.jsx - Registration page → App state: sets user
src/pages/RegisterPage.jsx - Chat page → API client: calls endpoints
src/pages/ChatPage.jsx - Chat page → Chat sidebar: renders
src/pages/ChatPage.jsx - Chat page → Message display: renders
src/pages/ChatPage.jsx - Chat page → Message input: renders
src/pages/ChatPage.jsx - Chat page → Empty chat state: renders
src/pages/ChatPage.jsx - Chat page → Profile settings: renders
src/pages/ChatPage.jsx - Chat sidebar → Conversation list: renders
src/components/Sidebar.jsx - API client → Authentication routes: HTTP requests
src/api.js - API client → Chat and streaming: streams request
src/api.js - API client → Conversation and history routes: HTTP requests
src/api.js - Authentication routes → Database access: reads and writes
server.js - Conversation and history routes → Database access: reads and writes
server.js - Chat and streaming → Database access: loads messages
server.js - Database access → SQLite database: persists data
db.js - Chat and streaming → Groq API: requests AI
README.md