A favicon of Onset

Onset

An open-source Next.js 14 starter featuring Drizzle (Postgres), NextAuth/Auth.js, and detailed instructions, making customization accessible for all skill levels.

A screenshot of OnsetVisit

Onset: Your Next.js 14 Starter with Drizzle, Auth.js, and Step-by-Step Setup

Onset is an open-source Next.js 14 starter meticulously crafted to accelerate your development workflow. It offers detailed step-by-step instructions, making it approachable for both beginners and seasoned developers, ensuring you can understand and confidently tailor it to your project's specific needs. This starter integrates a modern tech stack, including Drizzle ORM for seamless Postgres database operations and NextAuth/Auth.js for robust and flexible user authentication, providing a solid foundation for your next application.

Features:

  • Next.js 14 Integration: Built with the latest Next.js for modern, performant React applications.
  • Auth.js Implementation: Integrated for user authentication with multiple provider options.
  • Drizzle ORM for Postgres: Employs a TypeScript-first ORM for type-safe PostgreSQL database operations.
  • Vercel Platform Ready: Optimized for easy deployment and previews on Vercel.
  • Neon Serverless Postgres: Supports Neon for managed, serverless PostgreSQL.
  • Step-by-Step Instructions: Includes detailed guides for understanding and customization.
  • Bun Support: Utilizes bun for fast package management and script execution.
  • Prettier Code Formatting: Pre-configured for consistent code style with Tailwind CSS support.
  • Optimized Font Loading: Configured with next/font/google for efficient font handling.
  • Utility Helpers: Provides cn for class merging and nanoid for ID generation.
  • Auth.js Database Schema: Includes Drizzle schemas tailored for Auth.js integration.
  • Drizzle Adapter for Auth.js: Configured with @auth/drizzle-adapter for database persistence.
  • Example Authentication Flow: Features sample sign-in and protected dashboard pages.
  • GitHub OAuth Provider: Includes GitHub as a pre-configured sign-in option.
  • Environment Variable Management: Setup for secure configuration using .env.local.

Summary:

Onset is a comprehensive Next.js 14 boilerplate designed to jumpstart your projects. It combines Next.js with Drizzle ORM for PostgreSQL and NextAuth/Auth.js for authentication, all supported by detailed setup guides. This starter aims to provide a clear, customizable, and modern foundation, enabling developers to quickly build and deploy applications with confidence, leveraging tools like Vercel and Neon for an efficient development and deployment pipeline.

Distribution:
opensource
GitHub:
61 Stars
2 Forks
Share:

 

  
 

Similar to Onset:

 

  
  

 

  
  

 

  
  
Onset: Onset: Next.js 14 starter with Drizzle, Auth.js, and guided setup. – Awesome-Shadcn/ui