Development
Local playground, scripts, and publishing
Built with Vite library mode (ESM + CJS). The SDK repo uses Bun for installs, scripts, and running TypeScript tooling.
Local playground
Copy .env.example to .env and set INFAKT_API_KEY. Bun loads .env automatically.
bun install
bun run dev # smoke test (read-only list calls)
bun run dev clients list
bun run dev invoices get <uuid>Scripts
| Script | Description |
|---|---|
bun run sync:postman | Download latest collection from docs.infakt.pl |
bun run generate:modules | Regenerate src/modules/resources.generated.ts |
bun run build | Generate modules + Vite library build |
bun test | Unit tests (mock fetch) |
bun run typecheck | TypeScript check |
Documentation site
From the repository root:
bun run docs:dev
bun run docs:buildThe site lives in docs/ (Next.js + Fumadocs).