The billing framework
for TypeScript

Define plans and features in code. PayKit handles Stripe, webhooks, and usage state - runs inside your app.

Read Docs
import { feature, plan } from "paykitjs"

const messages = feature({ id: "msgs", type: "metered" })
const proModels = feature({ id: "pros", type: "boolean" })

export const free = plan({
  id: "free",
  default: true,
  includes: [
    messages({ limit: 20, reset: "month" }),
  ],
})

export const pro = plan({
  id: "pro",
  price: { amount: 19, interval: "month" },
  includes: [
    messages({ limit: 100, reset: "month" }),
    proModels(),
  ],
})

How it works

localhost:3000
Free
AI Chat
2/2
Backend
Interact with the app to see
what happens behind the scenes

Feedback

View tweet by Guillermo Rauch
Guillermo Rauch's profile picture
Guillermo Rauch
@rauchg

👀

View tweet by Gruz
Gruz's profile picture
Gruz
@damnGruz

sick!!! will try it

View tweet by jordi
jordi's profile picture
jordi
@jordienr

paykit looks very interesting, like a really good abstraction without lock in

View tweet by Andrew Qu
Andrew Qu's profile picture
Andrew Qu
@andrewqu

Paykit and opensec are too good

View tweet by Matteo Scotto
Matteo Scotto's profile picture
Matteo Scotto
@442utopy

that looks amazing! Congrats for the launch

View tweet by Jonathan Wilke
Jonathan Wilke's profile picture
Jonathan Wilke
@jonathan_wilke

Honestly, this is probably the best lib project I have come across since better-auth.

View tweet by Lasse
Lasse's profile picture
Lasse
@lassejv

Holy shit paykit by @maxktz is really good.

View tweet by lakshmi
lakshmi's profile picture
lakshmi
@simhskal

very cool

View tweet by Leo
Leo's profile picture
Leo
@leodev

You should check it out, really cool billing framework

View tweet by Creem 🍦
Creem 🍦's profile picture
Creem 🍦
@creem_io

Looks amazing Max! 🙌

View tweet by jan
jan's profile picture
jan
@miaugladiator1

just saw paykit and it looks actually soooo cool have to try this out asap

View tweet by Saïd Aitmbarek
Saïd Aitmbarek's profile picture
Saïd Aitmbarek
@SaidAitmbarek

Gotta try this one, brilliant work mate.

Ready to add billing?

One command to get started. Define your plans, connect Stripe, and ship billing in minutes.

Get Started

Ask AI about PayKit

·© 2026 PayKit