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-supaauth

v0.1.18

Published

A CLI to create Next.js projects with Supabase authentication

Downloads

4

Readme

create-next-supaauth

A modern, type-safe authentication boilerplate built with Next.js 14 and Supabase.

Next.js Supabase TypeScript Tailwind CSS npm version

Ready to try it? Deploy now in seconds!

Deploy with Vercel Deploy to Netlify

✨ Features

  • 🔐 Complete Server-Side authentication system with email/password
  • 🚀 Server-side rendering with Next.js 14
  • 🎨 Modern UI with Tailwind CSS
  • 📱 Fully responsive design
  • 🔒 Protected dashboard routes
  • 🌐 Password reset with email verification
  • 💪 Type-safe code with TypeScript
  • ⚡ Powered by Supabase

🚀 Quick Start

Prerequisites

  • Node.js 16.14.0 or higher

Installation

  1. Create a new project with one command:

    npx create-next-supaauth my-app
  2. Navigate to your project:

    cd my-app
  3. Update your environment variables in .env.local with your Supabase credentials:

    NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
  4. Start the development server:

    npm run dev

Visit http://localhost:3000 to see your app in action! 🎉

Deploy to Vercel

You can deploy this project directly to Vercel with the following steps:

  1. Create a Supabase project at https://supabase.com if you haven't already.

  2. Get your Supabase URL and anon key from your Supabase project dashboard.

  3. Click the "Deploy to Vercel" button at the top of this README or use the button below.

  4. In the Vercel deployment form, enter your Supabase credentials:

    • NEXT_PUBLIC_SUPABASE_URL: Your Supabase project URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase project anon/public key
  5. Click "Deploy" and wait for the deployment to complete.

Deploy to Netlify

You can also deploy this project directly to Netlify with these simple steps:

  1. Create a Supabase project at https://supabase.com if you haven't already.

  2. Get your Supabase URL and anon key from your Supabase project dashboard.

  3. Click the "Deploy to Netlify" button at the top of this README or use the button below.

  4. In the Netlify deployment form, enter your Supabase credentials:

    • NEXT_PUBLIC_SUPABASE_URL: Your Supabase project URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase project anon/public key
  5. Click "Save & Deploy" and wait for the deployment to complete.

Your application will be deployed and accessible through a Vercel or Netlify URL. You can then configure custom domains and other settings in your respective dashboard.

Environment Variables

This project requires the following environment variables to function properly:

| Variable | Description | Where to Find | |----------|-------------|--------------| | NEXT_PUBLIC_SUPABASE_URL | The URL of your Supabase project | Supabase Dashboard → Project Settings → API → Project URL | | NEXT_PUBLIC_SUPABASE_ANON_KEY | The anonymous key for your Supabase project | Supabase Dashboard → Project Settings → API → Project API Keys → anon/public |

These variables are necessary for the authentication system to communicate with your Supabase backend.

📖 For Beginners

SupaAuth is designed to be beginner-friendly while maintaining professional standards. Here's what you'll learn:

Key Learning Points

  • 📝 Form handling and state management
  • 🔑 Authentication flow implementation
  • 🛡️ Route protection strategies
  • 🌍 Server-side vs. client-side rendering
  • 🎨 Modern UI development with Tailwind CSS

Project Structure

src/
├── app/                    # Pages and layouts
│   ├── auth/              # Authentication pages (signin, signup, reset-password)
│   ├── dashboard/         # Protected dashboard
│   └── layout.tsx         # Root layout
├── components/            # Reusable UI components
├── contexts/              # React Context providers
├── lib/                   # Utility functions
├── styles/               # Global styles
└── types/                # TypeScript definitions

🔧 For Advanced Developers

Performance Features

  • ⚡ Pre-configured Supabase authentication with SSR
  • 🔄 Optimized data fetching strategies
  • 🎯 Type-safe API calls

Customization

  1. UI Customization

    • Modify Tailwind styles in src/styles/globals.css
    • Update components in src/components/layout/
  2. Route Protection

    • Extend protected routes in src/middleware.ts
  3. Feature Extension

    • Build upon the dashboard in src/app/dashboard/page.tsx

🤝 Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

💬 Support

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.