Why Payweave exists and what it gives you — one unified, fully-typed TypeScript SDK for Stripe, Paystack, and Flutterwave, with billing, a database layer, and a CLI built in.
Payweave is a unified, fully-typed TypeScript SDK for Stripe, Paystack, and Flutterwave — one client, any provider, with subscriptions, metered usage, and webhook handling built in rather than bolted on.
One SDK, every provider — woven together.
Wiring up payments usually means:
fetch calls against each provider's REST docs, one provider at a time,Payweave collapses that into one config object and one client.
createPayweave({...}) and get a single, fully-typed client — see Getting started.raw.plan()/feature() definitions, subscribe(), sync(), metered check()/report(), and idempotent webhook-driven state updates — see Database, Plans & features, and Metered usage.payweave init | push | listen | status scaffolds a project, migrates + syncs plans to your providers, relays webhooks locally, and validates your setup — see CLI.zod is the SDK's only runtime dependency, Node ≥ 20.19.Pre-release. Stripe, Paystack, and Flutterwave v3 (provider-native resources + webhooks), the unified layer, the database layer (sqlite, Postgres, MongoDB, Drizzle), plans/features/metered usage, and the CLI are implemented and tested. Still landing: the MySQL and Prisma database adapters, Flutterwave v4's resource surface (auth + webhooks are in place), and live provider contract tests.
Payweave deliberately exposes both:
checkout, verify, refunds, transfers, banks) with identical signatures across the providers that support them. See Unified layer for the exact capability matrix.Head to Getting started to install and initialize your first client.
On This Page