Description
An opinionated starting point for SaaS products, with Hono, Drizzle ORM, Better Auth and Biome. I use it as the base for my own projects, which is also where its rules get tested and, when they do not survive, dropped on purpose.
Features
- Auth wired up with Better Auth: email, OAuth and magic links
- Type-safe data layer with Drizzle ORM and versioned migrations
- Biome for linting and formatting, in place of ESLint and Prettier
- Docker Compose setup that matches what runs in production
Challenges
- Designing a structure flexible enough for different kinds of SaaS without turning into a framework
- Deciding which template rules are worth breaking on a real project, and writing down why
- Moving from Auth.js to Better Auth without losing type safety
Learnings
- That a template earns its rules only after a real project breaks a few of them
- Hono as a lightweight API layer next to Next.js
- Drizzle patterns for type-safe queries without giving up raw SQL where it reads better