Claude Code Build Night · Part 11 · Coming soon
Admin Console
Build the internal tool that runs the business.
How the night runs.
Twenty minutes of AI news, then we build the admin console for What's for Dinner from one ADMIN.md, then five-minute demos from the room.
- 01
Roles
Better Auth's admin plugin and the first admin.
- 02
Pages
Metrics, users, support, dinners and the audit log.
- 03
Actions
Ban, hide, reset, impersonate, each confirmed.
- 04
Audit
Every action logged, every route checked.
The deck.
Every slide from the night, free to share. Open it full size to step through.
Tonight's console.
The internal tool that runs the app, written down before it's built. Paste it into your repo and let Claude Code build from it.
What's for Dinner
Two roles, five pages, seven actions and an audit log, all inside the same Next.js app and locked on the server.
The ruleThe server decides, and every action leaves a record.
- Better Auth admin plugin
- shadcn/ui
- TanStack Table
- Neon
- AI SDK
- AI Gateway
- Playwright
- A normal user gets nothing from /admin, proven by a test
- Find a user, see their dinners, ban them with a reason
- Hide a bad recipe and the user stops seeing it
- Every action shows up in the audit log
- Impersonation shows a banner and is logged
The prompts.
Every prompt from the deck, in order. Open one, copy it, paste it into Claude Code, Codex or any coding agent.
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
The toolkit.
Everything behind the console, one job each, inside the app you already run.
Better Auth admin plugin
Roles, list users, ban and unban, impersonate, set role
npm install better-authBetter Auth CLI
Create the first admin from your terminal
npx auth@latest create-admin --email you@example.com --name "You" --role adminshadcn/ui data table
The users table: sorting, filtering, pagination and row actions
npx shadcn@latest add table button dropdown-menu input dialog textareaTanStack Table
The headless table engine behind the data table
npm install @tanstack/react-tablePlaywright
The test that proves a normal user can't get in
npm init playwright@latestAI SDK + AI Gateway
One AI assist: summarize a user's recent activity
npm install aiNeon
The same Postgres database, now with an audit log table
npx neon@latest init
Bring your app. Leave with the controls.
Date to be announced. Dates go out in the Discord first.
Harbor at dusk · Phoenix, Arizona