App template
SaaS dashboard
Run a SaaS business from one frame: revenue and accounts at a glance, every customer a click away in the side panel or a tab of their own, billing, and a status bar that says when it last synced.
Use this template
Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.
npx shadcn@latest add checkfu/uicontext/saas-dashboard- Run itLoad from your page’s script. It builds the app with
createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, renderDashboardTemplate, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Dashboardin . Implement it over your API and pointDashboardLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
Overview
/Revenue, accounts, churn and retention with their trend, revenue by day, three accounts worth a look, failed payments to retry, and the largest accounts.
Customers
/customersEvery account in a grid: search, sort and filter; one opens in the side panel or in a tab.
Customer
/customers/:idOne account in full: plan, seats, health, activity and notes.
Billing
/billingThe plan, usage, card on file and invoices.
Search
/searchAccounts and pages by name.
Notifications
/notificationsWhat happened across accounts, newest first, to read or mark read.
Settings
/settingsProfile, notifications and team.
Where your backend plugs in
Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Dashboard service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const DashboardLive = Dashboard.sample
// becomes your Layer, such as
export const DashboardLive = Layer.effect(Dashboard, makeHttpDashboard)The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.
What to delete
- services/seed.ts, and Dashboard.sample in services/Dashboard.ts
- The docs page, if your help lives elsewhere: pages/docs and the Docs route and rail place
To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .