Prerequisites
Section titled “Prerequisites”- Bun >= 1.3
- A PocketBase instance or an exported schema JSON file
Install
Section titled “Install”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.
bun add -d @karnak19/pbkitbun add pocketbaseVerify
Section titled “Verify”bunx pbkit --helpYou should see:
pbkit — PocketBase code generation toolkit
Usage: pbkit generate [--config <path>] [--watch] pbkit --helpNext steps
Section titled “Next steps”- Follow Your first typed SDK to generate your first SDK
- Read the configuration reference for all available options