Production-ready building blocks for the parts of your application you don't want to build twice.
AI can write the code. You still have to trust it. Softreuse sells small TypeScript modules that have already been tested against the failure cases, documented, versioned and security-reviewed. You get the source, you read it, you own it.
- Tested
- Documented
- Versioned
- Security checked
- TypeScript / Node / React
The first module: Reliable Webhooks
Receive webhooks without losing, duplicating or double-processing them.
A webhook handler looks like twenty lines until the same Stripe event arrives twice, your database blips during a deploy, or a worker is killed halfway through fulfilling an order. This is the part you would otherwise design, write and test yourself: verify, store, acknowledge, process, retry, dead-letter.
- Signature verification for Stripe, GitHub and any HMAC scheme
- Idempotency enforced by the database, even under concurrent duplicates
- Retries with backoff, crash recovery, dead letters and replay
- Zero runtime dependencies, strict TypeScript, PostgreSQL store included
const receiver = createWebhookReceiver({
provider: stripeProvider({ secret }),
store: new PostgresStore(pool),
handlers: {
"checkout.session.completed":
async ({ event, idempotencyKey }) => {
// runs once per event
await grantAccess(event, idempotencyKey);
},
},
});
export const POST = (r: Request) => receiver.handle(r);
await receiver.processDue(); // cron: retriesWhy not just prompt it, or copy a snippet?
Generating code is cheap now. Knowing it will hold up at 3am during an outage is not.
A model writes the happy path
It produces a webhook handler in seconds. It won't tell you what happens when the same event arrives twice, when your database is down mid-request, or when the signature header is missing. Our modules ship with tests for exactly those cases.
Snippets don't get maintained
Every module has a version, a changelog, stated Node and framework support, and an update policy. When something changes you get a new release, not a stale gist.
You can inspect it before you pay
Product pages list what's in the package, what it requires, how failures are handled and what was checked for security. The engineering is the sales pitch.
Every module includes
- Full TypeScript source, strict mode
- Automated test suite you can run
- Runnable examples
- Install, configure and troubleshoot docs
- Changelog and semantic versions
- Threat model and secure defaults
- Commercial licence for your own projects
- All updates within the major version
- 14-day refund if it doesn't work as documented
Who it's for
A good fit
- Developers and small teams shipping a SaaS on Node and TypeScript
- You'd rather read 800 lines of tested code than design this yourself
- You want to own the source, not add a hosted dependency
Not a fit
- You need a hosted service or a dashboard
- Your backend isn't JavaScript or TypeScript
- You want a catalog of dozens of modules: we ship few, done properly
Pricing
No subscription. Spend $79 instead of building and testing this infrastructure yourself. Includes every v1.x release, the commercial licence for your own projects, and a 14-day refund if it doesn't work as documented.
See what's includedQuestions
Why not just ask an AI to write this?
You can, and for many things you should. The hard part of webhooks isn't the first draft, it's the cases nobody prompts for: the same event arriving ten times at once, a worker killed mid-handler, a database outage during delivery. This package comes with tests for those cases, run against a real PostgreSQL database, plus a written threat model. You still review the code. You just start from something that has already been tested against production failure modes.
What exactly do I get after paying?
A .zip with the full TypeScript source, tests, runnable examples, SQL migration, architecture and security docs, a changelog and the licence. It's available in your Softreuse account the moment Stripe confirms payment, and you can download it again any time.
What does the licence allow?
Use it in unlimited projects you or your company own, commercial or not, and modify it freely. You can't resell or redistribute it as a standalone product or library. The full text is on the product page and inside the package.
Which versions does my purchase cover?
Every release of the major version you bought. Buy v1 and you get all v1.x updates (fixes and backwards-compatible features) for free. A future v2 with breaking changes would be a separate paid release; v1 stays yours either way.
Will it work with my stack?
It targets Node.js 20 or newer, TypeScript, and PostgreSQL for the included store. It has zero runtime dependencies and uses Web-standard Request/Response, so it also works in Next.js route handlers, Hono, Bun and Deno. Any other database works by implementing a small store interface that ships with a contract test suite. It is not for sending webhooks, and not for non-JavaScript runtimes.
What if it doesn't work for me?
Email support@softreuse.com. If it doesn't work as documented and we can't fix it, you get a full refund within 14 days of purchase. No forms, no hoops.
Is checkout secure? Do you see my card?
Payment happens on Stripe's hosted checkout page. Your card details never touch Softreuse servers. Access is granted only after Stripe confirms the payment to us by a signed server-to-server message.
Do you charge VAT or sales tax?
Taxes are added at checkout where required. Stripe sends a receipt, and an invoice with your company name or VAT number is available on request.
Stop re-solving the boring parts.
Read the code description, the security notes and the changelog before you decide.
See Reliable Webhooks