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

@nestledjs/generators

v3.2.1

Published

Prisma-driven code generators for Nestled projects (crud, custom, model-extension, sdk, models, workspace-setup)

Readme

@nestledjs/generators

Nx generators for keeping a Nestled workspace aligned with its Prisma schema and for scaffolding explicit API extensions.

Model extensions

Generated CRUD resolvers are registered by ApiGeneratedCrudFeatureModule. Custom model behavior is additive and must not inherit a generated resolver. Scaffold a conventional model-adjacent resolver module only when the model needs custom behavior:

nx g @nestledjs/generators:model-extension User

This creates libs/api/custom/src/lib/default/user/user.{module,resolver}.ts, exports the module, and adds it to the API's defaultModules. The default artifact name follows the Prisma model; use --name when a more specific feature name is clearer:

nx g @nestledjs/generators:model-extension User --name=UserProfile

Both resolvers target the User GraphQL model. The name and folder layout are conventions, not an inheritance contract.

Admin CRUD boundary

Generated CRUD is always protected at resolver-class level with @AdminOnly() and GqlAuthAdminGuard. Generator 3 rejects the removed @crudAuth annotation so a schema cannot lower generated operations to user or public access.

User-facing operations belong in additive custom resolvers with purpose-built inputs and explicit, authenticated Prisma queries. The recursive selection compiler used by generated CRUD is inlined inside the generated data-access service and is not exported for application code.

Building

Run nx build generators to build the library.

Running unit tests

Run nx test generators to execute the unit tests via Vitest.