How letopiaplatform/letopiaplatform works
Letopia is a .NET backend for a learning and collaboration platform. Users access its API to manage accounts, communities, posts and projects; they can also use search and an AI roadmap assistant. API controllers invoke domain services, while infrastructure supplies persistence, identity and external-service implementations. The README describes the clean-architecture layers, and the source index confirms several controller and agent dependencies. Many feature implementations were not excerpted, so those capabilities are represented at subsystem level without asserting unverified call paths.
Main entry points: ApplicationDbContext.cs Application database · RoadmapAgentService.cs Roadmap agent · Program.cs HTTP API · AuthService.cs Authentication
Components 17
API layer
- HTTP API
src/LetopiaPlatform.API/Program.cs - API routes
src/LetopiaPlatform.API/AppMetaData/Router.cs - Controller responses
src/LetopiaPlatform.API/Controllers/BaseController.cs
Platform features
- Authentication
src/LetopiaPlatform.Infrastructure/Identity/AuthService.cs - Communities
src/LetopiaPlatform.API/Controllers/CommunitiesController.cs - Community service contract
src/LetopiaPlatform.Core/Interfaces/ICommunityService.cs - Posts and comments
src/LetopiaPlatform.API/Controllers/PostsController.cs - Projects and milestones
src/LetopiaPlatform.API/Controllers/ProjectController.cs - Platform search
src/LetopiaPlatform.Infrastructure/Services/SearchService.cs
Roadmap assistant
- Roadmap endpoints
src/LetopiaPlatform.API/Controllers/RoadmapsController.cs - Agent endpoints
src/LetopiaPlatform.API/Controllers/AgentController.cs - Roadmap agent
src/LetopiaPlatform.Agent/Services/RoadmapAgentService.cs - Web search
src/LetopiaPlatform.Agent/Services/TavilySearchService.cs
Infrastructure
- Application database
src/LetopiaPlatform.Infrastructure/Data/ApplicationDbContext.cs - Email delivery
src/LetopiaPlatform.Infrastructure/Services/Email/SmtpEmailService.cs - File storage
src/LetopiaPlatform.Infrastructure/Services/LocalFileStorageService.cs
Other components
- Platform user
Connections 13
- Platform user → HTTP API: sends requests
- HTTP API → API routes: maps controllers
src/LetopiaPlatform.API/Program.cs - Communities → Community service contract: calls
src/LetopiaPlatform.API/Controllers/CommunitiesController.cs - HTTP API → Controller responses: hosts controllers
- Agent endpoints → Roadmap agent: invokes
- Roadmap endpoints → Roadmap agent: uses
- Roadmap agent → Web search: invokes tool
src/LetopiaPlatform.Agent/Services/RoadmapAgentService.cs - Roadmap agent → Application database: persists conversations
- Authentication → Application database: uses context
src/LetopiaPlatform.Infrastructure/Identity/AuthService.cs - Authentication → Email delivery: queues messages
src/LetopiaPlatform.Infrastructure/Identity/AuthService.cs - Posts and comments → Application database: manages content
- Projects and milestones → Application database: manages projects
- Platform search → Application database: searches platform data