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

ai-see

v1.0.1

Published

Give your AI coding agent x-ray vision into any codebase.

Readme

ai-see

Give your AI coding agent x-ray vision into any codebase.

ai-see is a lightning-fast, zero-dependency, local environment context gathering tool purpose-built for AI Coding Agents and LLMs.

Unlike human-facing tools, ai-see always outputs deterministic, structured JSON without ANSI colors or interactive prompts. More importantly, it features an intelligent --budget system to protect your limited LLM context window by summarizing or truncating outputs when they get too large.


The "One Command" Context Injection

When an AI drops into a new repository, it usually takes ~5 round-trips to figure out what's going on. Compress that into 1 command:

npx ai-see scout --budget=3000

scout automatically runs env (to detect package managers, Node version, frameworks, test suites), tree (to map directory structure), reads README.md and .cursorrules / AGENTS.md, and grabs git status. It combines it all into a single JSON object.

(Try it yourself: npx ai-see scout --pretty)


Injection & Self-Propagation

Make any repository instantly understandable to future AI agents by running:

npx ai-see init

This will automatically find your AGENTS.md or .cursorrules and inject a standard system prompt snippet instructing AIs to use ai-see before modifying the project.


Core Commands

For AI tools, use these raw JSON endpoints:

1. env

Provides a snapshot of the tech stack, inferred frameworks, test commands, and basic git state.

npx ai-see env

2. tree

Maps directory structure with smart array-compaction to save tokens. Honors .gitignore by default.

npx ai-see tree src/ --depth=3

3. read

Surgically exact file reading. Supports line ranges and JSON key extraction.

# Extract only dependencies
npx ai-see read package.json --keys=dependencies,scripts

# Read only the failing lines
npx ai-see read src/auth.ts --lines=45-80

4. diff

Extract line modifications and status. Combine with --full for unified patch hunks.

npx ai-see diff
npx ai-see diff --full

5. help

If an agent forgets how to use the tool, it can self-heal by calling help to receive a structured JSON API guide instead of a human-formatted text blob.

npx ai-see help

Zero-Dependency & Speed

This package ships as a single, fully-bundled executable (cli.js). It uses only standard Node.js APIs (node:fs, node:child_process). Execution is essentially instantaneous.

Designed specifically for Aider, Cursor, Cline, and custom LLM workflows where every token matters.