How isakibul15/parksverige works
ParkSverige is an early-stage Stockholm parking intelligence product: drivers search or browse nearby parking, inspect zone restrictions and prices, and use account, vehicle, favorite, and alert features. The web prototype is the clearest user-facing path; a NestJS API exposes parallel scaffold endpoints. Data is currently largely static prototype data, while workers simulate rule-source normalization and resolution, alongside a documented Databricks direction. Dashed links indicate plausible but unverified integrations; sampled excerpts do not establish production persistence or runtime wiring for several documented capabilities.
Main entry points: app.module.ts API application · index.ts Stockholm sample data · stockholm-rule-pipeline.ts Rule pipeline · stockholm.stub.ts API data adapter
Components 24
Driver experiences
- Mobile app
apps/mobile/app/index.tsx
Web experience
- Web app
apps/web/app/_components/prototype-shell.tsx - Zone map
apps/web/app/_components/zone-map.tsx - Web API routes
apps/web/app/api - API client
apps/web/app/_lib/api.ts
API services
- API application
services/api/src/app.module.ts - Authentication
services/api/src/modules/auth/auth.controller.ts - Parking endpoints
services/api/src/modules/parking/parking.controller.ts - Parking service
services/api/src/modules/parking/parking.service.ts - Vehicle endpoints
services/api/src/modules/vehicles/vehicles.controller.ts - Favorites endpoint
services/api/src/modules/favorites/favorites.controller.ts - Alert endpoint
services/api/src/modules/notifications/notifications.controller.ts - Health endpoint
services/api/src/modules/health/health.controller.ts
Parking data
- API data adapter
services/api/src/data/stockholm.stub.ts - Stockholm sample data
packages/prototype-data/src/index.ts - Parking rules
packages/prototype-data/src/stockholm-rules.ts - Tariff map overlays
packages/prototype-data/src/stockholm-map.ts - Shared contracts
packages/shared-types/src/index.ts - Postgres + PostGIS
Rule intelligence
- Rule pipeline
services/workers/src/stockholm-rule-pipeline.ts - Source parser
services/workers/src/stockholm-source-parser.ts - Source refresh
services/workers/src/stockholm-source-refresh.ts - Databricks workflow
data-platform/databricks/notebooks/stockholm_rule_pipeline.py
Other components
- Driver
Connections 30
- Driver → Web app: uses
- Web app → Zone map: renders
apps/web/app/_components/prototype-shell.tsx - Web app → Web API routes: fetches
apps/web/app/_components/prototype-shell.tsx - Web app → Stockholm sample data: reads sample data
apps/web/app/_components/prototype-shell.tsx - Web API routes → Stockholm sample data: serves sample data
apps/web/app/api/vehicles/route.ts - API client → Web API routes: requests
- Driver → Mobile app: uses
- API application → Authentication: registers
services/api/src/app.module.ts - API application → Parking endpoints: registers
services/api/src/app.module.ts - API application → Vehicle endpoints: registers
services/api/src/app.module.ts - API application → Favorites endpoint: registers
services/api/src/app.module.ts - API application → Alert endpoint: registers
services/api/src/app.module.ts - API application → Health endpoint: registers
services/api/src/app.module.ts - Parking endpoints → Parking service: delegates
services/api/src/modules/parking/parking.controller.ts - Parking service → API data adapter: reads parking data
services/api/src/modules/parking/parking.service.ts - Authentication → API data adapter: reads demo identity
services/api/src/modules/auth/auth.controller.ts - Vehicle endpoints → API data adapter: reads demo vehicles
services/api/src/modules/vehicles/vehicles.controller.ts - Favorites endpoint → API data adapter: reads favorites
services/api/src/modules/favorites/favorites.controller.ts - Alert endpoint → API data adapter: reads alerts
services/api/src/modules/notifications/notifications.controller.ts - API data adapter → Stockholm sample data: re-exports
services/api/src/data/stockholm.stub.ts - Stockholm sample data → Parking rules: uses rules
packages/prototype-data/src/index.ts - Stockholm sample data → Tariff map overlays: uses overlays
packages/prototype-data/src/index.ts - Stockholm sample data → Shared contracts: types data
packages/prototype-data/src/index.ts - Rule pipeline → Source parser: loads snapshots
services/workers/src/stockholm-rule-pipeline.ts - Rule pipeline → Stockholm sample data: resolves sample rules
services/workers/src/stockholm-rule-pipeline.ts - Rule pipeline → Shared contracts: types resolutions
services/workers/src/stockholm-rule-pipeline.ts - Source refresh → Rule pipeline: triggers pipeline
- Databricks workflow → Rule pipeline: parallels processing
- Rule pipeline → Postgres + PostGIS: publishes export
- API application → Postgres + PostGIS: planned serving