How jingxiang-17/lumawalk works
LumaWalk combines a walking-safety backend with a geospatial data pipeline and a routing-service package. In the evidenced safety workflow, a client starts a route session; the buddy API projects route geometry, stores session state in memory, and evaluates telemetry pings for deviation or inactivity before dispatching a local alert. The pipeline’s scripts and shared configuration are present, but their broader data handoffs are not established here. Routing-service internals and the Flutter application’s Dart product logic are not represented by the supplied excerpts, so their connections remain unspecified.
Main entry points: router.py Buddy sessions · config.py Pipeline settings · main.py FastAPI app · 01_fetch_osm.py OSM network fetch
Components 11
Buddy safety API
- FastAPI app
backend/main.py - Buddy sessions
backend/buddy_service/router.py - Request schemas
backend/buddy_service/schemas.py - Spatial calculations
backend/buddy_service/spatial.py - Emergency dispatch
backend/buddy_service/router.py
Route service
- Route planning API
backend/routing_service
Geospatial pipeline
- OSM network fetch
data_pipeline/scripts/01_fetch_osm.py - Lighting patch
data_pipeline/scripts/02_patch_lit.py - Haven buffers
data_pipeline/scripts/03_buffers.py - Pipeline settings
data_pipeline/scripts/config.py
Other components
- Walking user
Connections 8
- Walking user → FastAPI app: calls API
backend/main.py - FastAPI app → Buddy sessions: mounts router
backend/main.py - Buddy sessions → Request schemas: validates requests
backend/buddy_service/router.py - Buddy sessions → Spatial calculations: calculates geometry
backend/buddy_service/router.py - Buddy sessions → Emergency dispatch: queues alert
backend/buddy_service/router.py - OSM network fetch → Pipeline settings: imports settings
data_pipeline/scripts/01_fetch_osm.py - Lighting patch → Pipeline settings: imports settings
data_pipeline/scripts/02_patch_lit.py - Haven buffers → Pipeline settings: imports settings
data_pipeline/scripts/03_buffers.py