npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-next-auth-starter

v2.0.0

Published

A CLI to bootstrap a Next.js project with Drizzle, Neon DB, and NextAuth.js pre-configured.

Downloads

110

Readme


Create Next Auth Starter

A command-line tool to bootstrap a new Next.js project with a full authentication setup in seconds. It comes pre-configured with NextAuth.js, Drizzle ORM, and Neon Serverless Postgres.


Usage

Getting started is as simple as running one command. This will create a new directory, scaffold your project, and provide you with the next steps.

npx create-next-auth-starter my-app

That's it! The CLI will handle the rest.

✨ Features

  • Authentication Ready: Secure, session-based authentication powered by NextAuth.js (v4).
  • Modern Tech Stack: Built with the Next.js 14 App Router.
  • Type-Safe Database ORM: Includes Drizzle ORM for a lightweight, fast, and type-safe SQL experience.
  • Serverless Database: Ready to connect to Neon, a modern serverless PostgreSQL platform.
  • OAuth Providers: Pre-configured for Google and GitHub social logins.
  • Styling: Tailwind CSS for a utility-first CSS workflow.
  • Developer Experience: Written in TypeScript for robust, scalable code.

🚀 Tech Stack

| Category | Technology | | ---------------- | ------------------------------------------------------ | | Framework | Next.js | | Authentication| NextAuth.js | | ORM | Drizzle | | Database | Neon (Serverless Postgres) | | Styling | Tailwind CSS | | Language | TypeScript |

⚙️ Configuration (After Installation)

Once the CLI has created your project, follow these steps to get your development server running:

1. Navigate to Your Project

cd my-app

2. Set Up Environment Variables

Create a .env file in the root of your new project by copying the example file:

cp .env.example .env

Now, open the .env file and fill in the required values:

# Database (Get this from your Neon project dashboard)
DATABASE_URL="postgres://user:password@host/dbname"

# GitHub OAuth
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

# Google OAuth
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# NextAuth.js
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET= # Generate a secret using: `openssl rand -hex 32`

3. Install Dependencies

npm install

4. Push Database Schema

This project uses Drizzle ORM. To push your schema (defined in the /drizzle folder) to your Neon database, run the following command:

npm run db:push

Note: You may need to add this script to your package.json if it doesn't exist: "db:push": "drizzle-kit push:pg"

5. Start the Development Server

npm run dev

Open http://localhost:3000 in your browser to see your application running.

Contributing

Contributions are welcome! If you have a suggestion or find a bug, please fork the repo and create a pull request or open an issue.

License

This project is distributed under the MIT License. See LICENSE for more information.

Future plans for updates

  1. Will try to implement Resend email service to handle email verifications.
  2. will try to upgrade the ui