How limzijing/navus works
NavUS is a campus-navigation web app with an Express backend for canonical and live transit data. The principal workflow is selecting trip endpoints, finding walking-and-bus journey options using Valhalla, and displaying the options on a map. Other user-facing branches explore venues and shuttle routes and inspect nearby stops and arrivals. The graph preserves those documented capabilities; some frontend feature wiring and unsampled backend routes are represented only where documented, so those links are dashed and unverified.
Main entry points: app-services.ts App services · app.tsx App shell · find-paths.ts Path finding · runtime.ts Live data runtime
Components 24
Frontend experience
- Browser entry
frontend/src/main.tsx - App shell
frontend/src/app/app.tsx - Venue exploration
frontend/src/features/explore/explore-content.tsx - Venue search
frontend/src/domain/venue/search.ts - App services
frontend/src/app/composition/app-services.ts
Journey and map
- Trip planning
frontend/src/features/plan/plan-content.tsx - Path finding
frontend/src/pathfinding/find-paths.ts - Candidate search
frontend/src/pathfinding/search/search-path-candidates.ts - Walking routes
frontend/src/pathfinding/walking/valhalla-walking-client.ts - Map session
frontend/src/infrastructure/map/session.ts
Transit services
- Nearby stops
frontend/src/features/stops/stops-content.tsx - Shuttle arrivals client
frontend/src/infrastructure/shuttle-arrivals/client.ts - Service hours
frontend/src/domain/transit/service-hours.ts - Public bus client
frontend/src/infrastructure/lta-datamall/client.ts
Backend live data
- HTTP API
backend/src/app.ts - Live data runtime
backend/src/live-data/runtime.ts - NUS provider client
backend/src/live-data/nus-client.ts - LTA arrivals
backend/src/live-data/lta/server.ts - Canonical data
backend/src/data.ts
Shared domain data
- Transit model
shared/src/transit/model.ts - Shuttle timing data
shared/src/transit/timing.ts - Building catalogue
shared/src/venue/buildings.ts - Walking stop graph
shared/src/routing/walking-stop-graph.ts
Other components
- Campus visitor
Connections 26
- Campus visitor → Browser entry: opens app
README.md - Browser entry → App shell: renders
frontend/src/main.tsx - App shell → Venue exploration: offers exploration
- Venue exploration → Venue search: searches venues
- App shell → Trip planning: offers planning
README.md - Trip planning → Path finding: requests journeys
- Path finding → Candidate search: searches candidates
- Path finding → Walking routes: routes walking
frontend/src/app/composition/app-services.ts - App services → Path finding: creates service
frontend/src/app/composition/app-services.ts - App services → Walking routes: creates engine
frontend/src/app/composition/app-services.ts - App shell → Map session: uses map
frontend/src/app/app.tsx - Map session → Walking stop graph: loads graph
frontend/src/infrastructure/map/session.ts - App shell → Nearby stops: offers stop details
README.md - App services → Shuttle arrivals client: creates client
frontend/src/app/composition/app-services.ts - App services → Public bus client: creates client
frontend/src/app/composition/app-services.ts - App services → Service hours: creates client
frontend/src/app/composition/app-services.ts - Shuttle arrivals client → Service hours: evaluates windows
- HTTP API → Live data runtime: dispatches requests
backend/src/app.ts - Live data runtime → Canonical data: loads canonical data
backend/src/live-data/runtime.ts - Live data runtime → NUS provider client: requests NUS data
backend/src/live-data/runtime.ts - Live data runtime → LTA arrivals: loads bus arrivals
backend/src/live-data/runtime.ts - LTA arrivals → Transit model: uses transit types
- Canonical data → Transit model: validates network
- Canonical data → Building catalogue: loads venues
- Canonical data → Shuttle timing data: loads timing data
- Path finding → Transit model: uses transit data