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

v2.3.0

Published

The fast way to bootstrap a TypeScript backend, the way Nan builds them.

Readme

create-nan 🚀

npm version license TypeScript

An interactive backend scaffolding tool designed to generate clean, robust TypeScript projects pre-configured with Fastify, Prisma, PostgreSQL, Docker, and Clean Architecture in seconds.


⚡ Quick Start

No need to install globally! Simply run:

yarn create nan

Or using your favorite package manager:

# npm
npm create nan@latest

# pnpm
pnpm create nan

# bun
bun create nan

Follow the interactive prompt to set up your project name, and you're ready to build!


💡 What is create-nan?

Setting up a backend project from scratch often involves repeating tedious tasks: configuring TypeScript, setting up Fastify, writing boilerplate Prisma schema files, structuring Clean Architecture layers, and configuring Docker environments.

create-nan solves this by automating the boilerplate phase into a smooth, one-command CLI workflow.


🏗️ What Gets Generated?

The generated project follows Clean Architecture / Domain-Driven Design (DDD) principles, separating concerns into distinct layers:

my-app/
├── src/
│   ├── domain/             # Entities, value objects, and business rules
│   ├── application/        # Use cases and application logic
│   ├── infrastructure/     # External services, ORM/Prisma, database configs
│   ├── presentation/       # Fastify controllers, routes, and HTTP schemas
│   └── main/               # Server startup, dependency injection & app composition
├── prisma/
│   └── schema.prisma       # Database schema and models
├── .env.example            # Environment variables blueprint
├── compose.yml             # Docker Compose setup for PostgreSQL
├── package.json            # Configured dependencies and scripts
└── tsconfig.json           # Optimized TypeScript configuration

Generated Project Tech Stack

  • Runtime & Language: Node.js + TypeScript
  • Web Framework: Fastify
  • Database & ORM: PostgreSQL + Prisma ORM
  • Architecture Pattern: Clean Architecture / DDD
  • Containerization: Docker Compose

🛠️ CLI Built With

The scaffolding tool itself is built lightweight and fast using modern CLI libraries:


📋 Prerequisites

Before running create-nan, ensure you have the following installed on your machine:

  • Node.js (v18.0.0 or higher recommended)
  • Yarn (v1.x or v3+), npm, pnpm, or Bun
  • Docker & Docker Compose (for running the local PostgreSQL database)

🔄 How It Works

  1. Interactive Prompt: Collects project details (such as the project name) interactively.
  2. Template Copying: Clones a battle-tested Clean Architecture template to the specified target directory.
  3. Placeholder Replacement: Automatically updates project variables across files (e.g., updating package.json package names and compose.yml container/volume tags).
  4. Dependency Installation: Runs yarn install inside the newly created project directory so you can jump right into coding.

🛣️ Roadmap

  • [ ] Support for selecting modular features (e.g., JWT authentication, Redis caching, Swagger documentation).
  • [ ] Choice of ORMs (Prisma, Drizzle, TypeORM).
  • [ ] Option to add automated testing setups (Vitest / Jest) out of the box.

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more details.