// open-source . typescript . self-hosted . MIT

Server-side libraries
for production SaaS

TypeScript primitives for multi-tenancy, audit logging, webhooks, and email.
All running in your infrastructure, stored in your database.

Read the Docs
~/my-saas — zsh
>npm install @usebetterdev/audit
✓ Installed @usebetterdev/audit@latest
 
>npx @usebetterdev/audit-cli init
? Which database ORM are you using? Drizzle
✓ Generated audit_logs migration
✓ Ready to configure
// libraries

Everything your SaaS needs.
No vendor lock-in.

Composable TypeScript packages. Your server, your database, your data.

UseBetterAudit stable

Auto-capture every ORM mutation with human-readable labels. SOC 2 and GDPR compliance-ready out of the box. Stored in your own database.

audit-logcomplianceorm
UseBetterTenant stable

Request-scoped multi-tenancy with row-level security. Database-enforced isolation, framework adapters, CLI tooling, zero WHERE clauses.

multi-tenancypostgres-rlsprisma
UseBetterConsole stable

Hosted admin dashboard that connects directly to your app. Team roles, granular permissions, magic link auth. Your data never leaves your servers.

adminmagic-linkpermissions
UseBetterWebhooks coming soon

Event registration, endpoint management, HMAC signing, reliable delivery with retries. All backed by your own database.

webhooksretriessigning
UseBetterMail coming soon

Transactional emails every SaaS needs — welcome flows, invites, password resets. React templates, type-safe variables, every send logged. Preview server included.

emailreactmulti-provider
And more... available soon
notifylimitsinvitekeyspricingteambilling
// philosophy

Libraries, not services.

One pattern, every package. You run it. You own it.

Your Database

Audit logs, webhook deliveries, email history — all in your own database. Query it, join it, export it. You own the schema forever.

Your Server

Everything runs inside your Node.js process. No external API calls for core functionality. Your network perimeter, your security boundary.

Type-Safe End-to-End

TypeScript from configuration to query result. Full type inference, auto-complete, and compile-time checks across every library.

Framework Agnostic

First-class adapters for Next.js, Hono, Fastify and more. Switch frameworks without rewriting a single line of business logic.

Start in minutes.

Pick a library. Follow the docs. Ship.