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 🙏

© 2026 – Pkg Stats / Ryan Hefner

complete-auth-system

v1.0.1

Published

A powerful CLI tool to set up a complete authentication system for MERN stack projects, featuring user registration, email verification, 2FA, OTP-based login, password authentication, and advanced security measures like account lock after failed attempts.

Readme

Complete Auth System

A simple, ready-to-use authentication system for full-stack developers.

Overview

complete-auth-system saves you time by providing a pre-built authentication system with all essential features. No need to rebuild authentication from scratch for every project - just install, configure, and go!

Key Features

  • ✓ User Registration
  • ✓ Email Verification
  • ✓ 2-Factor Authentication
  • ✓ Login with OTP
  • ✓ Login with Password
  • ✓ Login with OTP and Password Both
  • ✓ Forget / Reset Password
  • ✓ Profile Management
  • ✓ Token Management
  • And Many more...
  • You Just need to change some things according to your need and you are good to go.

Installation

# Basic installation
npx complete-auth-system <folder_name>

# Custom frontend/backend folder names
npx complete-auth-system <folder_name> --frontend <frontend_folder_name> --backend <backend_folder_name>

Setup

Backend Configuration

Create a .env file in the backend directory with the following variables:

PORT=7000
MONGO_URI=mongodb+srv://username:[email protected]/complete-auth
FRONTEND_URL=http://localhost:5173

EMAIL_USER="[email protected]"
EMAIL_PASS="your-app-password"  # Generate app password from your email provider

NODE_ENV=development
JWT_SECRET=your_jwt_secret
JWT_REFRESH_SECRET=your_jwt_refresh_secret

CLOUDINARY_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret

Frontend Configuration

Create a .env file in the frontend directory:

VITE_API_BACKEND_API_URL=http://localhost:7000/api/v1
NODE_ENV=development

Project Structure

Frontend

src/
  ├── components/    # UI components
  ├── pages/         # Application pages
  ├── redux/         # State management
  ├── lib/           # Utility libraries
  ├── assets/        # Static assets
  └── App.jsx        # Main application component

Backend

├── config/          # Configuration files
├── controllers/     # Request handlers
├── middleware/      # Custom middleware
├── models/          # Database models
├── routes/          # API routes
├── services/        # Business logic
├── utils/           # Helper functions
├── uploads/         # File uploads directory
└── server.js        # Entry point

Getting Started

  1. Install the package using the npx command
  2. Configure environment variables
  3. Start the backend: cd <folder_name>/backend && npm run dev
  4. Start the frontend: cd <folder_name>/frontend && npm run dev

Note

This package provides a complete authentication system that you can customize to suit your project needs. The email verification feature requires you to generate an app password from your email provider.