This is my go-to stack for building admin portals and dashboards. I got tired of setting up the same things over and over so I extracted the patterns that actually worked in production.
- SolidJS + Vike - file-based routing that just works
- TailwindCSS v4 - styling without the mental overhead
- TanStack Solid Query - I always use this for data fetching, caching is a breeze
- Cognito Auth - I always use Cognito for auth, it's battle-tested
- Zod schemas - I use this for all schema validations, single source of truth
- API Client - I usually pair this with a Rust microservices backend
bun install
cp .env.example .env
# fill in your env vars
bun devβββ components/ # your UI components go here
βββ context/ # auth, api, query providers (wired up)
βββ hooks/ # data fetching patterns
βββ lib/ # api client, auth, env validation
βββ pages/ # add your routes here
βββ schemas/ # zod schemas (single source of truth)
βββ styles/ # tailwind entry point
- Clone or use as template
- Update
lib/env.tswith your env vars - Update
lib/api-client.tswith your endpoints - Add your schemas in
schemas/ - Create hooks in
hooks/following the pattern - Build your pages
The auth flow is ready - just plug in your Cognito pool.
Built from patterns I use in production. Feel free to rip it apart.