Introduction
Introduction to PayKit.
PayKit is an embedded billing framework for TypeScript apps. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced billing capabilities. Whether you need subscription management, usage-based billing, entitlement checks, or plan management across multiple providers, it lets you focus on building your product instead of wiring up payment provider APIs.
Features
PayKit aims to be a complete billing framework. It provides a wide range of features out of the box and allows you to extend it with plugins.
Products in Code
Define plans and features as typed primitives.
Webhooks Handled
Verified, deduplicated, synced to your database automatically.
Usage Billing
Metered features with check() and report().
Any Provider
Stripe, Polar, Creem, or your own. Swap with one import.
Plugin Ecosystem
Dashboard, analytics, or build your own plugin.
Local Billing State
Billing state in your Postgres, joinable with your tables.
CLI
Init, push, and status. Scaffold, migrate, validate.
Client SDK
Browser-side billing calls with full type inference.
Type-safe
Plan IDs, feature IDs, events — all inferred from your schema.
...and more to come!