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

sift-autopsy

v1.0.1

Published

Autopsy AI-generated code changes. Detect hallucinated APIs, risky code, and unnecessary complexity.

Readme

Sift 🔍

The "Autopsy" Suite for AI-Generated Code

Sift is a powerful, interactive code critic designed to bridge the gap between AI code generation and human understanding. It uses a Deterministic + AI approach to catch hallucinations, risky patterns, and unnecessary complexity in your git diffs.


🚀 Quick Start

1. Installation

npm install -g sift-autopsy

2. Authenticate

Get a free API key from Groq and connect it:

sift auth gsk_your_key_here

3. Initialize your Project (Recommended)

This creates a sift.config.json file where you can customize Sift's behavior:

sift init

Check out the full Configuration Guide for advanced settings.

4. Launch the Cockpit

Start the interactive TUI to browse findings and watch changes live:

sift tui

✨ Key Features

🛠️ Interactive TUI Cockpit

Browse your code findings in a rich terminal interface. Navigate with arrow keys, preview snippets, and trigger AI autopsies on demand.

💓 Live Watch Mode

The "Heartbeat" of Sift. Turn on Watch Mode (W) to have Sift monitor your codebase live. As you save files, the TUI refreshes instantly with new findings.

🕵️ Deterministic Critics

Sift doesn't just guess. It uses a suite of local critics to find objective issues:

  • Hallucination Critic: Detects non-existent APIs often "invented" by LLMs.
  • Risk Critic: Flags dangerous patterns (e.g., raw eval, hardcoded secrets).
  • Complexity Critic: Identifies code that is harder to read than it needs to be.

🧠 AI Autopsy (ELI5)

When you need a deeper explanation, Sift calls upon its "Wise Mentor" AI to provide:

  • Teachable Analogies: Explaining complex bugs like you're 10.
  • Rewrite Suggestions: Better ways to structure your logic.
  • Deep Context: Why the code was flagged in the first place.

🎹 Keyboard Shortcuts (TUI)

| Key | Action | |-----|--------| | S | Open Settings Menu | | W | Toggle Live Watch Mode | | L | Manually trigger AI Autopsy | | / | Navigate Findings | | Q | Exit Sift |


📖 Under the Hood

Want to know how Sift actually works? Check out our Architecture Deep Dive (ELI10).


❓ Troubleshooting

"Command Not Found" (sift is not recognized)

If you've installed Sift globally but your terminal can't find it, your NPM global bin folder might not be in your system's PATH.

Windows Fix (PowerShell):

$npmPath = "C:\Users\yugan\AppData\Roaming\npm"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";" + $npmPath, "User")

Note: You must restart your terminal after running this.


🛡️ Privacy & Security

  • Local First: Analysis starts on your machine.
  • Minimal Data: Only the relevant code snippets are sent to the AI for enrichment.
  • Secure Auth: Your keys are stored locally in ~/.siftcfg.

📄 License

MIT © Yugank Das