Decent Nextjs Starter Template

screenshot of Decent Nextjs Starter Template
nextjs
react
tanstack
tailwind
cmdk
drizzle-orm

An okay template to start a new Next.js project with shadcn/ui, Drizzle/Turso, Auth.js and SST (Ion) already set up.

Overview

The Decent Next.js Starter Template is a powerful tool designed for developers looking to kickstart their Next.js projects with minimal effort. With a strong emphasis on a streamlined setup process, this template provides defaults for UI components, layout, and database configurations, enabling users to focus on development rather than boilerplate code. This template is in its early stages but promises to evolve, making it a great choice for both newcomers and seasoned developers alike.

Whether you're building a simple application or more complex software, the Decent Next.js Starter Template aims to provide the necessary components and features to get you on your way. From user authentication to a robust database setup, this starter template is equipped to help you navigate the challenges of web development with ease.

Features

  • Quick Setup: Clone the repository and install dependencies effortlessly with minimal commands, allowing for speedy project initialization.

  • Database Configuration: Seamlessly integrated with Turso for both local development and production setups, with migration and seeding scripts available.

  • Integrated Authentication: Simplifies the setup of user authentication using Auth.js with support for Google Provider, ensuring secure access control.

  • UI Components Ready: Comes pre-installed with accessible UI components like Alert, Button, and Card, designed with shadcn/ui to enhance your application's user interface.

  • TypeScript Compatibility: Built with TypeScript support for static type checking, ensuring code robustness and reducing runtime errors during development.

  • Extensible Forms Handling: Powered by React Hook Form for efficient form management, and includes Zod for schema validation, making form handling both performant and straightforward.

  • Easy Deployment: Supports deployment to AWS, Cloudflare, or Vercel with user-friendly commands for staging and production environments.

  • Community Support: Enhanced by various VS Code extensions aimed at streamlining development processes, further boosting productivity.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tanstack
TanStack

TanStack is a collection of high-quality, framework-agnostic libraries including TanStack Query for data fetching, TanStack Router for routing, TanStack Table for tables, and more. These tools provide powerful, type-safe solutions for common web development challenges.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

cmdk
cmdk

cmdk is a fast, composable command menu component for React. It provides the foundation for building command palettes, search interfaces, and keyboard-navigable menus similar to those found in applications like VS Code, Linear, and Raycast.

drizzle-orm
Drizzle ORM

Drizzle ORM is a TypeScript ORM for SQL databases designed with maximum type safety in mind. It comes with a drizzle-kit CLI companion for automatic SQL migrations generation. Drizzle ORM is meant to be a library, not a framework. It stays as an opt-in solution all the time at any levels.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

framer-motion
Framer Motion

Alpine.js is a lightweight JavaScript framework that simplifies the process of creating dynamic, reactive user interfaces on the web. It uses a declarative syntax that offers a higher level of abstraction compared to vanilla JavaScript, while being more performant and easier to use than jQuery.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

Zustand

Zustand is a lightweight state management library for React that provides a simple and intuitive API for managing state in your application. It allows developers to easily create and manage global state, and provides a powerful set of tools for optimizing performance and improving developer productivity. Zustand is designed to be easy to use and easy to learn, making it a popular choice for developers of all skill levels.

jotai
Jotai

Jotai is a primitive and flexible state management library for React. It takes a bottom-up approach with an atomic model inspired by Recoil, offering a minimal API that scales from simple to complex state management needs without boilerplate.

react-hook-form
React Hook Form

React Hook Form is a performant, flexible, and extensible form library for React with easy validation. It reduces re-renders and improves performance by using uncontrolled components and native HTML validation, making form handling simple and efficient.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.