# Express-BetterAuth-Boilerplate

A Node.js/Express backend starter with Better-Auth authentication fully wired up

https://topboilerplates.com/express-betterauth-boilerplate

Framework: Express / Node | Pricing: Free | GitHub stars: 8

## Verdict

Best for: Node.js developers who want a backend starter with Better-Auth already configured, including email verification and RBAC.

Skip if: You need a frontend included, or you'd rather use a more established auth library like NextAuth or Clerk.

## Description

Express-BetterAuth-Boilerplate is a free, open-source backend starter for Node.js apps that need auth solved from day one. It combines Express with TypeScript, PostgreSQL via the Kysely query builder, and Better-Auth for signup, email verification, login, password reset, and session management, plus role-based route protection, Winston logging, and Docker support.

## Pros and cons

+ Complete Better-Auth flow: signup, email verification, password reset, sessions

+ Role-based access control on protected routes out of the box

+ Docker setup includes Mailpit for local email testing

+ Structured logging via Winston with request tracking

- Small, single-maintainer project with limited community traction (single-digit GitHub stars)

- Backend-only, no frontend or admin UI included

- API routes are intentionally left empty, so business logic is entirely up to you

## Features

- auth-included
- rbac-roles
- api-routes
- rate-limiting
- migrations
- docker-compose-dev
- open-source
- mit-licensed
- free-tier

## Stack

- Postgres
- Better Auth
- TypeScript
- Docker

## Links

- Website: https://topboilerplates.com/go/express-betterauth-boilerplate
- GitHub: https://github.com/mrmovas/Express-BetterAuth-Boilerplate

## Alternatives

- [IndieKit](https://topboilerplates.com/indiekit)
- [Carrot Seed](https://topboilerplates.com/carrot-seed)
- [ShipFast](https://topboilerplates.com/shipfast)
