Skip to content
This repository was archived by the owner on Aug 8, 2026. It is now read-only.

Repository files navigation

Phoenix Missing Persons Data Backend (historical)

This service is retired. Active development has moved to the phx_data_frontend monorepo, which now contains both the public application and the SQL data pipeline.

The original Express service performed multiple overlapping PostgreSQL aggregations for every page visit even though the underlying dataset was a fixed snapshot. This made the user experience dependent on a hosting cold start and ten concurrent database queries without providing fresher data.

The replacement architecture keeps SQL first-class while moving it out of the visitor request path:

  • packages/data/sql contains the normalized materialized view and analytical queries.
  • packages/data/scripts/export-snapshot.mjs executes those queries and validates the generated public data contract.
  • apps/web prerenders the complete report and a static JSON API with Next.js.
  • The checked-in snapshot makes deployments reproducible and independent of a database that cannot receive newer source data.

The Express implementation remains here for historical reference. It should not be deployed as part of the current project.

See the phx_data_frontend overhaul pull request for the migration, verification results, and deployment notes.

About

A backend to serve some data published by the Phoenix government. Data source: https://www.phoenixopendata.com/dataset/missing-persons

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages