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

@ahmadforhat/sentry-cli

v0.0.4

Published

Simple CLI for Sentry issue management

Readme

Sentry CLI

A simple command-line tool for managing and monitoring Sentry issues. Perfect for integrating Sentry into your workflows or AI-powered debugging assistants.

Features

  • 🔐 Secure credential storage
  • 📊 Fetch detailed issue information with latest events
  • 🎯 Get prioritized unresolved issues sorted by frequency

Installation

Global Installation (Recommended)

npm install -g @ahmadforhat/sentry-cli

From Source

git clone <repository-url>
cd sentry-cli
npm install
npm run build
npm install -g .

Quick Start

1. Login

Save your Sentry credentials (you'll be prompted):

sentry-cli login

You'll need:

  • API Token: Generate from Sentry → Settings → Account → API → Auth Tokens
  • Organization Slug: Found in your Sentry URL (e.g., my-org from https://sentry.io/organizations/my-org/)

2. Get Issue Details

Fetch a specific issue by ID with its latest event:

sentry-cli get-issue 123456

Output includes:

  • Issue metadata (title, status, counts, etc.)
  • Latest event details (stack trace, context, breadcrumbs)

3. Get Recent Issues

Fetch unresolved issues that occurred in the last N hours, sorted by frequency:

sentry-cli get-last-issues --24

Examples:

sentry-cli get-last-issues --1    # Last hour (quick check)
sentry-cli get-last-issues --24   # Last 24 hours (daily review)
sentry-cli get-last-issues --168  # Last week

Returns:

  • Up to 50 unresolved issues
  • Sorted by event frequency (most critical first)
  • Includes 24h statistics
  • Perfect for AI prioritization and grouping

Commands

| Command | Description | |---------|-------------| | sentry-cli login | Configure API credentials | | sentry-cli get-issue <id> | Get issue details + latest event | | sentry-cli get-last-issues --<hours> | Get recent issues by frequency | | sentry-cli --help | Show help information | | sentry-cli --version | Show version number |

Configuration

Credentials are securely stored in ~/.sentry-cli/config.json

To update credentials, simply run sentry-cli login again.

Use Cases

  • AI Debugging: Feed issue data to Claude or other AI assistants for analysis
  • Daily Standups: Quickly review top issues from the last 24 hours
  • CI/CD: Automate issue monitoring in your pipelines
  • Scripting: Parse JSON output for custom workflows

Development

npm run dev    # Watch mode for development
npm run build  # Build TypeScript to JavaScript

Publishing

npm run build
npm publish

License

ISC