Skip to content

How to install pbkit in your project.

  • Bun >= 1.3
  • A PocketBase instance or an exported schema JSON file

pbkit is a build-time code generator, so install it as a dev dependency. Keep pocketbase as a regular dependency — your app uses its SDK at runtime.

Terminal window
bun add -d @karnak19/pbkit
bun add pocketbase
Terminal window
bunx pbkit --help

You should see:

pbkit — PocketBase code generation toolkit
Usage:
pbkit generate [--config <path>] [--watch]
pbkit --help