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

@crownmedia/codebrief

v1.0.0

Published

Instantly understand any codebase. AI-powered codebase explainer that generates a human-readable CODEBASE.md using Claude.

Readme

codebrief

Instantly understand any codebase. One command.

# Run directly from GitHub (available now)
npx github:Android-Tipster/codebrief

# Or install from npm (coming soon)
npx codebrief

codebrief scans your project, sends the most important files to Claude AI, and generates a CODEBASE.md that explains the architecture, key files, data flows, and a day-one onboarding guide. No config. No install. Just run it.


Why

You just cloned a repo. Or inherited one. Or you're reviewing a PR in a codebase you barely know.

Reading every file takes hours. Asking a coworker takes interrupting them. Asking ChatGPT gives you generic nonsense because it doesn't see your actual code.

codebrief reads the actual source files, finds the ones that matter, and gives you a document you can open in Cursor, Obsidian, or Notion and actually use.


Quick Start

1. Get an Anthropic API key at console.anthropic.com

2. Set it:

export ANTHROPIC_API_KEY=sk-ant-...

3. Run it in your project directory:

npx github:Android-Tipster/codebrief

That's it. CODEBASE.md appears in your current directory.


What Gets Generated

# my-project — Codebase Guide

## What This Project Does
...

## Tech Stack
...

## Architecture Overview
...

## Entry Points
...

## Key Files
...

## Data Flow
...

## Developer Onboarding Checklist
...

Examples

# Analyze current directory
npx github:Android-Tipster/codebrief

# Analyze a specific subfolder
npx github:Android-Tipster/codebrief ./src

# Save to a custom path
npx github:Android-Tipster/codebrief --output docs/architecture.md

# Print to terminal instead of saving
npx github:Android-Tipster/codebrief --no-save

# Analyze more files (slower but more thorough)
npx github:Android-Tipster/codebrief --max-files 40

# See what's happening under the hood
npx github:Android-Tipster/codebrief --verbose

How It Works

  1. Scans your project for source files (.js, .ts, .py, .go, .rs, .rb, .java, and more)
  2. Filters noise: skips node_modules, dist, .git, build dirs, and files that won't help a developer understand the project
  3. Prioritizes entry points, config files, and high-level modules first
  4. Respects .gitignore so it doesn't send garbage to the API
  5. Sends the top 25 files (configurable) to Claude Haiku
  6. Returns a structured Markdown document you can commit, share, or keep private

All this happens with zero telemetry. Your code goes from your filesystem to Anthropic's API (using your key) and nowhere else.


Supported Languages

JavaScript, TypeScript, Python, Go, Rust, Ruby, Java, C/C++, C#, PHP, Swift, Kotlin, Scala, R, Shell scripts, SQL, GraphQL, Prisma, Terraform, and more.


Options

| Flag | Default | Description | |------|---------|-------------| | [directory] | . | Path to analyze | | --output, -o | CODEBASE.md | Output file path | | --no-save | off | Print to stdout | | --max-files | 25 | Max files to analyze | | --verbose | off | Show progress details | | --format | markdown | Output format |


Requirements

Cost per run: approximately $0.001–0.005 (Claude Haiku pricing). Under half a cent.


Tips

Commit it. CODEBASE.md is useful as a living document. Regenerate it after major refactors.

Point it at a subfolder. npx codebrief ./api analyzes just one layer of a monorepo.

Use --no-save in scripts. Pipe the output into other tools: npx codebrief --no-save | pbcopy


License

MIT


Built with

Claude Haiku for AI analysis. No frameworks, no dependencies — just Node.js built-ins.


Made by Noah Albert