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

@verkut/nx-nest-service

v0.0.1

Published

Nx plugin: scaffolds the approved NestJS + Prisma microservice (DDD layers, @verkut/* wiring) and workspace setup

Readme

@verkut/nx-nest-service

Nx plugin that scaffolds the org-approved NestJS + Prisma microservice (Clean Architecture / DDD layers, @verkut/* wiring, Zod validation, Swagger, Redis, Prometheus metrics) — the same architecture as apps/api in the template repo.

Generators

init — workspace setup (idempotent)

Runs automatically on nx add @verkut/nx-nest-service. Safe to re-run — a second invocation produces zero changes.

  • adds the runtime/dev dependencies to the root package.json (@verkut/* from public npm, @nestjs/*, @prisma/*, prisma, pg, zod, nestjs-zod, envalid, helmet, ioredis, …)
  • creates .npmrc (only public-hoist-pattern[]=@prisma/* for the Prisma driver adapter) if missing
  • creates docker/docker-compose.develop.yml (postgres + redis) if missing
  • creates/extends .env.example
  • extends pnpm-workspace.yaml onlyBuiltDependencies
  • injects the /* nx-nest-service:scopes */ anchor into eslint.config.mjs depConstraints
  • ensures .env / swagger.json are gitignored

service — generate a microservice

nx g @verkut/nx-nest-service:service payment-service --domain=payment --domainPlural=payments
nx g @verkut/nx-nest-service:service worker --no-example     # bare skeleton, no reference domain

| Option | Default | Description | |---|---|---| | name | — | Service name, kebab-case (positional) | | directory | apps/<name> | Target directory | | domain | example | Reference bounded-context name (singular) | | domainPlural | <domain>s | Plural (set explicitly for irregular plurals: categorycategories) | | example | true | --no-example scaffolds the skeleton without the reference domain | | displayName | <Name> Service | Swagger title | | httpPortEnv | API_HTTP_PORT | Env var holding the HTTP port | | tags | — | Extra Nx tags (comma-separated); scope:<name> + type:app are always set |

What you get: src/cli (main + seed entry points), src/api/http/v1 (decorators, guards, Zod pipes, backoffice controller), src/domain/<domain> (constants/dto/exceptions/services/usecases/rules), src/infrastructure (envalid config, Prisma via @prisma/adapter-pg, Redis, seeding, validation), prisma/schema.prisma (moduleFormat="cjs" — required for the webpack CJS bundle), project targets (build → depends on prisma-generate, serve, seed, prisma-migrate-*, prune*), and a scope:<name> depConstraint appended to the root eslint.config.mjs.

Prisma migrations are not generated — create the first one yourself:

nx prisma-migrate-dev <name>

Removing a generated service

nx g @nx/workspace:remove <name>

Then manually delete its scope:<name> block from the root eslint.config.mjs depConstraints (the remove generator does not know about it), and drop the service's DB schema/tables if a migration was already applied.

Publish to public npm

# npm auth required: npm login, or NPM_TOKEN in CI (publishConfig.access = public)
nx build nx-nest-service                            # dist includes files/, generators.json, schema.json
nx release version --projects=nx-nest-service
nx release publish --projects=nx-nest-service

Use in another Nx workspace

nx add @verkut/nx-nest-service        # installs from public npm + runs init
nx g @verkut/nx-nest-service:service payments

Development notes

  • Templates live in src/generators/service/files (skeleton) and files-domain (reference domain); all carry a .template suffix, __token__ placeholders in file names, EJS in contents.
  • The template source of truth is this plugin. apps/api in the template repo is the golden reference — parity is verified by regenerating it (nx g @verkut/nx-nest-service:service api2 --displayName='Myorg API' + diff).