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

hevn-nest-cli

v0.1.1

Published

My awesome NestJS CLI scaffold tool

Readme

Description

Nest framework TypeScript starter repository.

Prerequisites

# Required
Node.js (>= 20.x)
MySQL (>= 5.0)
pnpm (>= 8.x)

Environment Setup

  1. Create a .env file in the root directory with the following variables:
# Database
DATABASE_URL="mysql://user:password@localhost:3306/your_database"

# App
PORT=3000
NODE_ENV=development

# JWT (if using authentication)
JWT_SECRET=your_jwt_secret
JWT_EXPIRES_IN=24h

Project setup

$ pnpm install

Database Setup and Prisma

# Generate Prisma Client
$ npx prisma generate

# Create a new migration
$ npx prisma migrate dev --name init

# Reset database (careful in production!)
$ npx prisma migrate reset

# Open Prisma Studio
$ npx prisma studio

# synchronize database model
$ npx prisma db push

# Initialized data
$ npx prisma db seed

Prisma Schema Location

The Prisma schema file is located at ./prisma/schema.prisma

Database Migrations

All migrations are stored in ./prisma/migrations

Compile and run the project

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Deployment

When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.

If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:

$ npm install -g mau
$ mau deploy

With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.

Resources

Check out a few resources that may come in handy when working with NestJS:

  • Visit the NestJS Documentation to learn more about the framework.
  • For questions and support, please visit our Discord channel.
  • To dive deeper and get more hands-on experience, check out our official video courses.
  • Deploy your application to AWS with the help of NestJS Mau in just a few clicks.
  • Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
  • Need help with your project (part-time to full-time)? Check out our official enterprise support.
  • To stay in the loop and get updates, follow us on X and LinkedIn.
  • Looking for a job, or have a job to offer? Check out our official Jobs board.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

API Documentation

The API documentation is available at:

  • Swagger UI: http://localhost:3000/api
  • OpenAPI JSON: http://localhost:3000/api-json

Project Structure

src/
├── config/         # Configuration files
├── controllers/    # Route controllers
├── dto/           # Data Transfer Objects
├── entities/      # Database entities
├── guards/        # Authentication guards
├── interfaces/    # TypeScript interfaces
├── middlewares/   # Custom middlewares
├── modules/       # Feature modules
├── services/      # Business logic
└── main.ts        # Application entry point

Common Commands

# Generate a new resource
$ nest generate resource [name]

# Generate a controller
$ nest generate controller [name]

# Generate a service
$ nest generate service [name]

# Generate a module
$ nest generate module [name]

Error Handling

The application uses a global error handling system. Common HTTP exceptions can be thrown using NestJS's built-in exceptions:

throw new UnauthorizedException('Invalid credentials');
throw new NotFoundException('Resource not found');
throw new BadRequestException('Invalid input');