Public Resource Map — workspaces, sources, and the Ward boundary

Public Resource Map — workspaces, sources, and the Ward boundary An architecture diagram generated by Archify. Browser · anonymous by default · Architecture component Browser anonymous by default Caddy · gandolh.ro :443 · One origin — sub-paths, no subdomains Caddy gandolh.ro :443 ui/ · React 19, Leaflet · One origin — sub-paths, no subdomains · TanStack Query ui/ React 19, Leaflet TanStack Query backend/ · Fastify 5 + Drizzle · One origin — sub-paths, no subdomains › prm's own state · guards are opt-in backend/ Fastify 5 + Drizzle guards are opt-in Ward · identity + grants · One origin — sub-paths, no subdomains · public signup: on Ward identity + grants public signup: on OpenStreetMap · ODbL — reuse permitted · Architecture component OpenStreetMap ODbL — reuse permitted SQLite · places, events, staging · One origin — sub-paths, no subdomains › prm's own state SQLite places, events, staging Public publishers · venue + municipal calendars · Architecture component Public publishers venue + municipal calendars HTTPS /prm /prm-api Zod-typed JSON resolve session · check grant Drizzle admin sync ingest → staging One origin — sub-paths, no subdomains prm's own state Legend Frontend Backend Database Cloud Security External

Three workspaces, one contract

  • • ui/ — React 19 SPA, Leaflet map, TanStack Query, Zustand for UI state
  • • backend/ — Fastify 5, SQLite via Drizzle, Zod validation
  • • shared/ — the Zod schemas both sides compile against

Public by default

  • • Ward is registered on the root instance but gates NOTHING
  • • The hook resolves a session if a cookie is present, else anonymous
  • • requireAuth and requireAdmin are opt-in, per route

Two sources, not equal

  • • OSM is ODbL and reuse-permitted — the clean anchor for pins
  • • Event publishers are API-first, scrape-last; never an aggregator
  • • Launch of any reuse-restricted source is blocked on permission