Paywright
A standalone microservice that owns the Stripe integration: customers, plans, payments, subscriptions, invoices and webhooks. Scaffolded with one command.
Every app that takes payments rebuilds the same Stripe plumbing, and idempotency, webhooks and retries are where it breaks.
- Designed NestJS REST APIs for customers, plans, payments, subscriptions and invoices, with API-key auth, rate limiting and idempotency keys.
- Built the webhook pipeline: signature check, race-free dedupe, a BullMQ queue and background workers with exponential retries.
- Wrapped every Stripe call in one timeout, retry and circuit breaker policy that reacts only to transient errors.
- Published two npm packages: the create-paywright-app scaffolder and an OpenAPI-generated TypeScript SDK, plus a docs site.
Any app can scaffold a payment service with npx create-paywright-app. Both npm packages are published and the docs site is live.




