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

@skillrecordings/cli

v0.12.0

Published

CLI for the support platform. Agent-friendly with non-interactive defaults.

Readme

@skillrecordings/cli

CLI for the support platform. Agent-friendly with non-interactive defaults.

Usage

bunx @skillrecordings/cli <command> [options]

# or with direct import
skill <command> [options]

All commands support --json for machine-readable output and reliable exit codes.

Adaptive Hints

The CLI prints adaptive onboarding/discovery hints to stderr for new users. Hints learn from usage and fade as you run more commands.

Opt out:

  • Use --quiet
  • Use --json
  • Pipe output (non-TTY)

Commands

skill init <name>

Initialize a new app integration with webhook secret.

# Interactive (terminal only)
skill init

# Non-interactive (required for agents/scripts)
skill init my-app

# JSON output
skill init my-app --json

Options:

  • --json - Output result as JSON (machine-readable)

Exit codes:

  • 0 - Success
  • 1 - Error (name required in non-interactive mode, etc.)

skill health <slug|url>

Test integration endpoint health.

# Using database lookup (recommended)
skill health total-typescript

# Direct URL mode
skill health https://example.com --secret whsec_xxx

# List registered apps
skill health --list

# JSON output (for agents)
skill health total-typescript --json

Options:

  • -s, --secret <secret> - Webhook secret (required for direct URL mode)
  • -l, --list - List all registered apps
  • --json - Output result as JSON (machine-readable)

Exit codes:

  • 0 - Health check passed
  • 1 - Health check failed or error

JSON output structure:

{
  "success": true,
  "endpoint": "https://...",
  "status": "ok",
  "responseTime": 730,
  "actions": [
    { "name": "lookupUser", "status": "ok" },
    { "name": "getPurchases", "status": "ok" }
  ],
  "summary": { "ok": 4, "notImplemented": 1, "errors": 0 }
}

skill eval <type> <dataset>

Run evals against a dataset (e.g., routing classifier, canned response matcher).

# Run routing eval with defaults
skill eval routing path/to/dataset.json

# With strict thresholds
skill eval routing dataset.json --min-precision 0.95 --min-recall 0.97

# JSON output for automation
skill eval routing dataset.json --json

# Custom thresholds
skill eval routing dataset.json \
  --min-precision 0.92 \
  --min-recall 0.95 \
  --max-fp-rate 0.03 \
  --max-fn-rate 0.02

Arguments:

  • type - Eval type (e.g., routing)
  • dataset - Path to JSON dataset file

Options:

  • --json - Output result as JSON (machine-readable)
  • --min-precision <number> - Minimum precision threshold (default: 0.92)
  • --min-recall <number> - Minimum recall threshold (default: 0.95)
  • --max-fp-rate <number> - Maximum false positive rate (default: 0.03)
  • --max-fn-rate <number> - Maximum false negative rate (default: 0.02)

Exit codes:

  • 0 - All metrics passed thresholds
  • 1 - One or more metrics below threshold or error

Output includes:

  • Precision, recall, false positive/negative rates
  • Latency percentiles (p50, p95, p99)
  • Token usage and estimated cost
  • Category-level breakdown (if applicable)

App Onboarding Workflow

Typical flow for adding a new app integration:

# 1. Initialize with app name
skill init my-app --json
# Returns: { "success": true, "appName": "my-app",
#            "webhookSecret": "whsec_xxx" }

# 2. Register webhook endpoint in your app
# Save the webhook secret and configure your endpoint to:
# POST /api/support-webhooks with Authorization: Bearer whsec_xxx

# 3. Test health before going live
skill health my-app
# Verifies: endpoint reachable, signature verification works,
# actions implemented

# 4. Run evals (optional, for routing/matching logic)
skill eval routing path/to/labeled-dataset.json --json

# 5. Deploy and monitor
# Check logs via Axiom/Langfuse for inbound messages

All commands work non-interactively and report errors with exit codes (0=success, 1=error).

Agent Usage

All commands support --json for machine-readable output and non-interactive operation:

init command:

  • Requires name argument (non-interactive mode)
  • Returns JSON: { "success": true, "appName": "...", "webhookSecret": "whsec_..." }
  • Use --json for reliable parsing

health command:

  • Use --json for JSON output (structured for parsing)
  • Use --list to discover all registered apps
  • Returns exit code 0 if healthy, 1 if any check fails

eval command:

  • Requires type and dataset arguments
  • Accepts custom threshold gates (precision, recall, false positive/negative rates)
  • Returns exit code 0 if all metrics pass, 1 otherwise
  • Use --json for machine-readable report

Error handling:

  • All commands output { "success": false, "error": "message" } on JSON mode
  • Check exit codes: 0 = success, 1 = error
  • Never interactive in non-TTY environments (CI/CD safe)

Auth (Encrypted Secrets)

Distribute CLI secrets to team members via age encryption + 1Password.

# Generate keypair (admin)
skill auth keygen

# Encrypt secrets (admin)
skill auth encrypt .env.local

# Decrypt secrets (team)
skill auth decrypt .env.local.age --output .env.local

See docs/CLI-AUTH.md for complete setup guide.

Implementation

  • packages/cli/src/commands/ - Command implementations
  • packages/cli/src/index.ts - CLI entry point
  • Entry point: #!/usr/bin/env bun (runs with Bun directly)

Do / Don't

  • Do use --json flag for automation/agents/scripts
  • Do check exit codes in shell scripts
  • Do pass name argument to init in CI/CD (non-interactive required)
  • Don't rely on interactive prompts outside terminal
  • Don't parse stdout (use --json for structured output)