015 files · 151 KB
The SaaS starter
Start with accounts, organisations, email and analytics wired into a React app and Hono API.
Keep React routes, session checks and cached server data working from the same types.
9 files · 10 KB
Why I keep it
I use TanStack Router and Query in the Vite starter, so routes and components read the same cached session. The protected layout checks that session before rendering, while a 401 sends the visitor to sign in with a route back to their work.
I’ve included the route tree, Query client, session query and a Zod-checked API helper, so you can add features inside the same pattern. The tree lives in src/app/router.tsx because I want the routing decisions readable in one file.
9 files · 10 KB
015 files · 151 KB
Start with accounts, organisations, email and analytics wired into a React app and Hono API.
025 files · 6 KB
Run builds, tests and type checks across your apps in dependency order, with cached results.
0316 files · 18 KB
Give your API typed routes, generated docs and a consistent error response before adding features.
048 files · 8 KB
Keep your database schema typed and your SQL migrations checked in beside the code that needs them.
052 files · 5 KB
Keep accounts, organisations and passkey sign-in in your own Hono API and Postgres database.
065 files · 5 KB
Check staged code at commit time and types before a push, including work written by your agents.
I’ll send you one build log a week: what I added to the library and what I shipped with it. You can unsubscribe any time.