How siddartharavula/elevaite works
elevAIte is a document journal with account-based access and an AI assistant for summarizing pasted text and answering questions. Users register or log in, then create dated documents or search and read them; the View Doc page also sends pasted content and prompts to the assistant. The backend owns HTTP routing, authentication, document persistence, and agent invocation. The tree omits the imported database module and no README content was provided, so database wiring beyond the shown session/table calls and unsampled UI details are not expanded.
Main entry points: App.jsx App routing · api.js API client · main.py HTTP API · ViewDoc.jsx View documents
Components 20
Web client
- App routing
frontend/src/App.jsx - Protected routes
frontend/src/components/ProtectedRoute.jsx - Login
frontend/src/pages/Login.jsx - Registration
frontend/src/pages/Register.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - API client
frontend/src/api.js - Shader background
frontend/src/components/ui/ShaderBackground.jsx
Identity
- HTTP API
backend/main.py - Authentication
backend/auth.py
Document journal
- Write document
frontend/src/pages/WriteDoc.jsx - View documents
frontend/src/pages/ViewDoc.jsx - Document schemas
backend/schemas.py - User and document models
backend/models.py - Database
backend/app.db
AI assistant
- AI panel
frontend/src/components/ui/AiAgentPanel.jsx - Agent orchestration
backend/ai-agent/agent.py - Session memory
backend/ai-agent/memory/session_memory.py - Groq model service
Other components
- User
- Browser
Connections 25
- User → Browser: uses
- Browser → App routing: loads
- App routing → Login: routes
frontend/src/App.jsx - App routing → Registration: routes
frontend/src/App.jsx - App routing → Protected routes: protects
frontend/src/App.jsx - Protected routes → API client: checks token
frontend/src/components/ProtectedRoute.jsx - App routing → Dashboard: routes
frontend/src/App.jsx - App routing → Write document: routes
frontend/src/App.jsx - App routing → View documents: routes
frontend/src/App.jsx - App routing → Shader background: renders
frontend/src/App.jsx - Login → API client: calls
frontend/src/pages/Login.jsx - Registration → API client: calls
frontend/src/pages/Register.jsx - Dashboard → API client: calls
frontend/src/pages/Dashboard.jsx - Write document → API client: submits
frontend/src/pages/WriteDoc.jsx - View documents → API client: searches
frontend/src/pages/ViewDoc.jsx - View documents → AI panel: renders
frontend/src/pages/ViewDoc.jsx - AI panel → API client: sends prompts
frontend/src/components/ui/AiAgentPanel.jsx - API client → HTTP API: HTTP requests
frontend/src/api.js - HTTP API → Authentication: authenticates
backend/main.py - HTTP API → User and document models: queries and writes
backend/main.py - HTTP API → Document schemas: validates documents
backend/main.py - HTTP API → Database: persists records
- HTTP API → Agent orchestration: invokes
backend/main.py - Agent orchestration → Session memory: loads history
backend/ai-agent/agent.py - Agent orchestration → Groq model service: invokes
backend/ai-agent/agent.py