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

@pradhankukiran/crashscope

v0.1.1

Published

AI-powered error triage CLI: pulls errors from Sentry / Rollbar / Bugsnag / Honeybadger, joins them with PostHog or LogRocket session replays, and uses Claude to produce ranked, actionable triage reports.

Readme

crashscope

AI-powered error triage in your terminal. crashscope pulls recent errors from your error tracker, joins each one with the session replay that produced it, and asks Claude to produce a structured triage report — a hypothesis, a root-cause guess, suggested files to inspect, the user journey leading to the crash, and a confidence level.

Supported providers:

  • Error trackers: Sentry, Rollbar, Bugsnag, Honeybadger
  • Session replays: PostHog, LogRocket
  • Delivery: terminal, Slack (incoming webhook), JSON
  • LLM auth: Anthropic API key or local Claude Code subscription

Install

From npm:

npm i -g @pradhankukiran/crashscope
crashscope --version

Or from source:

git clone https://github.com/pradhankukiran/crashscope.git
cd crashscope
pnpm install
pnpm -r build
alias crashscope="node $PWD/packages/cli/bin/crashscope"
crashscope --version

Node 20 or newer is required.

Quick start

crashscope init                  # interactive wizard, writes ~/.crashscope/config.json
crashscope triage                # default: last 24h, up to 25 issues
crashscope triage --since 7d --limit 50
crashscope triage --json | jq .

Commands

| Command | What it does | | ------------------------ | --------------------------------------------------------------- | | crashscope init | Interactive setup wizard. Validates required fields are present and writes a chmod-600 config. | | crashscope triage | Fetch errors, join with sessions, triage with Claude, deliver to configured outputs. | | crashscope config show | Print the current config with credentials masked. | | crashscope config path | Print the path crashscope would read or write. | | crashscope config edit | Open the config in $EDITOR (or $VISUAL). |

triage flags

| Flag | Default | Notes | | --------------------- | ------------------ | ------------------------------------------------------------------ | | --since <duration> | 24h | Accepts 1h / 6h / 24h / 7d / 14d / 30d. | | --limit <n> | 25 | Positive integer — maximum errors to triage. | | --severity <list> | all | Comma-separated: fatal, error, warning, info. | | --output <list> | config.outputs | Comma-separated: terminal, slack, json. Overrides the config. | | --json | off | Alias for --output json. | | --debug | off | Verbose stack traces; writes raw API errors to ~/.crashscope/debug.log (tokens redacted). | | --config <path> | ~/.crashscope/config.json | Load configuration from an alternate location. |

Exit codes

| Code | Meaning | | ---- | ------------------------------------------------------------------ | | 0 | Success. | | 1 | User error (bad arguments, missing config, validation failure). | | 2 | Adapter or upstream API error (Sentry/Rollbar/PostHog/etc.). | | 3 | Anthropic authentication failed. |

Configuration

Configuration lives at ~/.crashscope/config.json (or $XDG_CONFIG_HOME/crashscope/config.json when XDG_CONFIG_HOME is set). The file is written with mode 0600 by both crashscope init and any subsequent re-runs.

Run crashscope config path to print the resolved location, or crashscope config show to inspect the file with credentials masked.

A minimal configuration looks like:

{
  "errorProvider": "sentry",
  "sessionProvider": "posthog",
  "outputs": ["terminal"],
  "credentials": {
    "sentry": {
      "token": "sntrys_...",
      "org": "acme",
      "project": "web"
    },
    "posthog": {
      "apiKey": "phx_...",
      "projectId": "12345"
    }
  }
}

Add outputs: ["terminal", "slack"] and a credentials.slack.webhookUrl to deliver every report to a Slack channel as well as your terminal.

Anthropic auth

crashscope needs to talk to Claude. It resolves credentials in this order:

  1. anthropic.apiKey in your crashscope config.
  2. ANTHROPIC_API_KEY from your environment.
  3. A local Claude Code installation — the claude binary on PATH and a ~/.claude directory created by signing in at claude.com/code.

crashscope init runs the same detection at the end of the wizard, so you can confirm "✓ Detected Claude Code subscription" or "✓ Anthropic API key configured" before your first triage run.

Slack delivery

Slack is supported via incoming webhooks. Create a webhook for the target channel and paste the URL into the wizard. The CLI does not log webhook URLs to disk or stderr, and crashscope config show masks the secret path component.

Bot tokens (xoxb-...) are accepted in the config schema for forward compatibility but are not yet wired to chat.postMessage; use a webhook for now.

Troubleshooting

No crashscope config found — run crashscope init, or pass --config to point at an existing file.

Config at … failed schema validationcrashscope config edit opens the file; the error message lists every offending path. Re-run crashscope init to regenerate from scratch.

Authentication error / anthropic — try setting ANTHROPIC_API_KEY in your shell, or install Claude Code and sign in. crashscope init will tell you which path it picked.

Slack webhook rejected delivery (HTTP 404) — the webhook URL is wrong or has been revoked. Generate a new one in your Slack workspace and re-run crashscope init.

LogRocket / Bugsnag returns empty results — both providers gate parts of their API behind plan tiers. Run with --debug to capture the raw response in ~/.crashscope/debug.log (with secrets redacted).

No issues found — your window may be too narrow or your filters too strict. Try widening with --since 7d, or generate synthetic data with the test harness and re-run.

Claude SDK timeouts / hangs — re-run with --debug and inspect ~/.crashscope/debug.log (the path is the same on all platforms, regardless of $XDG_CONFIG_HOME).

Server: Slack /triage, REST API

The CLI is the primary surface. If your team also wants a Slack /triage command or an HTTP endpoint, deploy the optional Next.js server — same adapters, same investigation loop. See packages/server/README.md for setup.

License

MIT — see LICENSE at the repo root.