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

curl-review

v0.3.3

Published

Safely inspect and optionally execute curl|sh install scripts

Readme

curl-review

Safely inspect and optionally execute curl | sh install scripts.

Instead of blindly piping a URL to your shell, curl-review downloads the script, lets you view it with syntax highlighting, and optionally runs an AI security review via Claude Code before execution.

Install

npm install -g curl-review

Or link locally:

git clone https://github.com/ytspar/curl-review.git
cd curl-review
npm install && npm run build
npm link

Usage

curl-review https://example.com/install.sh

With the original intercepted command (used by tirith integration):

curl-review https://example.com/install.sh --original "curl -fsSL https://example.com/install.sh | sh"

Non-interactive mode (review then execute):

curl-review https://example.com/install.sh --execute

Interactive Menu

After downloading, you get an interactive menu:

┌─ curl-review ─────────────────────────────────────────────┐
│  Intercepted  curl -fsSL https://example.com/install.sh | sh
│
│  URL          https://example.com/install.sh
│  Size         264 lines (12.4KB)
│  Claude       ✓ ready
└──────────────────────────────────────────────────────────┘

? What would you like to do?
❯ ℹ View script
  🛡️ Security review
  ▶ Execute script (not yet reviewed)
  ✗ Cancel
  • View script — syntax-highlighted via bat (falls back to less)
  • Security review — sends the script to Claude for analysis of malicious patterns, privilege escalation, obfuscated code, and unexpected network calls
  • Execute — runs the script; prompts for confirmation if unreviewed or flagged dangerous
  • Cancel — exit without running

After a security review, the verdict updates the menu:

  • SAFE — execute option shows "no issues found"
  • CAUTION — execute option shows "proceed with caution"
  • DANGEROUS — execute is blocked unless explicitly confirmed

Tirith Integration

curl-review integrates with tirith terminal security guard. When tirith blocks a curl | sh paste, the zsh hook rewrites the command to curl-review automatically.

Add this to your .zshrc after tirith initialization:

if (( $+functions[_tirith_bracketed_paste] )); then
  _tirith_bracketed_paste() {
    local old_buffer="$BUFFER" old_cursor="$CURSOR"
    zle _tirith_original_bracketed_paste 2>/dev/null || zle .bracketed-paste
    [[ "${TIRITH:-}" == "0" ]] && return

    local new_buffer="$BUFFER"
    local pasted="${new_buffer:$old_cursor:$((${#new_buffer} - ${#old_buffer}))}"
    [[ -z "$pasted" ]] && return

    local tmpfile=$(mktemp)
    echo -n "$pasted" | command tirith paste --shell posix >"$tmpfile" 2>&1
    local rc=$?
    local output=$(<"$tmpfile")
    command rm -f "$tmpfile"

    if [[ $rc -eq 1 ]]; then
      local url
      url=$(echo "$pasted" | grep -oE 'https?://[^ |]+')
      if [[ -n "$url" ]]; then
        BUFFER="${old_buffer}curl-review ${(q)url} --original ${(q)pasted}"
        CURSOR=${#BUFFER}
        return
      fi
      BUFFER="$old_buffer"
      CURSOR=$old_cursor
      _tirith_output ""
      _tirith_output "paste> $pasted"
      [[ -n "$output" ]] && _tirith_output "$output"
      zle send-break
    elif [[ $rc -eq 2 ]]; then
      [[ -n "$output" ]] && { _tirith_output ""; _tirith_output "$output"; }
    fi
  }
fi

Optional Dependencies

  • bat — syntax highlighting (falls back to less)
  • glow — terminal markdown rendering for security review output (falls back to basic ANSI formatting)
  • claude — AI security review (run claude /login to authenticate)

License

MIT