Paywright.
A standalone microservice that owns the Stripe integration: customers, plans, payments, subscriptions, invoices and webhooks. Scaffolded with one command.





From problem to what's next.
In the order it actually happened. Use the route to jump around.
Every app that takes payments rebuilds the same Stripe plumbing, and idempotency, webhooks and retries are where it breaks.
Paywright is a standalone payment microservice that owns everything Stripe-related. Apps in any language call it over REST and store only the IDs it returns. One command scaffolds the service; you own the code and deploy it.
- 01Designed NestJS REST APIs for customers, plans, payments, subscriptions and invoices, with API-key auth, rate limiting and idempotency keys.
- 02Built the webhook pipeline: signature check, race-free dedupe, a BullMQ queue and background workers with exponential retries.
- 03Wrapped every Stripe call in one timeout, retry and circuit breaker policy that reacts only to transient errors.
- 04Published two npm packages: the create-paywright-app scaffolder and an OpenAPI-generated TypeScript SDK, plus a docs site.
The system, end to end.
- STEP 01Your appany language · stores IDs only
- STEP 02@paywright/sdktyped client from OpenAPI
- STEP 03Paywright serviceCQRS modules · API-key guard · rate limit
- STEP 04Stripe APItimeout · retry · circuit breaker
- STEP 01Stripe webhookssigned events in
- STEP 02Intakeverify · ON CONFLICT dedupe · return 200
- STEP 03BullMQ queueevent ID as job ID · Redis
- STEP 04Worker5 attempts · exponential backoff
- STEP 05PostgreSQLpayment status synced
AND THE FIX
- IDEA
- BUILDING
- LIVE
Docs are live and the source is public on GitHub. create-paywright-app and @paywright/sdk are both on npm. The test suite has 18 tests across 5 suites.
The road keeps going.
- STOP +1Official Python and Go SDKs
- STOP +2A one-click webhook replay endpoint for events parked in Redis