pgTable/Installation
Getting started~2 min
Installation
One package, two peer dependencies, no plugins. pgTable ships as ESM only — bring it into any bundler that understands modern JavaScript and you're done.
Install
Pick your package manager:
bun
bun add @westopp/pgtable
pnpm
pnpm add @westopp/pgtable
npm
npm install @westopp/pgtable
yarn
yarn add @westopp/pgtable
Peer dependencies
pgTable expects React 19 and Zod to already be in your project. They're peer dependencies, not bundled, so you control the versions and avoid duplicate copies in your tree.
TypeScript
TypeScript isn't required, but you'll lose most of the benefit without it. Column types, state slices, and the table API are all inferred from your Zod schemas — JavaScript consumers still get the runtime parsing, just not the editor tooling.
What's next
That's the install. Head to Getting started for the 10-minute tour: declare columns, declare state, mount the hook, render rows.