How jaykapoor7/pok-mon-go-dog- works
StrayPaw is a browser-based community animal-record and welfare-operations platform. People discover animals on the map and submit sightings; NGOs and municipalities work shared animal and case records, care programs, imports, surveys, and reporting. The graph highlights the report-to-record path and the spatial rollup layer that bounds public map data. README documentation supports the overall architecture and major capabilities; unsampled route-to-client wiring is not asserted.
Main entry points: page.tsx Partner console · supabase.ts Supabase database · route.ts Report endpoint · server.ts Spatial services
Components 19
Community product
- Animal map
src/app/map/page.tsx - Sighting report
src/app/report/page.tsx - Report endpoint
src/app/api/report/route.ts - Animal records
src/lib/data.ts
Welfare operations
- Partner console
src/app/partner/page.tsx - Case management
src/lib/cases.ts - Care programs
src/lib/feeding-actions.ts - Field surveys
src/lib/surveys.ts - Data imports
src/lib/master-import/pipeline.ts - Import enrichment
src/lib/master-import/enrichment.ts - Partner API
src/app/api/partner/import/route.ts
Spatial intelligence
- Public datasets
src/lib/platform/datasets.ts - Spatial services
src/lib/spatial/server.ts - Spatial rollups
src/lib/spatial/build.ts - Spatial engine
src/lib/spatial/engine.ts
Application platform
- Browser app
src/app/layout.tsx - Supabase database
src/lib/supabase.ts - Identity and roles
src/components/auth/AuthProvider.tsx
Other components
- Public visitors
Connections 21
- Public visitors → Browser app: uses
README.md - Browser app → Supabase database: requests data
README.md - Public visitors → Animal map: explores
README.md - Public visitors → Sighting report: submits sighting
README.md - Sighting report → Report endpoint: posts report
- Report endpoint → Supabase database: records sighting
src/app/api/report/route.ts - Report endpoint → Public visitors: notifies
src/app/api/report/route.ts - Browser app → Animal records: loads records
- Public visitors → Partner console: operates programs
README.md - Partner console → Case management: manages cases
- Partner console → Care programs: records care
- Partner console → Field surveys: collects surveys
- Partner console → Partner API: imports data
- Partner API → Supabase database: persists imports
src/app/api/partner/import/route.ts - Data imports → Import enrichment: enriches records
- Public visitors → Public datasets: views outcomes
README.md - Animal map → Spatial services: requests map data
- Spatial services → Spatial rollups: builds rollups
src/lib/spatial/server.ts - Spatial rollups → Spatial engine: computes measures
src/lib/spatial/engine.ts - Spatial services → Supabase database: reads spatial data
src/lib/spatial/server.ts - Identity and roles → Supabase database: authenticates
src/components/auth/AuthProvider.tsx