Skip to content

postgisPostGIS for Node.js

Lightweight, type-safe spatial queries — GeoJSON, MVT tiles, nearest neighbour, bounding boxes, and more.

Full PostGIS Coverage

bbox, centroid, GeoJSON, Geobuf, MVT tiles, nearest neighbour, intersections, coordinate transforms.

TypeScript First

Full type definitions out of the box — auto-complete, IntelliSense, and compile-time safety.

Dual ESM + CJS

Tree-shakable ESM build and a CommonJS fallback — works with any bundler or runtime.

Zero Runtime Dependencies

Bring your own pg client. One peer dependency, nothing else.

Bring Your Own Client

Works with pg.Client, pg.Pool, or any object that exposes a compatible query() method.

Fully Tested

50+ unit tests with mocked pg.Client — no database required to run the test suite.

Released under the MIT License.