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

sentry

v0.31.0

Published

Sentry CLI - A command-line interface for using Sentry built by robots and humans for robots and humans

Downloads

71,377

Readme


Installation

Install Script (Recommended)

curl https://cli.sentry.dev/install -fsS | bash

Homebrew

brew install getsentry/tools/sentry

Package Managers

npm install -g sentry
pnpm add -g sentry
bun add -g sentry

Run Without Installing

npx sentry@latest

Quick Start

# Authenticate with Sentry
sentry auth login

# List issues (auto-detects project from your codebase)
sentry issue list

# Get AI-powered root cause analysis
sentry issue explain PROJ-ABC

# Generate a fix plan
sentry issue plan PROJ-ABC

Features

  • DSN Auto-Detection - Automatically detects your project from .env files or source code. No flags needed.
  • Seer AI Integration - Get root cause analysis and fix plans directly in your terminal.
  • Monorepo Support - Works with multiple projects, generates short aliases for easy navigation.
  • JSON Output - All commands support --json for scripting and pipelines.
  • Open in Browser - Use -w flag to open any resource in your browser.

Commands

Run sentry --help to see all available commands, or browse the command reference.

Configuration

Credentials are stored in ~/.sentry/ with restricted permissions (mode 600).

Library Usage

Use Sentry CLI programmatically in Node.js (≥22.12) or Bun without spawning a subprocess:

import createSentrySDK from "sentry";

const sdk = createSentrySDK({ token: "sntrys_..." });

// Typed methods for every CLI command
const orgs = await sdk.org.list();
const issues = await sdk.issue.list({ orgProject: "acme/frontend", limit: 5 });
const issue = await sdk.issue.view({ issue: "ACME-123" });

// Nested commands
await sdk.dashboard.widget.add({ display: "line", query: "count" }, "my-org/my-dashboard");

// Escape hatch for any CLI command
const version = await sdk.run("--version");
const text = await sdk.run("issue", "list", "-l", "5");

Options (all optional):

  • token — Auth token. Falls back to SENTRY_AUTH_TOKEN / SENTRY_TOKEN env vars.
  • url — Sentry instance URL for self-hosted (e.g., "sentry.example.com").
  • org — Default organization slug (avoids passing it on every call).
  • project — Default project slug.
  • text — Return human-readable string instead of parsed JSON (affects run() only).
  • cwd — Working directory for DSN auto-detection. Defaults to process.cwd().
  • signalAbortSignal to cancel streaming commands (--follow, --refresh).

Streaming commands return AsyncIterable — use for await...of and break to stop.

Errors are thrown as SentryError with .exitCode and .stderr.


Development

Prerequisites

Setup

git clone https://github.com/getsentry/cli.git
cd cli
bun install

Running Locally

# Run CLI in development mode
bun run dev --help

# With environment variables
bun run --env-file=.env.local src/bin.ts --help

Scripts

bun run build         # Build for current platform
bun run typecheck     # Type checking
bun run lint          # Check for issues
bun run lint:fix      # Auto-fix issues
bun run test:unit     # Run unit tests
bun run test:e2e      # Run end-to-end tests
bun run generate:docs # Regenerate command docs and skills

See DEVELOPMENT.md for detailed setup and CONTRIBUTING.md for contribution guidelines.

License

FSL-1.1-Apache-2.0