Creating a new custom file format is stupid... until it's not.
Every engineer knows the rule: never invent your own file format. Use something standard, move on with your life. I tried! And then I ran head-first into time-series vector data.
A web map is drawn from tiles: small square pieces, one per patch of map per zoom level. For static maps, PMTiles is magic. It’s a single file holding every tile plus an index, so a tool called tippecanoe builds the tiles once on upload, and the viewer just fetches the few bytes it needs on demand.
A tile has an address made of three numbers: zoom, column and row. Notice what’s missing: time. When I wanted to serve moving fleets (ships, vehicles, anything with a timestamp), I first tried making tiles on the spot from GeoParquet, a table format for geodata that stores its rows in big chunks called row groups. Every request that wasn’t already cached meant reading several of those chunks, throwing away the rows outside the tile and the hour, and building the tile on the fly inside a Worker (the small program that answers the request). Way too much work per pan.
The obvious workaround - cutting one PMTiles archive per hour - turns a single year of data into 8,760 separate files. Try scrubbing a time slider across a week over the same city and your browser is opening a brand-new archive for every single hour.
So I broke the rule and built .stva: a single archive that indexes location, zoom, and time together.

From my simulated London test archive. The same tile held 116 pings in the morning, 64 at noon, and 92 in the afternoon. Each dot is a report in that hour, with the gaps between reports left open. Tile IDs, byte ranges and counts · Download the original compressed noon tile (ZIP).
Packing space and time into one file
The trick is keeping bins that are close in space and time physically close on disk, so scrubbing forward an hour doesn’t jump all over the file. I ordered the (x, y, time) bins along a 3D Hilbert curve. Picture a box of little cubes, where left-right and front-back are the map and up-down is time. A Hilbert curve is one long wiggly line that visits every cube exactly once and never jumps far, so cubes that are neighbours in the box end up near each other along the line (Moon et al.). A sorted directory maps each tile ID to its byte offset, and the payload at that offset is just a normal Mapbox Vector Tile, the standard format map libraries already know how to draw.
How little you actually have to read
To sanity-check the format, I built a ~55.8 MB test archive of a simulated London fleet holding 57,464 tiles. Say you want one hour of traffic - noon UTC on June 2, 2025 - for a single map tile (5 vehicles, 64 position pings):
- Cold lookup: grab the header (256 B), zoom index (148 B), and zoom directory (36,008 B) plus the tile payload -> ~38.3 KB total.
- Warm lookup (directory cached): jump straight to the payload -> 1,870 bytes.
That’s 1.8 KB out of a 55.8 MB file to draw that hour, without touching the rest of London. Busier hours cost a bit more (08:00 over the same spot is 3,021 bytes for 9 vehicles), and if a request spans multiple hours, the server merges adjacent byte ranges automatically. Obviously raw byte counts aren’t the same as real-world network latency, but pre-indexing space and time into one file keeps every single slice tiny - which was the whole point.