THE COMPLETE STRIPE INTEGRATION TOOLKIT

Type-safe. Simple API. Webhooks. Subscriptions. Checkout.
Build production-ready Stripe integrations in minutes.

$ npm install @plutaslab/stripe-kit
150+
TYPED EVENTS
8
SERVICES
6
PACKAGES
100%
TYPESCRIPT

EXAMPLE

// Create a checkout session in seconds

checkout.ts typescript
import { StripeKit } from '@plutaslab/stripe-kit'

const stripe = new StripeKit({
  secretKey: process.env.STRIPE_SECRET_KEY,
})

// One line checkout
const session = await stripe.checkout.createSession({
  items: [{ name: 'Pro Plan', amount: 4900 }],
  successUrl: '/success',
  cancelUrl: '/pricing',
})

// Type-safe webhooks
const handler = stripe.webhooks.createHandler({
  'checkout.session.completed': (event) => {
    console.log('Payment received!')
  },
})

FEATURES

// Everything you need for Stripe integration

  ╔════╗
  ║ TS ║
  ╚════╝

TYPE-SAFE

Full TypeScript support with 150+ typed webhook events. Catch errors at compile time.

  ┌──$──┐
  │ $$$ │
  └─────┘

SUBSCRIPTIONS

Create, update, pause, resume, cancel subscriptions with intuitive one-liners.

  ┌─────┐
  │ [✓] │
  └─────┘

CHECKOUT

Sessions, Payment Intents, Payment Links with simplified API.

  ←─────→
  │HOOK │
  ←─────→

WEBHOOKS

Type-safe handlers with automatic signature verification.

  ┌─@─┐
  │ o │
  └───┘

CUSTOMERS

Full CRUD with search and get-or-create patterns built in.

  ╱╲╱╲╱╲
  ──────
  USAGE

USAGE BILLING

Meters and usage records for metered billing models.

  ●───●
  │   │
  ●───●

CONNECT

Marketplace payments, transfers, and payouts.

  ┌─────┐
  │ INV │
  │ ### │
  └─────┘

INVOICING

Create, send, finalize, void invoices programmatically.

  ╔═════╗
  ║░░░░░║
  ╚═════╝

PORTAL

Customer billing portal for self-service management.

PACKAGES

// Modular architecture - use what you need

@plutaslab/stripe-kit
Core SDK - works with any framework
[npm →]
@plutaslab/stripe-kit-next
Next.js App Router & Pages Router
[npm →]
@plutaslab/stripe-kit-express
Express middleware for webhooks
[npm →]
@plutaslab/stripe-kit-react
React hooks and components
[npm →]
create-stripe-kit
CLI project scaffolder
[npm →]
@plutaslab/stripe-kit-types
Shared TypeScript definitions
[npm →]

QUICK_START

// Up and running in 60 seconds

INSTALL

Add Stripe Kit to your project

$ npm install @plutaslab/stripe-kit stripe

INITIALIZE

Create a StripeKit instance with your secret key

const stripe = new StripeKit({ secretKey: '...' })

BUILD

Use the intuitive API to handle payments

await stripe.checkout.createSession({ ... })
    ╔═══════════════════════════════════════════════╗
    ║                                               ║
    ║   READY TO SIMPLIFY YOUR STRIPE INTEGRATION?  ║
    ║                                               ║
    ╚═══════════════════════════════════════════════╝
      

START BUILDING TODAY

Join developers building better payment experiences