# @dataplan/pg

> PostgreSQL step classes for Grafast

Latest version **1.2.1** (published 2026-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dataplan/pg
pnpm add @dataplan/pg
yarn add @dataplan/pg
bun add @dataplan/pg
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2026-11-02 |
| First published | 2023-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 11 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12933 |
| Author | Benjie Gillam |
| Maintainers | benjie |
| Keywords | graphile, graphql, grafast, postgresql, postgres, pg, dataplan, build, extension, graphite |

## Links

- npm: https://www.npmjs.com/package/@dataplan/pg
- Repository: https://github.com/graphile/crystal
- Homepage: https://grafast.org/grafast/step-library/dataplan-pg/
- Issues: https://github.com/graphile/crystal/issues
- npm.io page: https://npm.io/package/@dataplan/pg

## Dependencies (11)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [debug](https://npm.io/package/debug.md) ^4.4.3
- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [grafast](https://npm.io/package/grafast.md) ^1.2.0
- [pg-sql2](https://npm.io/package/pg-sql2.md) ^5.0.2
- [@types/node](https://npm.io/package/@types/node.md) ^22.19.1
- [@graphile/lru](https://npm.io/package/@graphile/lru.md) ^5.0.1
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^5.0.1
- [@dataplan/json](https://npm.io/package/@dataplan/json.md) ^1.0.2
- [postgres-array](https://npm.io/package/postgres-array.md) ~3.0.4
- [postgres-range](https://npm.io/package/postgres-range.md) ^1.1.4

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2026-11-02
- 1.2.0-aardvark.next-20260928202932 (snapshot-next) — 2026-09-28
- 1.0.0-rc.8 (rc) — 2026-03-10
- 0.0.1-beta.39 (beta) — 2025-09-24
- 0.0.1-alpha.17 (alpha) — 2023-08-02
- 0.0.1-alpha.2 (prealpha) — 2023-05-03
- 1.2.0 — 2026-10-30
- 1.2.0-aardvark.next-20260925164249 — 2026-09-25
- 1.2.0-aardvark.next-20260922224416 — 2026-09-22
- 1.2.0-aardvark.next-20260919185130 — 2026-09-19
- 1.2.0-aardvark.next-20260918085327 — 2026-09-18
- 1.2.0-aardvark.next-20260910230054 — 2026-09-10
- 1.2.0-aardvark.next-20260907131448 — 2026-09-07
- 1.1.2 — 2026-09-04
- 1.2.0-aardvark.next-20260902182429 — 2026-09-02
- … 108 more at https://npm.io/package/@dataplan/pg/versions

## README

# @dataplan/pg

[![GitHub Sponsors](https://img.shields.io/github/sponsors/benjie?color=ff69b4&label=github%20sponsors)](https://github.com/sponsors/benjie)
[![Patreon sponsor button](https://img.shields.io/badge/sponsor-via%20Patreon-orange.svg)](https://patreon.com/benjie)
[![Discord chat room](https://img.shields.io/discord/489127045289476126.svg)](http://discord.gg/graphile)
[![Follow](https://img.shields.io/badge/twitter-@GrafastHQ-blueviolet.svg)](https://twitter.com/GrafastHQ)

**A collection of extremely highly optimized Gra*fast* step classes for
interacting with PostgreSQL**

Documentation: https://grafast.org/grafast/step-library/dataplan-pg/

<!-- SPONSORS_BEGIN -->

## Crowd-funded open-source software

To help us develop this software sustainably, we ask all individuals and
businesses that use it to help support its ongoing maintenance and development
via sponsorship.

### [Click here to find out more about sponsors and sponsorship.](https://www.graphile.org/sponsor/)

And please give some love to our featured sponsors 🤩:

<table><tr>
<td align="center"><a href="https://gosteelhead.com/"><img src="https://graphile.org/images/sponsors/steelhead.svg" width="90" height="90" alt="Steelhead" /><br />Steelhead</a> *</td>
</tr></table>

<em>\* Sponsors the entire Graphile suite</em>

<!-- SPONSORS_END -->

[grafast]: https://grafast.org

---
_Source: https://npm.io/package/@dataplan/pg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
