>_ 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.14.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.

@byo-oss/notificationsv0.14.0

Notifications

A bell, an inbox and email follow-up for anything that went unread. Formerly better-inbox.

relies on better-auth · organization (optional)exit → Knock · Novu · CourierMIT · byo-oss/notifications
@byo-oss/supportv0.5.0

Support

Tickets, contacts and agent replies inside your app. Contacts are your better-auth users, or an email address for people without an account.

relies on better-auth · organizationexit → Zendesk · Plain · FrontMIT · byo-oss/support
@byo-oss/entitlementsv0.4.0

Entitlements

Plans, features, limits and usage for your organizations, from one typed catalog. Stripe knows which plan they bought; this decides what it allows.

relies on better-auth · organizationexit → Stripe Entitlements · Autumn · Schematic · StiggMIT · byo-oss/entitlements
@byo-oss/mailerv0.3.0

Mailer

One email-sender interface for BYO packages. Send through Wraps, your own SES client, or any provider email-sdk can carry replies through.

relies on nothing requiredexit → another provider's adapter · your provider's SDKMIT · byo-oss/mailer
@byo-oss/corev0.2.0

Core

The shared library for apps that run two or more BYO packages: one event bus, one cron route and one org-cleanup call. Not a feature: no tables, no endpoints.

relies on better-auth · organization (optional)exit → each plugin's own sweep and cleanupMIT · byo-oss/core
@byo-oss/…next

More domains

New packages are planned in the open. Follow the org on GitHub to see what's next.

github.com/byo-oss ↗
[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
coreYou'd rather wire each plugin's sweep, cleanup and onEvent yourselfeach plugin's own sweep and cleanup
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.