zod-pocketbase-continued

Zod tooling for your PocketBase instance.

This repository is a continuation of Gregory Bouteiller's zod-pocketbase, as the original repository was outdated for 10 months.

Documentation

Old documentation is compatible with the current version

Compatibility

  • PocketBase: v0.30.0
  • PocketBase JS SDK: v0.26.2

Changes from Original

Project Structure

  • Added flake.nix for NixOS development environment.
  • Removed doc/, playground/ and monorepo configuration
  • Replaced pnpm and node in favor of bun
  • Switched .github/ to .gitea/ and gh to tea
  • Switched from eslint and prettier to biome.

Dependencies & Code

  • Migrated from tsup to tsdown
  • Updated all npm dependencies
  • Removed unused dependencies
  • Fixed getPocketbase function in sdk.ts to match the latest PocketBase version
  • Implemented most TODOs left in content.ts

Not working (yet)

  • Expanding Relation field with type Multiple is not working for now. Try to avoid using it.

License

MIT License

Description
Zod tooling for your PocketBase instance.
Readme MIT 749 KiB
v0.5.1 Latest
2025-10-18 12:10:24 +00:00
Languages
TypeScript 91.1%
Nix 5.4%
JavaScript 3.5%