How roshini-28/todo-app works
This is a full-stack task and project-management app with authentication and an optional AI assistant. The principal workflow runs from the dashboard through frontend API calls to FastAPI routes, business services, and MongoDB, with results returned to the UI. The README documents task filtering, search, sorting, page organization, and AI suggestions. The tree and excerpts show both a traditional AI suggestion route and a separate agent-based AI stack; where their wiring is not explicit, the graph avoids asserting it.
Main entry points: page.js Dashboard · main.py FastAPI entry · auth.py Auth routes · auth_middleware.py Auth guard
Components 31
Frontend experience
- Dashboard
frontend/app/page.js - Task controls
frontend/components/TodoList.js - Task item
frontend/components/TodoItem.js - Project navigation
frontend/components/Sidebar.js - Task forms
frontend/components/AddTaskModal.js - Edit task
frontend/components/EditTaskModal.js - Search and filters
frontend/components/SearchBar.js - AI chat
frontend/components/AIChat.js - Auth client
frontend/services/auth.js - API client
frontend/services/api.js
Backend API and domain
- FastAPI entry
backend/main.py - Task routes
backend/routes/tasks.py - Page routes
backend/routes/pages.py - Auth routes
backend/routes/auth.py - Task operations
backend/services/task_service.py - Page operations
backend/services/page_service.py
Identity and persistence
- Token service
backend/services/auth_service.py - Auth guard
backend/middleware/auth_middleware.py - User accounts
backend/services/user_service.py - MongoDB
backend/database/mongodb.py
AI assistance
- AI endpoints
backend/routes/ai.py - Agent chat route
backend/app/api/routes/ai.py - Suggestion service
backend/services/ai_service.py - Todo agent
backend/app/agents/todo_agent.py - Todo tools
backend/app/tools/todo_tools.py - LLM client
backend/app/ai/litellm_client.py - Provider configuration
backend/app/config/settings.py - Provider adapters
backend/app/ai/providers.py - Chat generation
backend/app/services/ai_service.py
Other components
- User
- LLM providers
Connections 38
- User → Dashboard: uses
README.md - Dashboard → Task controls: renders
frontend/app/page.js - Dashboard → Project navigation: renders
frontend/app/page.js - Dashboard → Task forms: opens
frontend/app/page.js - Dashboard → Edit task: opens
frontend/app/page.js - Dashboard → Search and filters: renders
frontend/app/page.js - Task controls → Task item: renders
frontend/components/TodoList.js - Dashboard → Auth client: checks session
frontend/app/page.js - Dashboard → API client: loads and updates
frontend/app/page.js - Dashboard → AI chat: renders
frontend/app/page.js - Auth client → Auth routes: sends auth requests
README.md - API client → FastAPI entry: sends REST requests
README.md - FastAPI entry → Task routes: registers
backend/main.py - FastAPI entry → Page routes: registers
backend/main.py - FastAPI entry → Auth routes: registers
backend/main.py - FastAPI entry → AI endpoints: registers
backend/main.py - FastAPI entry → Agent chat route: registers
backend/main.py - Task routes → Task operations: calls
backend/routes/tasks.py - Page routes → Page operations: calls
backend/routes/pages.py - Auth routes → User accounts: calls
backend/routes/auth.py - Auth routes → Token service: creates tokens
backend/routes/auth.py - Task routes → Auth guard: requires user
backend/routes/tasks.py - Page routes → Auth guard: requires user
backend/routes/pages.py - Auth guard → Token service: validates token
backend/middleware/auth_middleware.py - Auth guard → User accounts: loads user
backend/middleware/auth_middleware.py - Task operations → MongoDB: reads and writes
backend/services/task_service.py - Page operations → MongoDB: reads and writes
backend/services/page_service.py - User accounts → MongoDB: reads and writes
backend/services/user_service.py - AI endpoints → Suggestion service: calls
backend/routes/ai.py - Agent chat route → Chat generation: calls
backend/app/api/routes/ai.py - Todo agent → Todo tools: uses tools
backend/app/agents/todo_agent.py - Todo agent → LLM client: generates with
backend/app/agents/todo_agent.py - Todo tools → Task operations: uses task operations
backend/app/tools/todo_tools.py - Todo tools → Page operations: uses page operations
backend/app/tools/todo_tools.py - LLM client → Provider adapters: selects provider
backend/app/ai/litellm_client.py - Provider adapters → Provider configuration: reads settings
backend/app/ai/providers.py - Chat generation → Provider configuration: reads settings
backend/app/services/ai_service.py - Chat generation → LLM providers: requests completion
backend/app/services/ai_service.py