Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

next-shadcn-dashboard-starter

> 前端框架
Open source

Free, open source admin dashboard starter built with Next.js 16, shadcn/ui, Tailwind CSS, and TypeScript.

6.8K stars0 likes2 views
WebsiteGitHub

About

Free, open source admin dashboard starter built with Next.js 16, shadcn/ui, Tailwind CSS, and TypeScript.

Admin Dashboard Template with Next.js & Shadcn UI



Overview

A free, open source (MIT) admin dashboard starter built with Next.js 16, shadcn/ui on Base UI primitives, TypeScript, and Tailwind CSS v4.

Every feature is a working, production-ready implementation, not static demo UI. Tables search, filter, sort, and paginate for real. Forms validate and mutate with cache invalidation. Auth, organizations, and billing function end-to-end.

Clone it, strip what you don't need with the built-in cleanup script, and start building on patterns you'd write yourself. It works well as a base for SaaS apps, internal tools, and admin panels.

Why This Template

Most dashboard templates are static demo boilerplates: screens that look finished but need rebuilding the moment you wire in real data. This starter takes the opposite approach:

  • Everything actually works. Data tables run end-to-end: server prefetch, client-side React Query cache, and URL-synced search, filtering, sorting, and pagination via nuqs. Forms are built from reusable, composable fields with Zod validation, including advanced patterns like multi-step and dialog/sheet forms, with real create/update mutations and cache invalidation on success.
  • Industry-standard implementations. The data layer follows the official TanStack Query SSR pattern (server prefetch + HydrationBoundary + useSuspenseQuery), typed end to end, organized in a feature-based structure with a clean API layer per feature. These are patterns you copy into production code as-is, not mockups you rebuild from scratch.
  • Minimal by design. Deliberately lean, with no bloated boilerplate, so you spend your time tweaking it to your use case, not deleting someone else's code. The built-in cleanup script strips any feature you don't need in under a minute.

Tech Stack

  • Framework - Next.js 16
  • Language - TypeScript
  • Auth - Clerk
  • Error tracking - Sentry
  • Styling - Tailwind CSS v4
  • Components - shadcn/ui on Base UI primitives
  • Charts - Recharts • Evil Charts
  • Schema validation - Zod
  • Data fetching - TanStack React Query
  • State management - Zustand
  • Search param state - Nuqs
  • Tables - TanStack Data Tables • Dice Table
  • Forms - TanStack Form + Zod
  • Command+K interface - kbar
  • Linter / Formatter - OxLint • Oxfmt
  • Pre-commit hooks - Husky
  • Themes - tweakcn

Looking for a TanStack Start version? Here's the repo.

Features

  • Pre-built dashboard layout with sidebar, header, and content area
  • Analytics overview page with cards and charts
  • Data tables with React Query prefetch, client-side cache, search, filter, and pagination
  • Authentication and user management through Clerk
  • Multi-tenant workspaces using Clerk Organizations (create, switch, manage teams)
  • Billing and subscriptions via Clerk Billing for B2B, with plan management and feature gating
  • Client-side RBAC navigation that filters menu items by organization, permissions, and roles
  • Infobar component for tips, status messages, or contextual notes on any page
  • shadcn/ui components on Base UI primitives, styled with Tailwind CSS
  • Six-plus themes with a theme switcher
  • Feature-based folder structure
  • A starting point for SaaS dashboards, internal tools, and client admin panels

Use Cases

A few things you can build with it:

  • SaaS admin dashboards
  • Internal tools and operations panels
  • Analytics dashboards
  • Client project admin panels
  • A boilerplate for new Next.js shadcn projects

Pages

Page Notes
Signup / Signin Auth handled by Clerk, with passwordless sign-in, social logins, and enterprise SSO.
Dashboard Overview Cards and Recharts graphs. Parallel routes give each section its own loading and error state.
Product List (Table) TanStack Table plus React Query (server prefetch, client cache) with nuqs URL state for search, filter, and pagination. shallow: true keeps interactions on the client.
Create Product Form TanStack Form and Zod with useMutation for create and update. Cache is invalidated on success.
Users (Table) Same setup as Products: React Query with nuqs, server prefetch, and client-side pagination and filtering.
React Query Demo A Pokemon API example showing the server prefetch, HydrationBoundary, and useSuspenseQuery pattern with client-side cache.
Profile Clerk's account management UI for profile and security settings.
Kanban Board Drag-and-drop task board built with dnd-kit and Zustand. Column sorting, priority badges, assignees, and due dates.
Chat Messaging UI with a conversation list, message bubbles, quick replies, attachments, and an auto-reply demo. Multi-panel layout that works on mobile.
AI Chat Scripted AI chat that streams a predefined conversation through the real useChat lifecycle — no model, API route, or key. Built with the shadcn chat components (MessageScroller, Bubble, Marker).
Notifications Notification center with a header badge, popover preview, and a full page with All / Unread / Read tabs. Includes mark-as-read and mark-all-as-read.
Workspaces Organization management using Clerk's <OrganizationList />. View, create, and switch between organizations.
Team Management Team management using Clerk's <OrganizationProfile />. Manage members, roles, permissions, security, and org details. Needs an active organization.
Billing & Plans Billing page using Clerk's <PricingTable />. View plans, subscribe, and manage subscriptions. Needs an active organization.
Exclusive Page Plan-based access control with Clerk's <Protect>. Only available to organizations on the Pro plan, with a fallback UI for everyone else.
Not Found A root-level not-found page.
Global Error A shared error page wired to Sentry for logging, reports, and session replay.

Folder Structure

…

Getting Started

[!NOTE] This starter uses Next.js 16 (App Router) with React 19 and shadcn/ui. To run it locally:

Clone the repo:

bash
git clone https://github.com/Kiranism/next-shadcn-dashboard-starter.git
  • bun install
  • Copy the example env file: cp env.example.txt .env.local
  • Fill in the required variables in .env.local
  • bun run dev
Environment variables

See env.example.txt for the variables you need. They cover authentication and error tracking.

Clerk setup

For setting up Clerk auth (including organizations, workspaces, and teams), see clerk_setup.md.

The app should now be running at http://localhost:3000.

[!WARNING] After cloning or forking, be careful when pulling the latest changes. Updates can cause merge conflicts.


Cleanup Script: Start Minimal in 60 Seconds

Most starters make you hand-delete demo pages and rip out dependencies. This one ships with a cleanup script that removes the optional features you don't need (folders, files, dependencies, docs, and env entries), leaving a minimal base to build on. Run --list to see what's removable:

bash
bun run cleanup --interact

Issues· 7 open

View all issuesOpen on GitHub
  • #48

    sub-menu when the slider navbar is closed

    discussionUpdated Aug 15, 2026
  • #84

    Architecture

    Updated Feb 28, 2025
  • #77

    How to deploy your project on Cloudflare?

    Updated Jan 17, 2025
  • #62

    Provide a Dockerfile

    help wantedUpdated Jan 8, 2025

> Tags

TypeScriptadmin-dashboardadmin-paneladmin-templateclerk

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架