Host your own OpenStreetMap Map Tiles

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • mbtiles-php

    PHP backend for reading tiles from mbtiles databases

  • You can host .mbtiles files with PHP very easily. I wrote a tiny piece of code 9 years ago that I used for a high traffic map server and it worked just fine. https://github.com/infostreams/mbtiles-php

    I'm sure there are newer solutions out there, which might have more features and are actually maintained. But this did (and still does) the job.

  • operations

    OSMF Operations Working Group issue tracking

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • PMTiles

    Cloud-optimized + compressed single-file tile archives for vector and raster maps

  • For the next revision of the JS decoder I'm including `fflate` as a dependency so clients can decompress gzipped tile data using JavaScript.

    https://github.com/protomaps/PMTiles/blob/master/js/package....

  • mod_mbtiles

    Serve tiles with Apache directly from an .mbtiles file

  • Here's a little bit of code I wrote that lets you host from a normal webserver, where that "normal webserver" is Apache: https://github.com/systemed/mod_mbtiles

  • headway

    Discontinued Self-hostable maps stack, powered by OpenStreetMap.

  • Related concept (recently submitted to HN) https://github.com/headwaymaps/headway

  • eyros

    interval database

  • There is a project called Peermaps that is building a full P2P stack for OSM-based maps:

    They convert Planet OSM and Natural Earth OSM dumps into the storage format used by their geospatial DB [1] and then distribute them using P2P file storage tools like IPFS [3] or hyperdrive [4].

    Because those storage tools make use of content addressing [5] and clever chunking [6], you can download only changes to the (converted) OSM dump.

    Because those tools are inherently P2P-focused and come with pluggable transports, the data representing the changes in the (converted) OSM dump don't have to be sent via the internet. For example, Mapeo [7] allows syncing "local" changes to OSM via USB sticks [8].

    [1] https://github.com/peermaps/eyros

  • data

    latest p2p and http addresses for peermaps datasets (by peermaps)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • multihash-serialise

    Haskell libraries for interacting with IPFS (by monadic-xyz)

  • planetiler

    Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast

  • Few things are easier! This is a piece of cake with https://github.com/onthegomap/planetiler#to-build-the-map

  • kvtiles

    Self hosted maps, PMTiles, MBTiles key value storage and server

  • Another option I've used, self-hosts vector tiles from an MBTiles database: https://github.com/akhenakh/kvtiles

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts