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

create-visyadav-app

v1.0.9

Published

[![npm version](https://badge.fury.io/js/your-package-name.svg)](https://badge.fury.io/js/your-package-name) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Readme

AuthCraft - Suggests crafted authentication solutions

npm version License: MIT

A Node.js authentication boilerplate with Express, MongoDB, and optional integrations like Cloudinary and payment gateways.

Installation

To create a new project, use the following command instead of installing the package globally:

npx create-visyadav-app

Features

  • ✅ Complete authentication system (register, login, logout)
  • ✅ Email verification with nodemailer
  • ✅ Password reset functionality
  • ✅ JWT-based authentication
  • ✅ Cookie-based session management
  • ✅ Mongoose models and database connection
  • ✅ Optional integrations:
    • Cloudinary for image uploads
    • Razorpay/Stripe for payments
    • Socket.io for real-time features

Installation

Quick Start

Create a new project:

npx create-visyadav-app

Follow the interactive prompts to configure your project.

After generation:

cd your-project-name
npm install

Set up your environment variables in .env:

PORT=4000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
[email protected]
SMTP_APP_PASSWORD=your_app_password

# For Cloudinary:
CLOUDINARY_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_SECRET_KEY=your_secret_key

# For Razorpay:
RAZORPAY_KEY_ID=your_key_id
RAZORPAY_KEY_SECRET=your_key_secret

Start the development server:

npm run dev

API Endpoints

Authentication

  • POST /api/v1/auth/sign-up - User registration
  • POST /api/v1/auth/verify-email - Email verification
  • POST /api/v1/auth/sign-in - User login
  • POST /api/v1/auth/logout - User logout
  • POST /api/v1/auth/forget-password - Request password reset
  • POST /api/v1/auth/reset-password/:resetToken - Reset password
  • GET /api/v1/auth/check-auth-user - Get authenticated user data
  • GET /api/v1/auth/check-token - Check if valid token exists
  • GET /api/v1/auth/get-all-user - Get all users (admin)

Configuration

The generator creates a project with the following structure:

your-project/
├── connectDB/           # Database connection
├── controllers/         # Route controllers
├── generateToken/       # JWT token generation
├── middleware/          # Authentication middleware
├── models/              # Mongoose models
├── nodemailer/          # Email templates and sending
├── routes/              # API routes
├── utils/               # Utility functions (if Cloudinary enabled)
├── .env                 # Environment variables
├── index.js             # Main application file
└── package.json

Available Scripts

npm run start  # Start the production server
npm run dev    # Start the development server with nodemon

Dependencies

  • Express.js - Web framework
  • Mongoose - MongoDB ODM
  • jsonwebtoken - JWT authentication
  • bcryptjs - Password hashing
  • nodemailer - Email sending
  • cookie-parser - Cookie handling
  • dotenv - Environment variables
  • cors - Cross-origin resource sharing
  • (Optional) cloudinary - Image uploads
  • (Optional) razorpay/stripe - Payment processing

Contributing

Contributions are welcome! Please open an issue or submit a pull request.