Introducing a new way to review your PRs.

Read the announcement

maplibre / martin

Blazing fast and lightweight PostGIS, MBtiles and PMtiles tile server, tile generation, and mbtiles tooling.

View on GitHub

22 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Martin knowledge base

Martin is a Rust workspace for serving and generating geospatial tiles. Its main components are the Martin server, shared tile abstractions, tile-generation tools, MBTiles and COG libraries, and the Martin web dashboard.

Critical runtime state lives in configured source catalogs, caches, connection pools, and reloadable server resources. Persistent tile/archive state is held in MBTiles, PMTiles, PostgreSQL, and raster/object-store inputs.

flowchart TD
  Config[Configuration files and CLI] --> Server[Martin server]
  Server --> Catalog[Tile source manager and catalog]
  Server --> APIs[HTTP, OGC API, styles, sprites, fonts]
  APIs --> Tiles[Tile request pipeline]
  Catalog --> Tiles
  Tiles --> Core[Martin Core tile abstractions]
  Core --> Postgres[PostgreSQL sources]
  Core --> Files[MBTiles, PMTiles, GeoJSON, DuckDB]
  Core --> Raster[COG and raster processing]
  Server --> Resources[Style resources and render pool]
  Tilegen[Tile generation] --> Archives[MBTiles and PMTiles archives]
  Dashboard[Martin web dashboard] --> APIs

Glossary

  • Tile source manager — server-owned registry that exposes configured tile sources through the catalog.
  • Auto-publish — discovery/configuration behavior that exposes eligible source objects without individually declaring each one.
  • MLT — MapLibre Tile encoding supported alongside vector-tile responses and processing paths.
  • Tilegen — the archive-generation subsystem that transforms source data through plans and output sinks.
  • Render pool — scheduling pool used to render server-managed map styles.

Invariants

  • Source discovery and runtime source lifecycle must remain coordinated through crates/martin/src/config/file/main/** and crates/…/tile_source_manager.rs.
  • Public HTTP routing must preserve alignment with handlers under crates/martin/src/srv/**.
  • Tile implementations must conform to the shared abstractions under crates/martin-core/src/tiles/{source,tile,catalog,cache}.rs.
  • MBTiles schema and access behavior must remain compatible with initialization SQL under crates/mbtiles/sql/**.
  • Dashboard API usage must remain compatible with server endpoints through crates/martin-ui/src/lib/{api,martin-client}.ts.

Routing table