Introducing a new way to review your PRs.

Read the announcement

arhamkhnz / next-shadcn-admin-dashboard

Modern Admin Dashboard Template built with Shadcn UI and Next.js 16

View on GitHub

22 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Knowledge Base

Orientation

This repository is a Next.js admin-dashboard application built around route groups for a public/external landing experience and authenticated main application experiences.

Dashboard routes provide focused operational views, with reusable layout, navigation, UI primitives, preferences, and configuration services shared across the application.

Client-side preference state governs theme and layout behavior. Route composition and navigation definitions provide the main structural boundaries between experiences.

Architecture

flowchart TD
  App[Next.js app]
  External[External route group]
  Main[Main route group]
  Shell[Global layout and styles]
  Dashboard[Dashboard layout]
  Auth[Authentication entrypoints]
  Dashboards[Dashboard experiences]
  Workspaces[Collaboration workspaces]
  Preferences[Personalization system]
  Services[Shared application services]
  UI[UI foundation]
  Navigation[Sidebar navigation]

  App --> Shell
  App --> External
  App --> Main
  Main --> Dashboard
  Main --> Auth
  Main --> Workspaces
  Dashboard --> Dashboards
  Dashboard --> Navigation
  Dashboards --> UI
  Workspaces --> UI
  Dashboard --> Preferences
  Preferences --> Services
  Navigation --> Services
  UI --> Services

Glossary

  • External route group: The route-group boundary used for the landing experience outside the main application shell.
  • Main route group: The application route-group boundary containing dashboard, authentication, and standalone workspace destinations.
  • Dashboard experiences: The family of administrative and operational routes rendered within the dashboard layout.
  • Preferences store: Client-side state and persistence machinery for theme and layout selections.
  • Sidebar navigation definitions: Shared navigation metadata used to expose application destinations in the dashboard sidebar.

Invariants

  • External and main experiences remain separated through Next.js route groups under src/app/(external)/** and src/app/(main)/**.
  • Dashboard destinations use the shared dashboard layout and navigation composition under src/app/(main)/dashboard/**.
  • Sidebar-visible routes are represented in src/…/sidebar-items.ts and rendered through the dashboard sidebar components.
  • Theme and layout choices are managed through the personalization system rather than being independently owned by individual dashboard pages.
  • Reusable visual building blocks belong in shared UI/component layers (src/components/** and UI primitive paths), not duplicated per route.

Routing table