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

@nl-framework/cli

v0.3.5

Published

Command-line interface for generating Bun-native Nael Framework projects.

Readme

@nl-framework/cli

A Bun-native command-line interface for scaffolding Nael Framework services, feature modules, controllers, services, resolvers, models, and shareable libraries.

Usage

After building or installing the package, you can run the following commands:

Create a service

nl new my-service

Generates a new project in ./my-service with Bun scripts, TypeScript configuration, a starter HTTP controller, and a sample scheduler provider ready to customize. By default the CLI avoids overwriting existing files; use --force to permit regenerating files and --install to automatically run bun install.

Generate a feature module

nl g module users

Creates src/modules/users in the current workspace, including a UsersModule class, placeholder folders for controllers/services/resolvers/models, and an export entry in src/modules/index.ts. Use --force to regenerate an existing module directory.

Generate a service

nl g service users --module users

Generates src/modules/users/services/users.service.ts, wires the service into the module's providers array, and re-exports it via src/modules/users/index.ts. Use --module (or -m) to target the destination module.

Generate a controller

nl g controller users --module users

Creates src/modules/users/controllers/users.controller.ts, registers the controller with the module, and exports it. Adjust the generated routes and inject services as needed.

Generate a resolver

nl g resolver users --module users

Produces src/modules/users/resolvers/users.resolver.ts, adds the resolver to the module providers, and re-exports it from src/modules/users/index.ts. Extend the resolver with fields, queries, or mutations and inject services as required.

Generate a model

nl g model user --module users

Creates src/modules/users/models/user.model.ts with a default id field decorated for GraphQL, adds an index export in src/modules/users/models/index.ts, and leaves the module primed for further field additions.

Generate a shared library

nl g lib shared-utils

Creates ./libs/shared-utils with a TypeScript-ready build, README, and an initial feature module (exported via src/modules/index.ts). Pass --force to overwrite existing files if the directory is not empty.

Development

bun install
bun run --cwd packages/cli dev -- --help
bun run --cwd packages/cli build

The build command compiles TypeScript output to dist/ so the nl binary can be executed directly.