How kotombo123/alignroute works
AlignRoute coordinates group trip planning: an organizer creates a session, others join, an AI proposes attractions, participants vote, and the group receives an itinerary. The excerpts show session creation, exploration, voting-related updates, persistence, and real-time signaling; the results UI and some endpoint behavior are present in the tree but their wiring is not fully shown. Dashed edges mark frontend-to-backend or itinerary connections that cannot be verified from the supplied excerpts.
Main entry points: app.js Screen orchestration · ExplorationEndpoints.cs Exploration operations · api.js HTTP API client · voting.js Swipe voting
Components 17
Planning interface
- Screen orchestration
frontend/js/app.js - HTTP API client
frontend/js/api.js - Realtime client
frontend/js/signalr-client.js - Swipe voting
frontend/js/voting.js - Swipe gestures
frontend/js/swipe.js - Attraction map
frontend/js/map.js - Plan results
frontend/js/results.js - Translations
frontend/js/i18n.js
Session backend
- Session operations
backend/AlignRoute.Api/Endpoints/SessionEndpoints.cs - Exploration operations
backend/AlignRoute.Api/Endpoints/ExplorationEndpoints.cs - Session hub
backend/AlignRoute.Api/Hubs/SessionHub.cs - SQLite data context
backend/AlignRoute.Api/Data/AppDbContext.cs - Session domain model
backend/AlignRoute.Api/Models/Entities.cs
Attraction exploration
- Attraction generator
backend/AlignRoute.Api/Services/ExplorerAgent.cs
Other components
- Trip participants
- PSNC language model
- OpenStreetMap
Connections 17
- Trip participants → Screen orchestration: use
- Screen orchestration → HTTP API client: creates sessions
frontend/js/app.js - Screen orchestration → HTTP API client: starts exploration
frontend/js/app.js - Screen orchestration → Realtime client: connects
frontend/js/app.js - Screen orchestration → Swipe voting: opens voting
- Swipe voting → Swipe gestures: initializes gestures
frontend/js/voting.js - Swipe voting → OpenStreetMap: embeds map
frontend/js/voting.js - HTTP API client → Session operations: sends requests
- HTTP API client → Exploration operations: requests attractions
- Screen orchestration → Plan results: shows results
- Session operations → SQLite data context: reads and writes
backend/AlignRoute.Api/Endpoints/SessionEndpoints.cs - Session operations → Session hub: broadcasts updates
backend/AlignRoute.Api/Endpoints/SessionEndpoints.cs - Exploration operations → SQLite data context: reads and writes
backend/AlignRoute.Api/Endpoints/ExplorationEndpoints.cs - Exploration operations → Attraction generator: generates attractions
backend/AlignRoute.Api/Endpoints/ExplorationEndpoints.cs - Exploration operations → Session hub: signals completion
backend/AlignRoute.Api/Endpoints/ExplorationEndpoints.cs - Attraction generator → PSNC language model: requests completions
backend/AlignRoute.Api/Services/ExplorerAgent.cs - Session hub → Realtime client: sends session events