PayKit is what Better Auth is for authentication, but for payments. An open-source TypeScript library that embeds billing directly into your app. Define plans and features in code, store billing state in your own Postgres, and swap payment providers (Stripe, Polar, Creem) with a single import change.
Still in beta and not yet mature, but the core API is usable. Usage-based billing, feature gating, and webhook handling (with automatic verification and dedup) work today. Worth watching if you want to own your billing layer instead of depending on a hosted service.
Code-First Plans
Define plans and features in TypeScript with full type inference
Usage Billing
Metered features with check() and report(), data lives in your DB
Multi-Provider
Stripe, Polar, Creem. Swap providers without rewriting billing logic
Webhook Handling
Automatic verification, deduplication, and database sync
Hire a Claude Code developer who ships with AI agents
Meet 2-3 vetted profiles in 48 hours, then test 1 on a real task in a 2-day trial for $7. From $30/h, no contract.








