How astrotemporal/firepoint works
Firepoint is a mobile-first wildfire preparedness and evacuation web app for Glendale. Residents use the map to set a private fire mark, share their location or choose a starting point, and request a fire-aware shelter route or an escape route; a separate Ready, Set, Go guide supports preparation. The graph also includes the documented language and offline capabilities and the live hazard/context API branch. Some components are included based on the README and source index rather than inspected implementation; edges are limited to documented or indexed relationships.
Main entry points: map-screen.tsx Map Screen · route.ts Fire & Air Context API · route-planner.ts Route Planner · route-bar.tsx Route Controls
Components 30
Map & Evacuation
- Map Page
src/app/page.tsx - Map Screen
src/components/map-screen.tsx - Evacuation Map
src/components/evacuation-map.tsx - Route Controls
src/components/route-bar.tsx - Turn-by-turn Navigation
src/evacuation/navigation.ts - Private Fire Marks
src/domain/fire-marks.ts
Routing Engine
- Location Handling
src/evacuation/location.ts - Route Planner
src/evacuation/route-planner.ts - Shelter Routing
src/evacuation/routing.ts - Escape Routing
src/evacuation/escape.ts - Route Provider
src/evacuation/route-provider.ts - Glendale Shelter Data
src/evacuation/data/glendale.ts - Wildland Hazard Data
src/evacuation/data/wildland.ts
Guidance & Language
- Preparation Page
src/app/prepare/page.tsx - Wildfire Guide
src/components/wildfire-guide.tsx - Guide Content
src/domain/wildfire-guide.ts - Language Negotiation
src/i18n/locales.ts - Map Translations
src/i18n/map.ts
Live Information APIs
- Fire & Air Context API
src/app/api/v1/context/query/route.ts - Context Feed
src/domain/context-feed.ts - Place Query Validation
src/server/place-query.ts - Live Source Gate
src/server/live-query-gate.ts - CAL FIRE Adapter
src/server/calfire.ts - NIFC Adapter
src/server/nifc.ts - AirNow Adapter
src/server/airnow.ts - Hazards API
src/app/api/v1/hazards/query/route.ts - Notices API
src/app/api/v1/notices/query/route.ts
Offline Platform
- Service Worker Registration
src/lib/service-worker.ts - Offline Worker
public/sw.js
Other components
- Resident
Connections 34
- Resident → Map Page: opens map
README.md - Map Page → Map Screen: renders
src/app/page.tsx - Map Screen → Evacuation Map: renders
src/components/map-screen.tsx - Map Screen → Route Controls: renders
src/components/map-screen.tsx - Map Screen → Private Fire Marks: uses
src/components/map-screen.tsx - Map Screen → Location Handling: uses
src/components/map-screen.tsx - Map Screen → Route Planner: requests plans
src/components/map-screen.tsx - Map Screen → Glendale Shelter Data: loads
src/components/map-screen.tsx - Map Screen → Wildland Hazard Data: loads
src/components/map-screen.tsx - Route Controls → Route Planner: requests routes
src/components/route-bar.tsx - Route Controls → Location Handling: uses
src/components/route-bar.tsx - Route Controls → Map Translations: uses
src/components/route-bar.tsx - Route Planner → Shelter Routing: uses
src/evacuation/route-planner.ts - Route Planner → Escape Routing: uses
src/evacuation/route-planner.ts - Route Planner → Wildland Hazard Data: uses
src/evacuation/route-planner.ts - Route Planner → Route Provider: uses
- Map Screen → Turn-by-turn Navigation: supports
src/components/map-screen.tsx - Resident → Preparation Page: opens guide
README.md - Preparation Page → Wildfire Guide: renders
src/app/prepare/page.tsx - Preparation Page → Guide Content: loads
src/app/prepare/page.tsx - Preparation Page → Language Negotiation: gets language
src/app/prepare/page.tsx - Map Page → Language Negotiation: gets language
src/app/page.tsx - Fire & Air Context API → Place Query Validation: validates query
src/app/api/v1/context/query/route.ts - Fire & Air Context API → Live Source Gate: checks access
src/app/api/v1/context/query/route.ts - Fire & Air Context API → CAL FIRE Adapter: fetches incidents
src/app/api/v1/context/query/route.ts - Fire & Air Context API → NIFC Adapter: fetches perimeters
src/app/api/v1/context/query/route.ts - Fire & Air Context API → AirNow Adapter: fetches observations
src/app/api/v1/context/query/route.ts - Fire & Air Context API → Context Feed: builds feed
src/app/api/v1/context/query/route.ts - Hazards API → Place Query Validation: validates query
src/app/api/v1/hazards/query/route.ts - Hazards API → Live Source Gate: checks access
src/app/api/v1/hazards/query/route.ts - Notices API → Place Query Validation: validates query
src/app/api/v1/notices/query/route.ts - Notices API → Live Source Gate: checks access
src/app/api/v1/notices/query/route.ts - Resident → Service Worker Registration: uses offline app
README.md - Service Worker Registration → Offline Worker: registers
src/lib/service-worker.ts