Protomaps: Self-hosting map tiles has gotten cheap and easy
- ID
- 46904
- Status
- summarized
- Published
- 16 Nov 2026, 3:26 AM
- Fetched
- 16 Nov 2026, 2:09 PM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://bruceroettgers.eu/blog/protomaps/
- Source URL
- https://hnrss.org/best
Summary
- Score
- 7.5
- Created
- 16 Nov 2026, 2:10 PM
- Tags
- Audience
- developersvibe_coderssaas_founders
What happened
Bruce Röttgers walks through self-hosting Protomaps PMTiles, a single-file map tile format served over HTTP Range requests, and deploying it to Bunny.net's CDN. The concrete numbers: the full 139GB world map with 5x continental replication costs roughly $5/month in storage at $0.01–$0.055/GB/month, bandwidth is $0.01/GB to Europe/North America ($0.005/GB on the smaller Volume network), and a typical Europe zoom session moves about 5MB — working out to roughly $0.05 per 1k map loads versus Mapbox's $5 per 1k loads after the free tier. Gotchas he hit: Cloudflare needs an edge function to translate x/y/z paths into Range requests, and uploading via Bunny's HTTP API timed out after 15 minutes, so he used an S3-compatible storage zone with rclone instead.
Why it matters
If you're building anything with a map — a directory, a delivery tracker, a property listing — the pricing model flips from per-map-load to per-byte, so a viral spike costs cents instead of thousands. Before committing, check Bunny's APAC bandwidth and edge-storage rates and latency for Malaysian users, because the article only quotes $0.01/GB for Europe and North America; the cost case for a mostly-Malaysian audience depends on numbers this post doesn't give you.
Discussion angle
Run the actual math for a Malaysian-audience product: pull Bunny's APAC bandwidth pricing and compare a month of PMTiles traffic against Mapbox's $5/1k loads at your expected session count — and ask who in the group has served map tiles to Malaysian mobile users and what latency looked like.