selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Tile38 logo

Self-host Tile38

1.38.0

In-memory geospatial database with realtime geofencing

ReleaseOpen SourceMIT
docker run -p 9851:9851 tile38/tile38
Updated5 months ago
LanguageGo
Setup difficultyEasy
Stars
9 755
Port
9851 (Main Tile38 server endpoint (RESP, HTTP, WebSockets, telnet))
Docker
tile38/tile38
Tile38 screenshot 1Tile38 screenshot 2Tile38 screenshot 3Tile38 screenshot 4Tile38 screenshot 5

What is Tile38?

Tile38 is an MIT-licensed database server for location data: it keeps objects in memory, indexes them spatially, and reacts to movement in realtime. Stored shapes include lat/lon points, bounding boxes, geohashes, GeoJSON, quadkeys and XYZ tiles, and a collection can be queried with NEARBY, WITHIN or INTERSECTS, optionally narrowed by numeric fields, ID glob patterns, or regex matching. Its signature job is geofencing: add the FENCE keyword to a search and enter, exit, inside, outside or cross events stream back over a kept-open connection, a pub/sub channel, or an outbound webhook to HTTP, gRPC, Redis, Kafka, RabbitMQ, NATS, MQTT, SQS, Azure Event Hubs or Google Pub/Sub. Prometheus metrics can be exported natively. Clients speak the Redis RESP protocol plus plain HTTP, WebSockets and telnet, and tile38-cli ships as a shell; leader/follower replication and append-only-file persistence cover durability and scale-out. Self-hosting means one Go binary or the tile38/tile38 container with no external services, listening on port 9851 by default.

Tile38 alternatives

Should you self-host Tile38?

Tile38 scores 66/100 on selfhost.directory (how scoring works) and ranks #2 of 8 in Geospatial. It has 9 755 GitHub stars, +17 in the last 30 days.

It shipped 2 stable releases in the past year. The latest, 1.38.0, came out on 9 June 2026. New versions land roughly every 5 months.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is QGIS (80/100, 14 797 stars). It scores higher overall, so compare the two before you pick. See Tile38 vs QGIS side by side.

Features

  • Command Line Interface
  • Field and ID filtering in searches
  • In-memory store with on-disk persistence
  • Leader / follower replication
  • Multiple geospatial object types
  • Password-protected access
  • Prometheus metrics export
  • Pub/sub channels
  • Real-time geofencing
  • Redis-compatible RESP protocol
  • Roaming geofences
  • Spatial search (Nearby / Within / Intersects)
  • Webhook Notifications

Tile38 README

Tile38

Slack Discord

How to install Tile38

Install Tile38 with Docker

docker pull tile38/tile38
docker run -p 9851:9851 tile38/tile38

Also published on Docker Hub as tile38/tile38.

How to configure Tile38

  • --metrics-addrAddress for the native Prometheus metrics HTTP server, e.g. 127.0.0.1:4321; disabled by default
  • requirepassSet a password and make server password-protected, defaults to: "" (no password)
  • leaderauthIf leader is password-protected, followers have to authenticate before they are allowed to follow.
  • protected-modeTile38 only allows authenticated clients or connections from localhost. Defaults to: "yes"
  • maxmemorySet max memory in bytes. Get max memory in bytes/kb/mb/gb.

Tile38 releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Geospatial

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…