TanStack Start Dashboard Template with shadcn/ui & TailwindCSS

A product-ready TanStack Start dashboard starter template with shadcn/ui, TailwindCSS, authentication, charts, and data tables.

This is a modern dashboard starter template that uses TanStack Start as its full-stack React framework, paired with TypeScript for type safety and shadcn/ui for component design.

It includes pre-configured authentication setup with Better Auth, advanced data tables powered by TanStack React Table, and interactive charts using Recharts.

The template is great for applications such as analytics platforms, administrative backends, or any system that needs to present data and manage user inputs through a structured, component-based user interface.

Features

๐Ÿš€ Built on TanStack Start for modern full-stack development.

๐ŸŽจ Shadcn/ui component library for consistent and accessible design.

๐Ÿ“ฑ Responsive design with Tailwind CSS for mobile-first development.

๐Ÿ›ก๏ธ TypeScript configuration with strict type checking for code reliability.

๐Ÿ” Better Auth integration ready for authentication implementation.

๐Ÿ“Š TanStack React Table with server-side pagination, filtering, and sorting.

๐Ÿ“ˆ Recharts integration for interactive data visualization and analytics.

๐ŸŽญ Dark and light theme support with theme persistence.

๐Ÿ“‹ Multiple form solutions using TanStack React Form and React Hook Form.

๐Ÿ”„ TanStack React Query for data fetching and caching.

๐ŸŽฏ File-based routing with type-safe navigation.

๐Ÿงช ESLint and Prettier configuration for code quality and consistency.

Preview

dashboard-starter-template-tanstack

Use Cases

  • Admin dashboards for SaaS applications requiring user management and analytics displays.
  • Business intelligence platforms that need complex data tables and chart visualizations.
  • E-commerce management systems with product catalogs and order tracking interfaces.
  • Internal company tools for project management, HR systems, or inventory management.
  • Customer portals with account settings, billing information, and usage analytics.

How to Use It

1. Download the project files to your local machine by cloning the GitHub repository.

git clone https://github.com/kiranism/tanstack-start-dashboard.git

2. Navigate into the newly created project directory and install all the necessary libraries and packages defined in the package.json file.

cd tanstack-start-dashboard
pnpm install

3. Start the local development server. The application will now be running at http://localhost:3001.

pnpm run dev

4. Config & customize your application:

  • Configure your authentication system by examining the Better Auth setup in the template. The authentication configuration files are located in the lib directory. You can customize the authentication providers, user schema, and session management according to your project requirements.
  • Customize the dashboard layout by modifying the components in the components directory. The app-sidebar.tsx file controls the navigation menu, while user-nav.tsx handles the user dropdown interface. The template uses a feature-based organization structure, so related components are grouped together in the features directory.
  • Add new pages by creating files in the routes directory. TanStack Start uses file-based routing, so creating a new file automatically generates a corresponding route. Each route file can export React components and handle both client-side and server-side logic.
  • Modify the data tables by working with the TanStack React Table implementation in the products feature. The table supports server-side operations, including pagination, sorting, and filtering. You can extend the table functionality by adding new columns, custom cell renderers, or additional filtering options.
  • Integrate your API endpoints by updating the data layer files in the data directory. The template includes examples of how to structure API calls using TanStack React Query for caching and error handling.

5. When you are ready to deploy your application, you must create an optimized production build.

pnpm run build

6. Start the production server to serve the optimized application.

pnpm run start

Related Resources

FAQs

Q: Does this template support database integration out of the box?
A: The template provides the structure for database integration through the data layer, but you need to configure your preferred database solution and ORM according to your project requirements.

Q: Can I add more authentication providers beyond the Better Auth setup?
A: Yes, Better Auth supports multiple authentication providers, including OAuth, email/password, and social logins. You can configure additional providers in the authentication configuration files.

Q: Is this template suitable for large-scale enterprise applications?
A: The template is designed with scalability in mind using feature-based organization and TypeScript for maintainability, making it suitable for enterprise applications with proper architecture planning.

Q: How do I customize the theme colors and design system?
A: You can customize the theme by modifying the Tailwind CSS configuration and updating the CSS custom properties in the styles directory to match your brand colors and design preferences.

Kiranism

Kiranism

I Write Code as a Javascript developer. Specialized in Reactjs, Nextjs.

Leave a Reply

Your email address will not be published. Required fields are marked *