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

@blackasteroid/icf

v1.3.1

Published

Incident Command Framework — CLI-first incident management backed by GitHub

Readme

icf — Incident Command Framework

Manage service incidents through GitHub Issues from your terminal. Every incident is a GitHub issue with structured labels and a timeline of comments — no third-party tools, no vendor lock-in, and a full audit trail in your existing GitHub org.

Install

Homebrew (macOS / Linux)

brew tap BlackAsteroid/tap
brew install icf

npm

npm install -g @blackasteroid/icf

Or try it without installing:

npx @blackasteroid/icf auth login

Quick start

# 1. Authenticate
icf auth login

# 2. Set up your incident repo (creates labels, templates, workflows)
icf init my-org/incidents --create

# 3. Open an incident
icf incident create \
  --severity P1 \
  --service api-gateway \
  --title "High latency on checkout" \
  --description "p99 > 3s since 14:20 UTC"

# 4. Add a timeline entry
icf incident comment INC-001 --message "Identified db query regression"

# 5. Mark as mitigating
icf incident mitigate INC-001 --message "Rolling back to v1.4.2"

# 6. Resolve with root cause
icf incident resolve INC-001 --rca "Unindexed query introduced in v1.4.3, rolled back"

Commands

icf auth

icf auth login                    # Prompted for a GitHub token
icf auth login --token '$TOKEN'   # Token from env var (recommended in scripts)
icf auth status
icf auth logout

Token needs these scopes: repo, workflow, write:packages.
Create one at: github.com/settings/tokens/new?scopes=repo,workflow,write:packages&description=icf-cli

icf init <owner/repo>

Sets up a GitHub repo for incident tracking. Creates severity and status labels, an issue template, a milestone, and two GitHub Actions workflows (triage and escalation).

icf init my-org/incidents              # Configure an existing repo
icf init my-org/incidents --create     # Create the repo first, then configure
icf init my-org/incidents --create --public
icf init my-org/incidents --no-workflows   # Skip pushing GitHub Actions

icf incident

# Open an incident
icf incident create --severity P0 --service payments --title "DB unreachable" --description "..."

# List
icf incident list                       # Open incidents
icf incident list --severity P0         # Filter by severity
icf incident list --status mitigating   # Filter by status
icf incident list --all                 # Include resolved

# View
icf incident show INC-001

# Update severity or service
icf incident update INC-001 --severity P1
icf incident update INC-001 --service auth-svc --severity P2

# Add a timeline entry
icf incident comment INC-001 --message "Deployed hotfix, monitoring"
icf incident comment INC-001 -m "Rollback complete"
echo "Status update" | icf incident comment INC-001

# Mark as mitigating
icf incident mitigate INC-001
icf incident mitigate INC-001 --message "Fix deployed, watching metrics"

# Resolve
icf incident resolve INC-001 --rca "Root cause description"
icf incident resolve INC-001 --rca-file ./rca.md

icf config

icf config show
icf config validate
icf config validate --repo my-org/incidents

icf upgrade

icf upgrade           # Update to latest published version
icf upgrade --json

Severity levels

| Level | Meaning | |-------|---------| | P0 | Critical — full outage or data loss | | P1 | High — major feature broken | | P2 | Medium — partial degradation | | P3 | Low — minor issue |

Incident lifecycle

openmitigatingresolved

Each transition posts a timeline comment. Resolved incidents are closed as GitHub issues.


Using icf as an agent

icf is designed to be operated by AI agents. Every command produces machine-readable output and accepts structured input.

JSON output mode

Add --json to any command, or set ICF_JSON=1 globally:

# Single command
icf incident list --json

# All commands for this session
ICF_JSON=1 icf incident create --severity P1 --service api --title "Down"

Response envelope

All responses follow the same shape:

// Success
{ "ok": true, "data": { ... } }

// Error
{ "ok": false, "error": "Incident INC-999 not found", "code": 3 }

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | General error | | 2 | Network error | | 3 | Not found | | 4 | Auth error | | 5 | Validation error |

Creating incidents from a JSON payload

Agents can pipe a JSON object directly to incident create:

# Inline flag
icf incident create \
  --input-json '{"title":"DB latency","service":"postgres","severity":"P1","description":"p99 > 5s"}' \
  --json

# Stdin pipe
echo '{"title":"DB latency","service":"postgres","severity":"P1","description":"p99 > 5s"}' \
  | icf incident create --input-json --json

# From a file
cat incident-payload.json | icf incident create --input-json --json

Required fields in the payload: title, severity. Optional: service, description, assign.

Full agent pipeline

# 1. Create
INC=$(icf incident create \
  --severity P1 --service api --title "Latency spike" --description "p99 > 3s" \
  --json | jq -r '.data.id')

# 2. Add investigation notes
icf incident comment $INC --message "Traced to db query regression" --json

# 3. Mark as mitigating
icf incident mitigate $INC --message "Rollback initiated" --json

# 4. Resolve
icf incident resolve $INC --rca "Rolled back v1.4.3, issue fixed" --json

Version check

icf version --json
# → { "ok": true, "data": { "version": "1.1.0", "name": "@blackasteroid/icf" } }

icf --version --json
# → same

Security

Report vulnerabilities privately to [email protected]. See SECURITY.md.

License

MIT — Black Asteroid