Introduction
Introduction to PayKit.
PayKit is an embedded Stripe billing framework for TypeScript apps. It provides subscription management, usage-based billing, entitlement checks, and plan management so you can focus on building your product instead of wiring up Stripe lifecycle code.
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().
Built For Stripe
Stripe subscriptions, webhooks, portal, and product sync built in.
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.