This is an open source admin dashboard starter built with Next.js 16, Shadcn UI, TypeScript, and Tailwind CSS.
It gives you a production-ready dashboard UI with authentication, charts, tables, forms, and a feature-based folder structure, perfect for SaaS apps, internal tools, and admin panels.
This template uses the following stack:
- Framework - Next.js 16
- Language - TypeScript
- Auth - Clerk
- Error tracking - Sentry
- Styling - Tailwind CSS v4
- Components - Shadcn-ui
- Charts - Recharts β’ Evil Charts
- Schema Validations - Zod
- Data Fetching - TanStack React Query
- State Management - Zustand
- Search params state manager - Nuqs
- Tables - Tanstack Data Tables β’ Dice table
- Forms - TanStack Form + Zod
- Command+k interface - kbar
- Linting - ESLint
- Pre-commit Hooks - Husky
- Formatting - Prettier
- Themes - tweakcn
If you are looking for a Tanstack start dashboard template, here is the repo.
-
π§± Pre-built admin dashboard layout (sidebar, header, content area)
-
π Analytics overview page with cards and charts
-
π Data tables with React Query prefetch, client-side cache, search, filter & pagination
-
π Authentication & user management via Clerk
-
π’ Multi-tenant workspaces with Clerk Organizations (create, switch, manage teams)
-
π³ Billing & subscriptions with Clerk Billing for B2B (plan management, feature gating)
-
π RBAC navigation system - Fully client-side navigation filtering based on organization, permissions, and roles
-
βΉοΈ Infobar component to show helpful tips, status messages, or contextual info on any page
-
π§© Shadcn UI components with Tailwind CSS styling
-
π¨ Multi-theme support with 6+ beautiful themes and easy theme switching
-
π§ Feature-based folder structure for scalable projects
-
βοΈ Ready for SaaS dashboards, internal tools, and client admin panels
You can use this Next.js + Shadcn UI dashboard starter to build:
-
SaaS admin dashboards
-
Internal tools & operations panels
-
Analytics dashboards
-
Client project admin panels
-
Boilerplate for new Next.js admin UI projects
| Pages | Specifications |
|---|---|
| Signup / Signin | Authentication with Clerk provides secure authentication and user management with multiple sign-in options including passwordless authentication, social logins, and enterprise SSO - all designed to enhance security while delivering a seamless user experience. |
| Dashboard Overview | Cards with Recharts graphs for analytics. Parallel routes in the overview sections feature independent loading, error handling, and isolated component rendering. |
| Product List (Table) | TanStack Table + React Query (server prefetch + client cache) with nuqs URL state for search, filter, pagination. shallow: true keeps interactions client-side. |
| Create Product Form | TanStack Form + Zod with useMutation for create/update. Cache invalidation on success. |
| Users (Table) | Users table with React Query + nuqs pattern. Same architecture as Products β server prefetch, client-side pagination/filter via React Query cache. |
| React Query Demo | Pokemon API showcase demonstrating server prefetch + HydrationBoundary + useSuspenseQuery pattern with client-side cache. |
| Profile | Clerk's full-featured account management UI that allows users to manage their profile and security settings |
| Kanban Board | A Drag n Drop task management board with dnd-kit and zustand. Features column sorting, task cards with priority badges, assignees, and due dates. |
| Chat | Real-time messaging UI with conversation list, message bubbles, quick replies, file attachments, and auto-reply demo. Multi-panel layout with mobile responsive design. |
| Notifications | Notification center with bell icon badge in header, popover preview, and dedicated full page with tabs (All/Unread/Read). Mark as read, mark all as read actions. |
| Workspaces | Organization management page using Clerk's <OrganizationList /> component. Users can view, create, and switch between organizations/workspaces. |
| Team Management | Full-featured team management interface using Clerk's <OrganizationProfile /> component. Manage members, roles, permissions, security settings, and organization details. Requires an active organization. |
| Billing & Plans | Billing management page using Clerk's <PricingTable /> component. Organizations can view available plans, subscribe, and manage subscriptions. Requires an active organization. |
| Exclusive Page | Example of plan-based access control using Clerk's <Protect> component. This page is only accessible to organizations on the Pro plan, demonstrating feature gating with fallback UI. |
| Not Found | Not Found Page Added in the root level |
| Global Error | A centralized error page that captures and displays errors across the application. Integrated with Sentry to log errors, provide detailed reports, and enable replay functionality for better debugging. |
src/
βββ app/ # Next.js App Router directory
β βββ auth/ # Auth pages (sign-in, sign-up)
β βββ dashboard/ # Dashboard route group
β β βββ overview/ # Analytics with parallel routes
β β βββ product/ # Product CRUD pages (React Query)
β β βββ users/ # Users table (React Query + nuqs)
β β βββ react-query/ # React Query demo page
β β βββ kanban/ # Task board page
β β βββ chat/ # Messaging page
β β βββ notifications/ # Notifications page
β β βββ workspaces/ # Org management & teams
β β βββ billing/ # Billing & plans
β β βββ profile/ # User profile
β β βββ exclusive/ # Plan-gated page
β βββ api/ # API routes
β
βββ components/ # Shared components
β βββ ui/ # UI primitives (buttons, inputs, kanban, etc.)
β βββ layout/ # Layout components (header, sidebar, etc.)
β βββ themes/ # Theme system (selector, mode toggle, config)
β βββ kbar/ # Command+K interface
β
βββ features/ # Feature-based modules
β βββ overview/ # Dashboard analytics (charts, cards)
β βββ products/ # Product listing, form, tables (React Query)
β βββ users/ # User management table (React Query)
β βββ react-query-demo/ # React Query demo (Pokemon API)
β βββ kanban/ # Drag-drop task board
β βββ chat/ # Messaging (conversations, bubbles, composer)
β βββ notifications/ # Notification center & store
β βββ auth/ # Auth components
β βββ profile/ # Profile form schemas
β
βββ lib/ # Core utilities (query-client, searchparams, etc.)
βββ hooks/ # Custom hooks
βββ config/ # Navigation, infobar, data table config
βββ constants/ # Mock data
βββ styles/ # Global CSS & theme files
β βββ themes/ # Individual theme CSS files
βββ types/ # TypeScript types
Note
This admin dashboard starter uses Next.js 16 (App Router) with React 19 and Shadcn UI. Follow these steps to run it locally:
Clone the repo:
git clone https://github.com/Kiranism/next-shadcn-dashboard-starter.git
bun install- Create a
.env.localfile by copying the example environment file:cp env.example.txt .env.local - Add the required environment variables to the
.env.localfile. bun run dev
To configure the environment for this project, refer to the env.example.txt file. This file contains the necessary environment variables required for authentication and error tracking.
For detailed instructions on configuring Clerk authentication (including organizations/workspaces/teams), please refer to clerk_setup.md.
You should now be able to access the application at http://localhost:3000.
Warning
After cloning or forking the repository, be cautious when pulling or syncing with the latest changes, as this may result in breaking conflicts.
To remove optional features you don't need (auth, kanban, chat, notifications, extra themes, sentry), run the cleanup script:
node scripts/cleanup.js --interactive # interactive mode
node scripts/cleanup.js --list # see available features
node scripts/cleanup.js --dry-run chat # preview before removing
node scripts/cleanup.js kanban chat # remove specific featuresRun node scripts/cleanup.js --help for all options. Delete scripts/cleanup.js when you're done.
This project includes production-ready Dockerfiles (Dockerfile for Node.js, Dockerfile.bun for Bun) using standalone output mode. For all deployment options, see the Next.js Deployment Documentation.
Build the image:
# Node.js
docker build \
--build-arg NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxx \
-t shadcn-dashboard .
# OR Bun
docker build -f Dockerfile.bun \
--build-arg NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxx \
-t shadcn-dashboard .Run the container:
docker run -d -p 3000:3000 \
-e NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxx \
-e CLERK_SECRET_KEY=sk_live_xxxxx \
--restart unless-stopped \
--name shadcn-dashboard \
shadcn-dashboardIf you find this template helpful, please consider giving it a star β You can also buy me a coffee if you'd like!
Cheers! π₯
