A (somewhat) polished BetterAuth x Convex starter template with (decently) sane defaults
Hey ya'll,
as part of my work for the Hackathon, I decided to take some of the effort I put into the Auth layer and factor it out into an easy to start with Template.
Some things you get out of the box:
- Full auth flows (passphrase, magic links, email codes, resets), all wired to Convex with shared schemas so client + server don't drift.
- Social sign-in & linking (GitHub, Google, Apple) β just plug in envs and go.
- Security helpers built in β zxcvbn passphrase strength meter, Have I Been Pwned plugin (Better Auth does have some neat plugins to say the least), email OTP.
- Pre-styled UI using 9ui.dev primitives (think shadcn/ui but with Base UI + Tailwind v4 under the hood); can easily replace with shadcn/ui as they use the same CLI and I will probably improve the setup script to allow choosing between 9ui and shadcn/ui.
- Rate limiting & audit trails baked in β destructive ops log to Convex automatically.
- A realtime counter example so you can check Convex queries/mutations are working.
- Email preview in dev mode (no setup required β just sends them to console).