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

@nathapp/na-cli

v1.0.4

Published

The Nathapp CLI is a development utility designed to scaffold projects from templates and manage environment variable conversions between `.env` and YAML formats.

Downloads

395

Readme

Nathapp CLI (na-cli) Documentation

The Nathapp CLI is a development utility designed to scaffold projects from templates and manage environment variable conversions between .env and YAML formats.

Installation & Setup

If installed as a global package:

na --help

Commands

1. Project Generation (generate, gen)

Scaffold a new project from a pre-defined template.

Interactive Mode (Default)

Simply run the command and follow the prompts:

na gen

Non-Interactive / Flag Mode

You can provide answers directly via command-line flags. If both --template and --name are provided, the CLI enters Silent Mode, suppressing all interactive prompts and using professional defaults for missing values.

Common Flags:

  • -t, --template: Name of the template (e.g., nestjs-api, k8s-helm-chart).
  • -n, --name: The name of the new project folder/package.
  • --author: Project author name (defaults to na-cli).
  • -i, --install: (Boolean) Run npm install after generation. No value needed (default: false).

Template-Specific Flags:

  • NestJS API (nestjs-api):
    • --nestjs_api_platform: Choose express or fastify (default: fastify).
  • Database Schema (db-schema):
    • --db_master: The master database name (default: master).
  • K8s Helm Chart (k8s-helm-chart):
    • --k8s_chart_registry_host: aliyun, aws, dockerhub, or custom.
    • --k8s_image_name: Full image name (default: bitnami/kafka).
    • --k8s_image_version: Version tag (default: 1.0.0).
    • --k8s_chart_kind: Deployment, StatefulSet, or CronJob (default: Deployment).
    • --k8s_chart_registry_region: (For Aliyun/AWS) default: ap-southeast-3.
    • --k8s_chart_aws_account_id: (For AWS) default: 123456789.

Example:

na gen -t nestjs-api -n my-backend -i

2. Smart Pathing (K8s)

The CLI understands the relationship between infrastructure projects and services. When generating a k8s-helm-chart inside a directory created by k8s-deployment, it will automatically detect and nest the new chart in the appropriate sub-folder:

  1. services/charts/[name] (Highest priority)
  2. resources/charts/[name]
  3. services/[name]
  4. resources/[name]

This allows you to manage modular services within a master deployment project without manually navigating to sub-folders.


3. Environment Variable Conversion

.env to YAML (env-yml)

Convert a standard dotenv file into a Nathapp-compatible YAML configuration.

na env-yml -i .env -o config.yaml
  • -i, --input: Input path (default: .env).
  • -o, --output: Output path (default: config.yaml).

YAML to .env (yml-env)

Convert a YAML configuration back into a standard dotenv file.

na yml-env -i config.yaml -o .env
  • -i, --input: Input path (default: config.yaml).
  • -o, --output: Output path (default: .env).

Available Templates

The CLI currently supports the following project types:

  • db-schema: Database migration and schema projects.
  • k8s-deployment: Basic Kubernetes manifests.
  • k8s-helm-chart: Comprehensive Helm chart bootstrapping.
  • mxw-base-api-express: Express-based API boilerplate.
  • ts-library: TypeScript library project.
  • nestjs-api: Professional NestJS setup with platform choices.
  • vuexy-portal: Frontend portal based on the Vuexy template.