Case Study - An interactive geospatial platform with per-PR preview deploys
A MapLibre GL mapping application on Cloudflare's edge, where every pull request gets its own fully provisioned preview environment — database and storage included.
- Project
- spectralMap
- Year
- Service
- Geospatial engineering, cloud infrastructure
Overview
spectralMap is our geospatial platform, live at map.spectralgo.com. It pairs an interactive MapLibre GL front-end with an edge back-end on Cloudflare — D1 for relational data, R2 for assets — so the map stays fast wherever the user is.
The project doubles as our infrastructure showcase: every pull request gets its own fully provisioned preview environment — database, storage and workers included — spun up automatically and torn down when the branch merges. Reviewers click a link and interact with the real thing, not a screenshot.
What we did
- MapLibre GL interactive mapping
- TanStack Start (SSR)
- Cloudflare D1 + R2
- Per-PR preview environments
- Hono + oRPC API
- Astro Starlight docs site
Preview environments changed how we review: every branch is a living deployment with its own database, not a diff you squint at.
Engineering notes
The CI/CD pipeline provisions Cloudflare resources declaratively per stage, which is the same pattern we bring to client work: infrastructure as code from the first commit, so shipping to production is a non-event.