# Self-hosting a world map costs about $5 a month with Protomaps

Original title: Protomaps: Self-hosting map tiles has gotten cheap and easy

> Hacker News story 50509837 · language: en · submitted 2026-11-15
> Web version: https://zeli.app/story/50509837
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 453 · by [bcye](<https://news.ycombinator.com/user?id=bcye>) · 💬 82
[original](<https://bruceroettgers.eu/blog/protomaps/>) · [HN discussion](<https://news.ycombinator.com/item?id=50509837>)

## Summary

Bruce Röttgers walks through deploying Protomaps' PMTiles format on Bunny.net's CDN. The 139GB world map file, served via HTTP Range requests, costs roughly $5/month in storage with 5x replication, and bandwidth runs about $0.00005 per map load — potentially 100x cheaper than Mapbox's $5 per 1k loads. He covers uploading with rclone, configuring CORS and caching, rate-limiting to deter bulk downloads, and embedding the tiles with MapLibre GL.

## Key quote

> At $0.05/1k map loads that could be 100x cheaper than Mapbox.

## HN discussion (82 comments)

### [boramalper](<https://news.ycombinator.com/item?id=50512020>)

> OpenFreeMap is a similar project:
>
> https://openfreemap.org/
>
> \> What is OpenFreeMap?
>
> \> OpenFreeMap lets you display custom maps on your website and apps for free.
>
> \> Using our public instance is completely free: there are no limits on the number of map views or requests. There’s no registration, no user database, no API keys, and no cookies. We aim to cover the running costs of our public instance through donations.
>
> \> What is the tech stack?
>
> \> There is no tile server running; only nginx serving a Btrfs image with 300 million hard-linked files. This was my idea; I haven’t read about anyone else doing this in production, but it works really well.

### [neomantra](<https://news.ycombinator.com/item?id=50511304>)

> We're doing something like this behind Cloudflare R2, same concept of owning the map infra (for privacy and access-control) and reducing load on public infrastructure.
>
> If you are into this stuff, you can view PMTiles from the CLI with "gloss", or try to drag-and-drop on its web interface [1].   It seems large tiles (>128M) and some raster formats are failing; plus it would be nice to load from URL there.  Will fix that...
>
> (AI warning).  ntmaps [2] is a Golang library that lets you use different tile providers, deployable in terminal or browser.  ntplaygrounds [3] uses that and nt3d and ntactor to make a city simulation.  Data is pulled from OpenStreetMap in those.
>
> [1] https://nimbleterminal.com/gloss/app.html
>
> [2] https://nimbleterminal.com/ntmaps
>
> [3] https://nimbleterminal.com/ntplaygrounds

### [motoroco](<https://news.ycombinator.com/item?id=50511852>)

> yeah, basemaps are small enough to store and host cost effectively, but high res satellite imagery gets big and expensive fast as you go up in zoom level. I built my own satellite mosaic of North America for my app so I can offer users offline access to the tiles and had to stop at z17 because of projected storage requirements. high res global coverage can get you into the hundreds of TB range which is no longer in the "stick it on r2 and serve it with a worker" or "download and upload the entire dataset sequentially over your residential internet" territory
>
> the fun/hard parts of the project weren't really scale dependent, although downloading source imagery and building the tile pyramids did take literally weeks to run. actually, the hardest part was getting demosaicing right, e.g. making the quilt seamless. filtering out cloudy and smokey/hazy tiles while picking alternatives from the same time of year so groundcover & crops are in a consistent growth stage so you don't end up with checkerboard patterns or cloud silhouettes randomly across your map. and there were other problems that came up more or less just because of how & when the satellite took the images that require exposure correction and more filtering
>
> I also have a pelias index with 170M records for search and self-host valhalla for routing. the open source mapping ecosystem has really impressed me the more I learn with each project

### [thatslast](<https://news.ycombinator.com/item?id=50513203>)

> I'm making a Wikipedia walking game where each card comes in a sealed pack printed with the real streets around where you found it, rendered live.
>
> With Mapbox or Google Maps I wouldn't even have considered building this game. Protomaps made it a no-brainer
>
> Thanks to Brandon and the OSM contributors. This is what made the idea affordable for a side project.

### [maelito](<https://news.ycombinator.com/item?id=50511863>)

> For Cartes.app we used to pay Maptiler. While great, recommanded to start, without client revenue it was impossible to scale, we've hit 150 €/month bills way too fast.
>
> Hence Protomaps. Hosting costs almost nothing.
>
> The main problem though is that once you host your tiles, why not put what you want inside ?
>
> Tune Tilemaker's processing.lua to your envy. Spend hours designing maps and building a Typescrpt dynamic Maplibre style.

---

## Cite

- Page: https://zeli.app/story/50509837
- Date: 2026-11-15
- Source: bruceroettgers.eu (https://bruceroettgers.eu/blog/protomaps/)
- Hacker News: https://news.ycombinator.com/item?id=50509837

## Other languages

- zh: https://zeli.app/zh/story/50509837 · markdown: https://zeli.app/zh/story/50509837.md
- ja: https://zeli.app/ja/story/50509837 · markdown: https://zeli.app/ja/story/50509837.md
- ko: https://zeli.app/ko/story/50509837 · markdown: https://zeli.app/ko/story/50509837.md
- de: https://zeli.app/de/story/50509837 · markdown: https://zeli.app/de/story/50509837.md
- es: https://zeli.app/es/story/50509837 · markdown: https://zeli.app/es/story/50509837.md
- ru: https://zeli.app/ru/story/50509837 · markdown: https://zeli.app/ru/story/50509837.md
