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

zimt-cli

v1.1.1

Published

The secret ingredient for production-ready NestJS apps

Readme

ZIMT CLI

The secret ingredient for production-ready NestJS applications.


Why it exists

Bootstrapping a NestJS project with Prisma, Docker, JWT auth, and proper RBAC involves 30+ files and hours of wiring. ZIMT handles all of it in seconds, then gets out of your way. Start blank, add what you need.


Quick start

npm install -g zimt-cli

zimt init my-api
cd my-api
cp .env.example .env
npm run prisma:migrate
npm run start:dev

Server running at http://localhost:4000. Health check: GET /health.


Headless API (for tools and AI agents)

Every capability is also exposed as a prompt-free programmatic API — no terminal, no prompts, Result-typed errors:

import { initProject, addAuth, generateFromSql, appendModelToSchema, addCache, cloudify } from 'zimt-cli';

See AI-USAGE.md for the full contract, pipeline order, and the MCP-ready tool manifest.

Note: name-based generation (zimt generate <name>) is CLI-only sugar — it does not write the Prisma schema, so programmatic consumers must use SQL-mode (generateFromSql) exclusively.


Commands

| Command | What it does | Flags | |---------|-------------|-------| | zimt init [name] | Create a blank NestJS project | --pm npm\|yarn\|pnpm\|bun | | zimt new [name] | Alias for zimt init | --pm | | zimt auth | Add JWT auth, user module, RBAC to existing project | — | | zimt create auth | Alias for zimt auth | — | | zimt generate <name> | Generate CRUD resource from a name | --parent <resource> | | zimt g <name> | Alias for zimt generate | --parent | | zimt p <name> | Alias for zimt generate | --parent | | zimt generate create "<SQL>" | Generate resource from SQL CREATE TABLE | --parent <resource> | | zimt p create "<SQL>" | Alias for SQL generation | --parent | | zimt r <entity> | Add Redis cache-aside layer to a service | --ttl <seconds> | | zimt cache <entity> | Alias for zimt r | --ttl |


Generated project structure

After zimt init my-api:

my-api/
├── src/
│   ├── app.module.ts       # Root module (PrismaModule imported)
│   ├── app.controller.ts   # GET /health
│   ├── app.service.ts
│   ├── main.ts
│   └── prisma/
│       ├── prisma.module.ts
│       └── prisma.service.ts
├── prisma/
│   └── schema.prisma
├── Dockerfile
├── docker-compose.yml      # PostgreSQL 16
├── .env.example
└── package.json

After zimt auth:

src/
├── auth/               # JWT strategy, guards, decorators, login/signup/refresh
├── user/               # User CRUD, RBAC-protected endpoints
├── crypto/             # bcrypt helpers
├── db/user/            # Repository interface + Prisma implementation
└── logger/             # File logger + request logging middleware

After zimt generate orders or zimt p create "CREATE TABLE orders (...)":

src/orders/
├── orders.module.ts
├── orders.controller.ts
├── orders.service.ts
├── orders.repository.ts
├── orders.repository.interface.ts
├── dto/
│   ├── create-orders.dto.ts
│   └── update-orders.dto.ts
├── entities/
│   └── orders.entity.ts
├── orders.service.spec.ts
└── orders.controller.spec.ts
test/orders/
└── orders.e2e-spec.ts

Package manager support

Auto-detected from lockfile in the current directory:

| Lockfile | Detected PM | |----------|-------------| | bun.lockb | bun | | pnpm-lock.yaml | pnpm | | yarn.lock | yarn | | package-lock.json | npm |

Override with --pm: zimt init my-app --pm pnpm


Requirements

  • Node.js ≥ 20.0.0
  • One of: npm, yarn, pnpm, or bun
  • Docker (optional, for local database)
  • PostgreSQL (via Docker or external)

Contributing

Issues and PRs welcome at github.com/olucens/zimt-cli.

Set NPM_TOKEN in your repository secrets for automated npm publishing via CI/CD.