How calumrob/lusk works
Lusk is an open-data observatory for Brittany. Visitors search for a territory, open its identity sheet, and explore its themes and indicators; they can also browse canonical indicator pages, maps, and source provenance. The Vue app loads and validates published payloads, then builds territory read models for rendering. A read-only API supplies bounded comparisons, while the repository also contains a distinct map-production subsystem. The README describes a broader data pipeline, but its main implementation is not present in this tree; links between these runtime areas are shown only where documented or evidenced.
Main entry points: index.ts Page router · TerritoireView.vue Territory sheet · network.py Mobility network adapter · usePayload.ts Payload state
Components 24
Observatory app
- App shell
app/src/App.vue - Page router
app/src/router/index.ts - Territory search
app/src/components/GlobalSearchBar.vue - Search logic
app/src/search/recherche.ts - Territory sheet
app/src/views/TerritoireView.vue - Indicator pages
app/src/views/IndicateurPage.vue - Map explorer
app/src/components/carte/MapExplorer.vue - Sources page
app/src/views/SourcesView.vue
Payload and territory data
- Payload state
app/src/payload/usePayload.ts - Payload loader
app/src/payload/loader.ts - Payload validation
app/src/payload/validate.ts - Territory read model
app/src/payload/territoryReadModel.ts - Scalar cohorts
app/src/payload/scalarCohort.ts - Map geometry state
app/src/geo/useGeometrie.ts
Read-only data API
- Territory API
api/main.py - Building comparisons
api/building_comparison.py - Observed collections
api/observed_collections.py
Map production
- Map production runner
pipeline/maps/production/runner.py - Mobility network adapter
pipeline/maps/production/network.py - Map ground rendering
pipeline/maps/production/map_ground.py - Inspection plates
pipeline/maps/production/inspection_plate.py - Mainland context
pipeline/maps/production/mainland_context.py - WebP encoding
pipeline/maps/production/webp_encoding.py
Other components
- Visitor
Connections 26
- Visitor → App shell: uses
README.md - App shell → Page router: renders routes
app/src/App.vue - Page router → Territory sheet: routes to
app/src/router/index.ts - Page router → Indicator pages: routes to
app/src/router/index.ts - Page router → Map explorer: routes to
app/src/router/index.ts - Page router → Sources page: routes to
app/src/router/index.ts - Territory search → Search logic: uses
app/src/components/GlobalSearchBar.vue - Visitor → Territory search: searches
README.md - Territory sheet → Payload state: acquires data
- Payload state → Payload loader: loads files
app/src/payload/usePayload.ts - Payload state → Payload validation: validates
app/src/payload/usePayload.ts - Payload loader → Payload validation: validates payload
app/src/payload/loader.ts - Territory sheet → Territory read model: uses model
app/src/views/TerritoireView.vue - Territory sheet → Scalar cohorts: loads cohorts
app/src/views/TerritoireView.vue - Map explorer → Map geometry state: uses geometry
- Visitor → Indicator pages: explores indicators
README.md - Visitor → Sources page: checks provenance
README.md - Territory API → Building comparisons: delegates to
api/main.py - Territory API → Observed collections: uses reads
api/main.py - Territory sheet → Territory API: requests comparisons
- Map production runner → WebP encoding: validates output
pipeline/maps/production/runner.py - Mobility network adapter → Map production runner: uses runner
pipeline/maps/production/network.py - Mobility network adapter → Map ground rendering: uses ground
pipeline/maps/production/network.py - Mobility network adapter → Inspection plates: uses plates
pipeline/maps/production/network.py - Inspection plates → Map ground rendering: uses ground
pipeline/maps/production/inspection_plate.py - Map production runner → Mainland context: context input