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

@tjalve/qube-cli

v0.2.2

Published

Reusable TypeScript CLI infrastructure for command-line packages.

Readme

@tjalve/qube-cli

@tjalve/qube-cli is the shared TypeScript CLI library used by the QUBE package family. It provides command metadata, registry wiring, help text, schema output, structured output helpers, mutation safety metadata, prompt helpers, redaction, and test utilities for package-backed CLIs.

It is a library, not a product CLI. Consuming packages own their command behavior, validation rules, state, service integrations, and side effects.

For the product command deck and component package family, see https://zark.github.io/ai-qube/ or the repository landing-page artifact at https://github.com/ZarK/ai-qube/blob/HEAD/docs/index.html.

Install

pnpm add @tjalve/[email protected] --save-exact --ignore-scripts

What It Provides

  • command metadata and registry helpers
  • consistent human help and JSON schema output
  • structured text and JSON output helpers
  • typed mutation and safety metadata for agent-facing commands
  • terminal, prompt, and redaction utilities
  • installer choice primitives for guided setup flows
  • package-content and CLI-contract test helpers

Package Boundary

This package does not mutate user projects, configure shells, install hooks, contact external services, start background processes, or define product policy during installation. Runtime behavior belongs to the consuming package.

Exports

import { defineCommand, createCommandRegistry } from "@tjalve/qube-cli";
import { renderHelp } from "@tjalve/qube-cli/help";
import { createJsonOutput } from "@tjalve/qube-cli/output";

Public subpath exports include:

  • @tjalve/qube-cli/metadata
  • @tjalve/qube-cli/registry
  • @tjalve/qube-cli/help
  • @tjalve/qube-cli/runtime
  • @tjalve/qube-cli/schema
  • @tjalve/qube-cli/errors
  • @tjalve/qube-cli/output
  • @tjalve/qube-cli/mutation
  • @tjalve/qube-cli/terminal
  • @tjalve/qube-cli/prompts
  • @tjalve/qube-cli/installer
  • @tjalve/qube-cli/redaction
  • @tjalve/qube-cli/testing

Installer UX Primitives

Package authors can build safe setup flows without inventing prompt, choice, and non-interactive behavior from scratch:

import {
  defineInstallerChoiceGroup,
  promptInstallerChoice,
  renderInstallerChoices
} from "@tjalve/qube-cli/installer";

const scope = defineInstallerChoiceGroup({
  name: "install scope",
  message: "Where should this package be installed?",
  defaultValue: "local",
  choices: [
    { value: "local", label: "Project-local", recommended: true },
    { value: "global", label: "Global manual" }
  ]
});

Use explicit flag values or safe defaults for --json, --yes, and CI paths. Consuming packages still own command generation, validation rules, install policy, and side effects.

Adoption

The repository includes an adoption guide and compatibility checklist:

  • https://github.com/ZarK/ai-qube/tree/main/packages/qube-cli/docs/adoption-guide.md
  • https://github.com/ZarK/ai-qube/tree/main/packages/qube-cli/docs/compatibility-checklist.md

Use those docs when migrating an existing CLI command-by-command while preserving help, JSON, schema, exit-code, dry-run, and ownership boundaries.

Development

corepack enable
pnpm install --frozen-lockfile --ignore-scripts
pnpm --filter @tjalve/qube-cli run verify

The package publishes compiled JavaScript, declaration files, package.json, license metadata, and this README.