Skip to content

CLI tool to setup authentication in Next.js using pluggable auth providers.

License

Notifications You must be signed in to change notification settings

debangshu919/authzey

Repository files navigation

Authzey Logo

Simplify your authentication workflow

NPM Version NPM Downloads License Tests Code Quality Check


Introduction

Authzey is a CLI tool that helps you set up authentication in your Next.js apps in minutes, not hours. Stop fighting configuration files and boilerplate—let Authzey scaffold secure authentication so you can focus on building your product.

Features

  • 🚀 Zero-config setup — Interactive prompts guide you through the entire process
  • 🔐 Multiple auth providers — Currently supports Better Auth, with more coming soon
  • 🗄️ Database integration — PostgreSQL with Drizzle ORM support
  • 🔑 OAuth providers — GitHub, Google, and Discord out of the box
  • Framework detection — Automatically detects your Next.js project configuration

Installation

# Using npx (recommended)
npx authzey

# Or install globally
npm install -g authzey
authzey

Requirements

  • Node.js >=18
  • A Next.js project (App Router or Pages Router)

Quick Start

  1. Navigate to your Next.js project directory:

    cd your-nextjs-app
  2. Run Authzey:

    npx authzey
  3. Follow the interactive prompts to:

    • Choose an authentication framework
    • Select a database (PostgreSQL or SQLite)
    • Pick an ORM (Drizzle)
    • Configure OAuth providers (GitHub, Google, Discord)
  4. Authzey will scaffold the necessary files and install dependencies for you.


Supported Technologies

Authentication Frameworks

Framework Status
Better Auth ✅ Available
Auth.js 🔜 Coming

Databases

Database Status
PostgreSQL ✅ Available
SQLite 🔜 Coming
MySQL 🔜 Coming

ORMs

ORM Status
Drizzle ✅ Available
Prisma 🔜 Coming

OAuth Providers

Provider Status
GitHub ✅ Available
Google ✅ Available
Discord ✅ Available
Microsoft 🔜 Coming
Apple 🔜 Coming

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue.

Contributing

We are actively looking for contributors, no matter your skill level or experience. To contribute, check out CONTRIBUTING.md.

Contributors


License

Authzey is licensed under the MIT License.

About

CLI tool to setup authentication in Next.js using pluggable auth providers.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published