
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.
- 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.
- 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.
Building custom referral tracking database tables and API endpoints from scratch.
Better Auth
- 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.
pnpm add @marinedotsh/better-auth-referral better-auth zod