Decent Nextjs Starter Template
A Next.js starter template featuring shadcn/ui, Drizzle/Turso, Auth.js, and SST (Ion) pre-configured for rapid project initiation and development.

Comprehensive Next.js Starter Template for Rapid Development
This Next.js starter template provides a robust foundation for new projects, integrating essential tools like shadcn/ui for components, Drizzle ORM with Turso for database management, Auth.js for authentication, and SST (Ion) for deployment. It aims to significantly reduce setup time, allowing developers to concentrate on building core application features. Includes sensible defaults, common UI patterns, and useful helpers to streamline the development process from the outset, ensuring a solid and extensible base.
Features:
- Next.js Foundation: Pre-configured with App Router, Tailwind CSS, TypeScript, and ESLint for a modern development experience.
- shadcn/ui Integration: Offers a suite of accessible and customizable UI components, with many common ones pre-installed.
- Drizzle ORM & Turso Database: Type-safe database ORM set up for SQLite via Turso, supporting local and production environments.
- Auth.js Implementation: Robust authentication library integrated using the Drizzle adapter for user management.
- SST (Ion) Deployment Ready: Includes configuration for the SST framework, simplifying deployments to AWS or Cloudflare.
- Form Handling with Validation: Leverages React Hook Form and Zod for performant, flexible, and validated forms.
- TanStack Query for Data Fetching: Implements advanced data fetching patterns, including SSR pre-fetching and optimistic updates.
- Type-Safe Environment Variables: Utilizes T3 Env to ensure type safety for all environment variables.
- Sentry Error Monitoring: Integrated Sentry for comprehensive error tracking and performance monitoring.
- Advanced Data Tables: Features Tanstack Table for building powerful, headless UI for tables, including drag & drop row reordering.
- Drag & Drop Toolkit: Incorporates dnd-kit for building modular and accessible drag & drop interfaces.
- Custom Hooks & Reusable Components: Provides useful custom hooks like
useDialog
and reusable components such asConfirmationDialog
andDataTable
. - Role-Based Access Control (RBAC): Includes basic helpers for RBAC and admin-protected server actions.
- On-Demand ISR Revalidation: Offers an API endpoint to trigger Incremental Static Regeneration for dynamic content updates.
- Google Analytics Setup: Pre-configured Google Analytics integration using @next/third-parties for web analytics.
Summary:
This starter template for Next.js bundles a curated selection of modern development tools, including UI components (shadcn/ui), database management (Drizzle/Turso), authentication (Auth.js), and deployment solutions (SST). It's designed to fast-track the initial setup phase of new projects, offering pre-configured defaults, common patterns, and helper utilities. Developers can leverage this foundation to build feature-rich applications more efficiently, focusing on unique functionality rather than boilerplate configuration.

Similar to Decent Nextjs Starter Template:


