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

gitchamber

v0.1.1

Published

Fetch source code for packages to give coding agents deeper context

Downloads

32

Readme

gitchamber

Fetch source code for packages to give coding agents deeper context.

Downloads the full repository source for npm, PyPI, or crates.io packages (and GitHub/GitLab repos) into node_modules/.gitchamber/ so agents can read the actual implementation, not just type declarations.

Install

npm install -g gitchamber

Usage

# npm packages
gitchamber zod
gitchamber @babel/core
gitchamber [email protected]

# PyPI packages
gitchamber pypi:requests
gitchamber pypi:flask==3.0.0

# crates.io
gitchamber crates:serde
gitchamber crates:[email protected]

# GitHub repos
gitchamber vercel/ai
gitchamber facebook/react#main
gitchamber https://github.com/denoland/deno

Source code ends up in node_modules/.gitchamber/<host>/<owner>/<repo>/.

Commands

# Fetch one or more packages/repos
gitchamber zod react vercel/ai

# List everything that's been fetched
gitchamber list
gitchamber list --json

# Remove specific packages or repos
gitchamber remove zod
gitchamber rm vercel/ai

# Remove everything
gitchamber clean
gitchamber clean --npm      # only npm packages
gitchamber clean --repos    # only repos

How it works

  1. Resolves the package through its registry API (npm registry, PyPI JSON API, crates.io API)
  2. Extracts the repository URL from the package metadata
  3. Shallow-clones (git clone --depth 1) the repo at the matching version tag
  4. Strips the .git directory to save space
  5. Tracks everything in node_modules/.gitchamber/sources.json

For npm packages, gitchamber detects the installed version from node_modules, lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock), or package.json -- so the source matches what you actually have installed.

Why node_modules/.gitchamber/

Fork of opensrc that stores source code in node_modules/.gitchamber/ instead of opensrc/.

Storing inside node_modules/ is better because:

  • Already gitignored. Every project already ignores node_modules/. No need to modify .gitignore or prompt the user for permission.
  • Vitest ignores it. Vitest skips node_modules/ by default. With opensrc/, test runners could pick up test files from fetched source code and try to run them.
  • TypeScript ignores it. tsc skips node_modules/ by default. No need to add opensrc to tsconfig.json exclude.
  • Other tools ignore it too. Linters, formatters, bundlers, search indexers -- nearly every tool in the ecosystem already knows to skip node_modules/. Fetched source code is invisible to your toolchain by default.
  • No accidental commits. You can't accidentally git add fetched source code because node_modules/ is always ignored.

The opensrc/ approach requires modifying .gitignore, tsconfig.json, and potentially other tool configs. node_modules/.gitchamber/ needs zero configuration.

Other changes from opensrc

  • Removed all file modification logic (.gitignore, tsconfig.json, AGENTS.md editing)
  • Removed the --modify flag and permission prompt
  • Uses goke instead of commander for the CLI framework