Use case · Internal
Admin panels, support inboxes, audit tools. Same Better Auth, same RBAC, same audit trail as the customer-facing app. The four sub-systems an internal tool needs are wired into the registry before your first commit.
Eight capabilities grouped by the buyer-side question they answer. Two halves: what the operator sees, and what keeps the support team accountable.
import { betterAuth } from "@workspace/auth"
import { roles } from "@workspace/contracts"
export const auth = betterAuth({
session: { expiresIn: 60 * 60 * 8 },
plugins: [roles({ roles: ["admin", "support", "finance"] })],
})The four sub-systems an audit reviewer names first. Impersonation, audit replay, CSAT, scheduled jobs — all on the same typed contract as the customer surface.
import { impersonate } from "@workspace/auth"
import { audit } from "@workspace/contracts"
export const impersonateUser = (operatorId: string, userId: string) =>
audit.withRecord({ action: "impersonate", actor: operatorId }, () =>
impersonate({ userId, operatorId, ttlSeconds: 600 }),
)Built with the stack senior engineers ship on.
Process
Better Auth on the admin subdomain. SSO and roles wired against your existing user table.
Scoped roles, audit log, and rate limits. The contract that gates your customer app gates your support console too.
The operator console consumes the same Drizzle schema and the same Better Auth sessions as the customer surface. One type system, one deploy.
Built on this
Production-ready starter templates, each deployed at its own URL. Used as the reference set for what the registry can ship.
Explore
Related
Multi-tenant B2B SaaS with auth, billing, and a working dashboard on day one.
Read more
Related
Maintainer-friendly starters, MIT-licensed, versioned through the same registry.
Read more
Related
RAG, chat, and agents wired against the same contracts your app uses.
Read more
Two doors
Self-serve gives you the registry and the templates. Engagement gives you the team that built it. Pick the door that fits the timeline.