UseBetter
Open-source TypeScript libraries for building production-ready SaaS applications.
usebetterTenant
Request-scoped multi-tenancy with Postgres RLS. Database-enforced tenant isolation, framework adapters, CLI tooling, and zero WHERE clauses.
usebetterAudit
Auto-capture every database mutation via your ORM, enrich actions with human-readable labels and compliance tags. Stored in your own database, type-safe end-to-end.
usebetterWebhooksComing soon
Event registration, endpoint management, payload signing, reliable delivery with retries, and delivery logging — all backed by your own database.
usebetterMailComing soon
React component templates with type-safe variables, any provider (Resend, Postmark, SES, SMTP), every send logged to your own database.
Why UseBetter?
Section titled “Why UseBetter?”Every SaaS needs tenancy, audit logs, webhooks, and transactional email. These are infrastructure problems — not product differentiators. UseBetter gives you production-grade implementations that:
- Run in your database — no external services, no vendor lock-in
- Work with your ORM — Drizzle and Prisma adapters, not a proprietary query layer
- Drop into your framework — Hono, Express, and Next.js middleware out of the box
- Ship with CLI tooling — migrations, health checks, and scaffolding via
npx - Follow the same architecture — learn one pattern, apply it across all products
Read more about the shared design in Core Concepts.
Console
Section titled “Console”console.usebetter.dev
A hosted admin UI that connects to your app’s backend. Manage tenants, view audit logs, monitor webhooks — all through API calls to your server. No data leaves your infrastructure.
For AI agents
Section titled “For AI agents”This documentation is optimized for AI consumption:
/llms.txt— structured summary with links to all pages/llms-full.txt— complete documentation in a single file
Use llms-full.txt when you need all details without multiple fetches.