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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@zerothrow/zt-cli

v0.1.3

Published

ZeroThrow CLI tool for repo-wide workflows

Readme

@zerothrow/zt-cli

🧠 ZeroThrow Layers
ZT – primitives (try, tryAsync, ok, err)
Result – combinators (map, andThen, match)
ZeroThrow – utilities (collect, enhanceAsync)
@zerothrow/* – ecosystem packages (resilience, jest, etc)

ZeroThrow Ecosystem · Packages ⇢

CI npm types ecosystem

ZeroThrow CLI tool for repo-wide workflows and package management automation.

Installation

As a dev dependency in your project

npm install --save-dev @zerothrow/zt-cli
# or: pnpm add -D @zerothrow/zt-cli

Global installation

npm install -g @zerothrow/zt-cli
# or: pnpm add -g @zerothrow/zt-cli

Quick Start

The zt CLI provides a unified interface for managing ZeroThrow packages and development workflows:

# List all packages in the monorepo
zt list

# Check if packages are ready for publishing
zt package ready

# Run all validation checks
zt validate

# Generate documentation from templates
zt docs generate

Commands

zt list (alias: zt ls)

Lists all packages in the monorepo with their versions and metadata.

zt list
# or
zt ls

Output:

📦 ZeroThrow Packages

  @zerothrow/core         v0.2.3
  @zerothrow/resilience   v0.2.0
  @zerothrow/jest         v1.1.0
  ...

Total: 8 packages

zt package

Package management utilities with multiple subcommands.

zt package ready

Checks if packages meet all requirements for publishing to npm.

# Interactive package selection
zt package ready

# Check all packages
zt package ready --all

# Check specific package
zt package ready --package core

# Show detailed check results
zt package ready --all --verbose

# Auto-fix issues where possible
zt package ready --fix

# Fix all packages
zt package ready --all --fix

Exit Codes:

  • 0 - All selected packages are ready
  • 1 - One or more packages are not ready
  • 2 - Command error

Output Modes:

  • --verbose - Shows every check with ✓ or ✗
  • --fix - Auto-fix issues and prompt for manual fixes
  • Default - Only shows failures (silence is golden)

The command checks:

  • Accurate package description
  • Correct package naming (@zerothrow/*)
  • Required package.json fields (type, exports, main, module, types, etc.)
  • Proper configuration (sideEffects, publishConfig, engines)
  • Required files (README.md, CHANGELOG.md, LICENSE)
  • Mascot image in marketing/brand directory
  • README content requirements (badges, ecosystem links, install instructions)
  • ECOSYSTEM.md inclusion and version accuracy

zt package init

Creates a new package from template.

# Interactive mode
zt package init

# With options
zt package init --name my-package --description "My awesome package"

zt validate

Runs all validation checks across the monorepo.

# Run all checks
zt validate

# Auto-fix issues where possible
zt validate --fix

# Only validate staged files
zt validate --staged

Checks performed:

  • Build (TypeScript compilation)
  • Lint (ESLint)
  • Type check
  • Tests (via turbo)
  • Format (Prettier)

zt ecosystem

Manages the ECOSYSTEM.md file that documents all packages.

zt ecosystem sync

Updates ECOSYSTEM.md with current package information.

zt ecosystem sync

zt ecosystem check

Verifies ECOSYSTEM.md is up to date (useful for CI).

zt ecosystem check

zt docs

Documentation generation utilities using markdown transclusion.

zt docs generate

Generates all documentation from templates, ensuring consistency across packages.

zt docs generate

This command:

  1. Extracts package information (versions, descriptions)
  2. Processes ECOSYSTEM.md from template
  3. Processes all package READMEs from templates
  4. Supports custom README templates per package
  5. Uses markdown-transclusion for composable documentation

External Commands

The CLI supports external commands via the zt-{command} naming convention. When you run zt foo, it will look for:

  1. Built-in command named foo
  2. External command zt-foo in your PATH

This allows extending the CLI with custom commands.

Development

The CLI is built with:

Examples

Pre-publish Workflow

# Check all packages
zt package ready --all --verbose

# Fix issues automatically
zt package ready --all --fix

# Sync documentation
zt docs generate

# Run validation
zt validate

# Final check
zt ecosystem check

Development Workflow

# List current packages
zt list

# Create new package
zt package init --name my-feature

# Check readiness
zt package ready --package my-feature

# Fix issues
zt package ready --package my-feature --fix

CI Workflow

# Validate everything
zt validate

# Check ecosystem is in sync
zt ecosystem check

# Check all packages are ready
zt package ready --all

Contributing

See the main repository for contribution guidelines.

License

MIT