postgisPostGIS for Node.js
Lightweight, type-safe spatial queries — GeoJSON, MVT tiles, nearest neighbour, bounding boxes, and more.
Lightweight, type-safe spatial queries — GeoJSON, MVT tiles, nearest neighbour, bounding boxes, and more.
bbox, centroid, GeoJSON, Geobuf, MVT tiles, nearest neighbour, intersections, coordinate transforms.
Full type definitions out of the box — auto-complete, IntelliSense, and compile-time safety.
Tree-shakable ESM build and a CommonJS fallback — works with any bundler or runtime.
Bring your own pg client. One peer dependency, nothing else.
Works with pg.Client, pg.Pool, or any object that exposes a compatible query() method.
50+ unit tests with mocked pg.Client — no database required to run the test suite.