Now available on GitHub Releases

Serve Vector TilesAt Lightning Speed

High-performance tile server built in Rust. Serve PMTiles, MBTiles, PostGIS, and Cloud Optimized GeoTIFF with native MapLibre rendering for static images.

brew install vinayakkulkarni/tap/tileserver-rs

Features

Everything You Need

A complete solution for serving vector tiles in production.

Blazing Fast

Built in Rust for maximum performance. Serve tiles with sub-millisecond latency.

PMTiles & MBTiles

Native support for modern PMTiles and classic MBTiles tile archives with MVT and MLT format support.

PostgreSQL / PostGIS

Serve vector tiles directly from PostGIS tables with optimized spatial queries.

Cloud Optimized GeoTIFF

Serve raster tiles from COG files with on-the-fly reprojection and colormap support.

PostgreSQL Out-DB Rasters

Dynamic VRT/COG tile serving via PostGIS functions with query-based filtering.

Vector & Raster

Serve vector tiles directly or render them to raster on-the-fly.

Static Images

Generate static map images like Mapbox Static API with native MapLibre rendering.

Self-Hosted

Run on your own infrastructure. No vendor lock-in, no API keys required.

Zero-Config Startup

Point at a directory or file and start serving. Auto-detects PMTiles, MBTiles, styles, and fonts.

Hot-Reload

Reload configuration without downtime via SIGHUP or admin API. Zero-request-drop with ArcSwap.

Configuration

Simple Setup

Get started with a simple TOML configuration file. Define your tile sources, styles, and server settings in one place.

  • Multiple tile sources (PMTiles, MBTiles, PostGIS, COG)
  • Custom MapLibre GL styles
  • In-memory tile caching with TTL
  • Configurable CORS and connection pooling
config.toml
# Tile sources
[[sources]]
id = "openmaptiles"
type = "pmtiles"
path = "/data/tiles.pmtiles"

# PostgreSQL / PostGIS
[postgres]
connection_string = "postgresql://user:pass@localhost/db"

[[postgres.tables]]
id = "buildings"
table = "buildings"
geometry_column = "geom"

API Reference

RESTful API

Simple, standards-compliant API for all your tile serving needs.

Vector Tiles

GET
/data/{source}/{z}/{x}/{y}.pbf
GET
/data/{source}/{z}/{x}/{y}.mlt
GET
/data/{source}.json

COG/Raster Tiles

GET
/data/{cog}/{z}/{x}/{y}.png
GET
/data/{cog}/{z}/{x}/{y}.webp

PostgreSQL Out-DB Rasters

GET
/data/{source}/{z}/{x}/{y}.png?satellite=...

Style Rendering

GET
/styles/{style}/{z}/{x}/{y}.png
GET
/styles/{style}/{z}/{x}/{y}@2x.png

Static Images

GET
/styles/{style}/static/{lon},{lat},{zoom}/{w}x{h}.png

Get Started

Ready to Deploy?

Deploy your own tile server in minutes with our comprehensive documentation.