S2Tiles is a single-file archive format for tiled data that works for both WM and S2 projections. The goal is to be a "cloud optimized tile store" for vector/raster/grid data. It works much like the PMTiles library.
For now this spec supports deflating metadata/directories inside the browser, but it will be removed in the future.
#bun
bun add s2tiles
# pnpm
pnpm add s2tiles
# yarn
yarn add s2tiles
# npm
npm install s2tiles
To run the tests, use the following command:
# TYPESCRIPT
## basic test
bun run test
## live testing
bun run test:dev