>_ bring your own

Open-source packages for better-auth apps.

Notifications, support and more, MIT licensed. Each package is a library, not a service: it runs in your app, keeps its data in your database, and knows your users and organizations.

npm i @byo-oss/notifications
@byo-oss/notificationsplugins: [inbox()]01100010 01111001 011011110x62 0x79 0x6fuser_id · created_atv0.13.0MITSELECT * FROM notificationexit → knock · novu · courier9980211df6e9394486bec57ab6a370b00c5b917d2a31e23bb568aa04e72bfcf37be15f850b97d9ceba3fa69f7d979e2ccf90a0d9914e2
[01] principles

Libraries, not services.

No dashboards to sign up for, no services to deploy. You install a package the same way you installed better-auth.

01

Your database

Tables come from the plugin schema and migrate with the better-auth workflow you already run: drizzle, prisma, kysely.

02

Your users

Everything is addressed to better-auth users and organizations. Delete a user and their rows go with them.

03

One system

Every package follows the same conventions: one identity, one permission model, one way to run background work, one UI style.

04

A way out

Each package documents the move to the tool you'd outgrow it into, with a field mapping and migration steps.

[02] packages

One package per domain.

Each package covers its whole domain at the depth a young product needs, and is named for what it covers.

[03] compose

One config. Every product.

BYO packages are better-auth plugins. Add one to the plugins array you already have, run your migration, and it shares your sessions, users, organizations and permissions.

  • Permissions, not role names. Packages export statements for your access-control catalog.
  • One sweep endpoint per package for background work, called from any scheduler.
  • Headless hooks first. Components on shadcn variables, no UI dependencies.
lib/auth.ts
import { betterAuth } from "better-auth";
import { organization } from "better-auth/plugins";
import { inbox } from "@byo-oss/notifications";

export const auth = betterAuth({
  // ...your existing config
  plugins: [
    organization(),
    inbox(),
    // the next BYO package goes here
  ],
});
terminal
npx @better-auth/cli migrate
[04] exit path

Built to be outgrown.

BYO is the right default for a young product, and some teams outgrow it. Leaving should be a planned, boring migration, not a rewrite. Every package plans for its own replacement.

packageyou've outgrown it whenusual next stop
notificationsYou need push, SMS or chat next to in-app, or non-engineers editing templatesKnock · Novu · Courier
supportYour support team outgrows a help desk that lives inside the productZendesk · Plain · Front
entitlementsYou bill by usage, sell credits or add-ons, or non-engineers need to edit plansStripe Entitlements · Autumn
mailerYou change providers, or need templates, attachments, cc or bcc, or batch sendinganother adapter · your provider's SDK
01 / run both

Keep the package running while the new tool takes one type behind a flag.

02 / backfill

The conventions require a data export as plain JSON, in a documented schema.

03 / cut over

Your code calls a small, stable surface, so only those call sites change.

04 / uninstall

Remove the plugin, drop its tables in the documented order. Nothing left behind.

>_

Read the source.

Every package is MIT licensed. Read the code, install from npm, or start with the conventions they all follow.