Nextjs Sessionauth Template

screenshot of Nextjs Sessionauth Template
nextjs
react
tailwind
drizzle-orm

Next.js starter template featuring session-based auth, drizzle-orm, tailwind, shadcn ui, stripe, react-email etc.

Overview:

The Next.js Auth Starter Template provides a flexible alternative to NextAuth.js for implementing authentication in Next.js projects. It is designed to handle Email+Password authentication efficiently, offering more customization options without compromising security. This template serves as a foundation for creating Next.js applications with Lucia authentication.

Features:

  • Authentication: Support for Credential and OAuth authentication.
  • Authorization: Easily manage public and protected routes within the app directory.
  • Email Verification: Verify user identities through email.
  • Password Reset: Streamline password resets by sending email password reset links.
  • Lucia + tRPC: Enables granting access to sessions and user information through tRPC procedures.
  • E2E tests: Comprehensive end-to-end testing to catch issues before users do.
  • Stripe Payment: Seamless setup for user subscriptions with Stripe.
  • Email template with react-email: Customize email templates using React.
  • PostgreSQL Database: Utilize a PostgreSQL database set up using Drizzle for enhanced performance and type safety.
  • Database Migration: Included migration script to extend the database schema according to project needs.
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

tailwind
Tailwind

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

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.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

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.

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.