base on Admin Dashboard Starter Template with Next.js 16 and Shadcn UI <p align="center"> <h1 align="center">Admin Dashboard Starter Template with Next.js &amp; Shadcn UI</h1> <div align="center">Built with the Next.js 16 App Router, Tailwind CSS &amp; Shadcn UI components</div> <br /> <div align="center"> <a href="https://dub.sh/shadcn-dashboard"><strong>View Demo</strong></a> </div> <br /> <div align="center"> <img src="/public/shadcn-dashboard.png" alt="Shadcn Dashboard Cover" style="max-width: 100%; border-radius: 8px;" /> </div> ## Overview This is an **admin dashboard starter template** built with **Next.js 16, Shadcn UI, 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**. ### Tech Stack This template uses the following stack: - Framework - [Next.js 16](https://nextjs.org/16) - Language - [TypeScript](https://www.typescriptlang.org) - Auth - [Clerk](https://go.clerk.com/ILdYhn7) - Error tracking - [Sentry](https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy26q2-nextjs&utm_content=github-banner-project-tryfree) - Styling - [Tailwind CSS v4](https://tailwindcss.com) - Components - [Shadcn-ui](https://ui.shadcn.com) - Schema Validations - [Zod](https://zod.dev) - State Management - [Zustand](https://zustand-demo.pmnd.rs) - Search params state manager - [Nuqs](https://nuqs.47ng.com/) - Tables - [Tanstack Data Tables](https://ui.shadcn.com/docs/components/data-table) • [Dice table](https://www.diceui.com/docs/components/data-table) - Forms - [React Hook Form](https://ui.shadcn.com/docs/components/form) - Command+k interface - [kbar](https://kbar.vercel.app/) - Linting - [ESLint](https://eslint.org) - Pre-commit Hooks - [Husky](https://typicode.github.io/husky/) - Formatting - [Prettier](https://prettier.io) _If you are looking for a Tanstack start dashboard template, here is the [repo](https://git.new/tanstack-start-dashboard)._ ## Features - 🧱 Pre-built **admin dashboard layout** (sidebar, header, content area) - šŸ“Š **Analytics overview** page with cards and charts - šŸ“‹ **Data tables** with server-side 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 - 🧠 Feature-based folder structure for scalable projects - āš™ļø Ready for **SaaS dashboards**, internal tools, and client admin panels ## Use Cases 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 | Pages | Specifications | | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Signup / Signin](https://go.clerk.com/ILdYhn7) | 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](https://shadcn-dashboard.kiranism.dev/dashboard) | Cards with Recharts graphs for analytics. Parallel routes in the overview sections feature independent loading, error handling, and isolated component rendering. | | [Product List (Table)](https://shadcn-dashboard.kiranism.dev/dashboard/product) | Tanstack tables with server side searching, filter, pagination by Nuqs which is a Type-safe search params state manager in nextjs | | [Create Product Form](https://shadcn-dashboard.kiranism.dev/dashboard/product/new) | A Product Form with shadcn form (react-hook-form + zod). | | [Profile](https://shadcn-dashboard.kiranism.dev/dashboard/profile) | Clerk's full-featured account management UI that allows users to manage their profile and security settings | | [Kanban Board](https://shadcn-dashboard.kiranism.dev/dashboard/kanban) | A Drag n Drop task management board with dnd-kit and zustand to persist state locally. | | [Workspaces](https://shadcn-dashboard.kiranism.dev/dashboard/workspaces) | Organization management page using Clerk's `<OrganizationList />` component. Users can view, create, and switch between organizations/workspaces. | | [Team Management](https://shadcn-dashboard.kiranism.dev/dashboard/workspaces/team) | 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](https://shadcn-dashboard.kiranism.dev/dashboard/billing) | Billing management page using Clerk's `<PricingTable />` component. Organizations can view available plans, subscribe, and manage subscriptions. Requires an active organization. | | [Exclusive Page](https://shadcn-dashboard.kiranism.dev/dashboard/exclusive) | 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](https://shadcn-dashboard.kiranism.dev/dashboard/notfound) | Not Found Page Added in the root level | | [Global Error](https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy26q2-nextjs&utm_content=github-banner-project-tryfree) | 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. | ## Feature based organization ```plaintext src/ ā”œā”€ā”€ app/ # Next.js App Router directory │ ā”œā”€ā”€ (auth)/ # Auth route group │ │ ā”œā”€ā”€ (signin)/ │ ā”œā”€ā”€ (dashboard)/ # Dashboard route group │ │ ā”œā”€ā”€ layout.tsx │ │ ā”œā”€ā”€ loading.tsx │ │ └── page.tsx │ └── api/ # API routes │ ā”œā”€ā”€ components/ # Shared components │ ā”œā”€ā”€ ui/ # UI components (buttons, inputs, etc.) │ └── layout/ # Layout components (header, sidebar, etc.) │ ā”œā”€ā”€ features/ # Feature-based modules │ ā”œā”€ā”€ feature/ │ │ ā”œā”€ā”€ components/ # Feature-specific components │ │ ā”œā”€ā”€ actions/ # Server actions │ │ ā”œā”€ā”€ schemas/ # Form validation schemas │ │ └── utils/ # Feature-specific utilities │ │ ā”œā”€ā”€ lib/ # Core utilities and configurations │ ā”œā”€ā”€ auth/ # Auth configuration │ ā”œā”€ā”€ db/ # Database utilities │ └── utils/ # Shared utilities │ ā”œā”€ā”€ hooks/ # Custom hooks │ └── use-debounce.ts │ ā”œā”€ā”€ stores/ # Zustand stores │ └── dashboard-store.ts │ └── types/ # TypeScript types └── index.ts ``` ## Getting Started > [!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.local` file by copying the example environment file: `cp env.example.txt .env.local` - Add the required environment variables to the `.env.local` file. - `bun run dev` ##### Environment Configuration Setup 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. ##### Clerk Setup For detailed instructions on configuring Clerk authentication (including organizations/workspaces/teams), please refer to [clerk_setup.md](./docs/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. Cheers! šŸ„‚ <!-- SEO keywords: nextjs admin dashboard, nextjs dashboard template, shadcn ui dashboard, admin dashboard starter, dashboard ui template, nextjs shadcn admin panel, react admin dashboard, tailwind css admin dashboard --> ## Star History <a href="https://www.star-history.com/#Kiranism/next-shadcn-dashboard-starter&type=date&legend=top-left"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Kiranism/next-shadcn-dashboard-starter&type=date&theme=dark&legend=top-left" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Kiranism/next-shadcn-dashboard-starter&type=date&legend=top-left" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Kiranism/next-shadcn-dashboard-starter&type=date&legend=top-left" /> </picture> </a> ", Assign "at most 3 tags" to the expected json: {"id":"8985","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"