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

@rtw_np/dash-cli

v0.0.2

Published

CLI tool for scaffolding Next.js dashboard templates with MUI

Readme

dash-cli

CLI for scaffolding Next.js dashboard projects with MUI, then generating resource pages (list, add-new, edit) from in-project sample templates.

Features

  • Initialize a dashboard project from a local template folder or remote git template
  • Generate list pages with table/filter wrappers
  • Generate add-new pages with form wrappers
  • Generate edit pages with form wrappers and dynamic [id] route
  • Name conversion built in (user-profile -> UserProfile, userProfile, user-profile)

Requirements

  • Node.js 18+
  • npm
  • git (only required when using a remote template source)

Install

Install from npm

npm install -g @rtw_np/dash-cli

Then run:

dash-cli --help

Usage

dash-cli <command> [options]

Commands

init

Initialize a new dashboard project.

dash-cli init

Options:

  • -t, --template <url>: Use a remote git repo URL as template source
  • -l, --local <path>: Use a local template directory path

Examples:

# interactive project name prompt
dash-cli init

# clone from remote template
dash-cli init --template https://github.com/your-org/your-template-repo.git

# copy from local template folder
dash-cli init --local ../rtw_dash

Behavior notes:

  • Prompts for Project name (default: my-dashboard)
  • Accepts . to scaffold into the current directory
  • If target exists and is non-empty, prompts for confirmation before overwrite
  • For remote templates, .git is removed after clone
  • For local templates, .git and node_modules are skipped during copy

add:list <name>

Add a list page and corresponding template wrapper files.

dash-cli add:list user

Creates:

  • src/components/templates/<PascalName>List/
  • src/app/<kebab-name>/page.tsx

add:new <name>

Add a create page and corresponding template wrapper files.

dash-cli add:new user

Creates:

  • src/components/templates/<PascalName>AddNew/
  • src/app/<kebab-name>/add-new/page.tsx

add:edit <name>

Add an edit page and corresponding template wrapper files.

dash-cli add:edit user

Creates:

  • src/components/templates/<PascalName>Edit/
  • src/app/<kebab-name>/edit/[id]/page.tsx

Important Project Structure Assumptions

add:* commands must be run inside an initialized project that contains:

  • package.json
  • src/components/
  • src/components/sample-templates/ with:
    • SampleResourceList
    • SampleResourceAddNew
    • SampleResourceEdit

If these sample template folders are missing, generation fails.

Template Source Configuration

Default template source behavior is configured in src/commands/init.ts:

  • TEMPLATE_SOURCE
  • TEMPLATE_LOCAL_PATH
  • TEMPLATE_REPO_URL

Precedence order at runtime:

  1. --local
  2. --template
  3. TEMPLATE_SOURCE defaults

Development

npm install
npm run dev

Build:

npm run build

Run tests:

npm test

License

ISC