Building the product · Independent · 24 Oct 2026

marinedotsh/better-auth-referral

A Better Auth plugin for adding user referrals to your app.

← Building the product
Better Auth Referral. User referral plugin for Better Auth.

In simple English

This tool adds a referral system to your web app. Users get unique codes to share with friends. When new people sign up using those codes, the system tracks them. You can also set extra goals like a first purchase before a referral counts. It saves you from writing this tracking code yourself.

What it is

A TypeScript plugin for Better Auth (an open-source authentication library for web applications). It creates unique codes, tracks signups, and provides ready-made endpoints for referral dashboards.

What it is good for

Solo builders who use Better Auth and want to grow their app through word of mouth without building a referral database from scratch.

Stars81
LicenceMIT
LatestNo tagged releasechecked 24 Oct 2026
Last code change2026-07-31
Written inTypeScript
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Adds unique referral codes for every user automatically.
  • Supports multi-step referrals so rewards happen after real actions like purchases.
  • Includes ready-to-use client endpoints for user dashboards and lists.
Watch for
  • Requires an existing app built with Better Auth.
  • Database schema changes require you to run migrations manually.
  • Requires Node.js and package management knowledge to install and configure.
Replaces

Building custom referral tracking database tables and API endpoints from scratch.

Works well with

Better Auth

Also reviewed on Repo Radar
  • alecthomas/kong3.2k stars

    Builds the whole command-line interface of a Go program from a description of its commands.

  • unocss/unocss19k stars

    A styling engine that reads the labels in your markup and generates only the CSS those labels need.

  • python/mypy21k stars

    The reference type checker for Python, run from the command line.

Install
pnpm add @marinedotsh/better-auth-referral better-auth zod

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Marketing & Growth › Advertising & Promotion › Affiliate & Influencer.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.