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

@hed-hog/cli

v0.0.143

Published

HedHog CLI tool

Downloads

4,486

Readme

@hed-hog/cli

NPM Version NPM Downloads Package License

The command-line tool for scaffolding and managing HedHog projects.

Learn more about the HedHog framework at new.hedhog.com — the official site for the framework this CLI scaffolds and manages.

What is HedHog CLI

@hed-hog/cli (binary hedhog) scaffolds and manages HedHog projects: TurboRepo monorepos with a NestJS API (apps/api) and a NextJS admin panel (apps/admin). Functionality is added through versioned @hed-hog/* libraries — each one bundles its own database schema, seed data, and admin frontend pages — that the CLI installs, updates, and keeps in sync with your project.

Built with NestJS 11 + nest-commander, TypeScript, pnpm, Prisma ORM, and EJS templates.

Installation

Prerequisites: Node.js 18+, npm 9+, pnpm (required by several CLI flows), and Docker + Docker Compose (used by hedhog new's default database setup).

npm i -g @hed-hog/cli

Verify the install:

hedhog --version
hedhog --help

Quick start

# scaffold a new project
hedhog new my-project
cd my-project

# add a library/module to the project
hedhog add menu

# update installed libraries
hedhog update

# check hedhog.json consistency
hedhog dev doctor

Command reference

Top-level commands

| Command | Description | | --- | --- | | hedhog new | Scaffold a new HedHog project (TurboRepo + NestJS + NextJS) | | hedhog add <lib> | Add a @hed-hog/* library to a project | | hedhog update [libs...] | Update installed @hed-hog/* libraries | | hedhog dev <subcommand> | Development and maintenance operations (alias: d) |

hedhog dev subcommands

| Subcommand | Alias | What it does | | --- | --- | --- | | apply | a | Re-applies all installed libraries in dependency order ⚠️ destructive | | assets-to-library | atl | Copies admin frontend assets back into a library | | backupdb | bdb | Backs up the development database | | create-library | cl | Scaffolds a new local library | | deploy-config | dc | Manages deploy configuration and secrets | | doctor | doc | Checks hedhog.json consistency against installed libraries | | hash-directory | hd | Hashes a directory for change validation | | initdb | idb | Initializes the development database | | install-all | ia | Resets the environment and installs all available @hed-hog packages ⚠️ destructive | | library-version | lv | Shows installed library versions | | list-packages | lp | Lists available @hed-hog packages | | reset | rs | Resets the development environment ⚠️ destructive | | restoredb | rdb | Restores a database backup | | route | r | Helps with the route/migration workflow during library development | | sync-publish | sp | Syncs assets and publishes library versions | | tsconfig | tsc | Updates TypeScript configs across the workspace | | update-bootstrap | ub | Updates bootstrap and auxiliary config files |

Before running any ⚠️ destructive command, take a backup with hedhog dev backupdb.

See docs/03-referencia-de-comandos.md for full flags and usage details.

Documentation

Contributing / local development

To work on the CLI itself:

pnpm install

# build to dist/
pnpm build

# run from source, no build needed
ts-node src/main <command>

# rebuild and watch on change
pnpm start:dev

Other useful scripts:

pnpm test        # unit tests
pnpm lint        # eslint --fix
pnpm format      # prettier --write

Resources

License

MIT