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

@ahmdhndrsyh/nestjs-starter

v0.0.9

Published

Basic starter project for building scalable and maintainable NestJS applications, equipped with developer-friendly tooling and CI-ready setup.

Readme

NestJS Starter ⚡️

Basic starter project for building scalable and maintainable NestJS applications, equipped with developer-friendly tooling and CI-ready setup.


✨ Features

  • 🚀 Built with NestJS
  • 📦 Auto-import sorting via @trivago/prettier-plugin-sort-imports
  • 📋 Pre commit with Husky and commit linting with Conventional Commits
  • 📝 Logger with Pino
  • ✅ CI Workflows for type checking & linting

    Check .github/workflows/ci.yml for more details.

  • 🔒 Type safe environment variables.
  • 📄 Swagger Docs

📦 Getting Started

This starter template assumes you are using pnpm as your package manager. Of course, pnpm and npm can be used interchangeably.

npx @ahmdhndrsyh/nestjs-starter my-app
cd my-app
mv env.example .env
pnpm start:dev

mv is a Unix command and if you're come from Windows, you have 2 options:

  1. Installing Git Bash and use mv command in the bash
  2. Using Windows move command.

📋 Git Hooks & Commit Rules

This starter uses:

Conventional commit examples:

feat(auth): add JWT strategy
fix(core): fix logger context issue
chore: update dependencies

🔒 Type Safe Env Variables

This starter uses Zod for validating your environment variables. You can define your environment variables in the src/core/config/env.schema.ts file. Example:

import { z } from 'zod';

export const envSchema = z.object({
  NODE_ENV: z.enum(['development', 'production']), // defined in the schema but forgot added to the .env file
  PORT: z.string().transform(Number).default('3000'),
  // Add more environment variables as needed
});

it will be validated at runtime and will throw an error if the validation fails.

❌ Invalid environment variables:
{ _errors: [], NODE_ENV: { _errors: [ 'Required' ] } }

📄 Swagger Docs

This starter includes Swagger documentation for your API endpoints. You can access the API documentation at http://localhost:3000/docs or change to your preferred url in the main.ts file. Here is an example of how to use it:

// app.controller.ts
@Post() // Method Decorator
  @ApiParam({ name: 'message', description: 'Message to be sent' }) // Document the parameters present in the URL path
  @ApiBody({ // Document the content of the request body
    schema: {
      type: 'object',
      properties: {
        fullName: { type: 'string', example: 'John' },
      },
    },
  })
  greeting(
    @Body(new ZodValidationPipe(greetingSchema)) greetingDto: GreetingDto,
  ) {
    return this.appService.greeting(greetingDto);
  }

Visit NestJS Swagger Docs for more information.

🔧 Tooling

| Tool | Purpose | | ------------------------- | --------------------------------------- | | pino | Fast, structured logging | | prettier + sort-imports | Auto-format + sort imports | | eslint | Lint codebase | | husky + commitlint | Enforce clean commit messages | | GitHub Actions | Run Type Check & Linter on pull request |

MIT License

This project is licensed under the MIT License. See the MIT file for details.