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

immanence

v0.1.0

Published

Codebase exploration utility with HTTP, CLI, and MCP interfaces.

Readme


Immanence resolves a repo, pins a commit, downloads a cached source snapshot, and answers your question with file-level citations tied to that commit.

im·ma·nence /ˈimənəns/ The quality of being contained within; inherent. Here, answers come from the pinned codebase itself.

How It Works

 You ask a question
       ↓
 Repo is resolved (or inferred from the question)
       ↓
 HEAD is pinned to a specific commit SHA
       ↓
 Source snapshot is downloaded & cached locally
       ↓
 The agent inspects the code with tool calls
       ↓
 You get an answer with file + line citations

Three interfaces, same engine:

| Interface | Use case | |-----------|----------| | CLI | One-off questions from your terminal | | HTTP | Integrate into scripts, bots, dashboards | | MCP | Plug into any MCP-compatible AI assistant |

Quick Start

Requirements

  • Node.js 24+
  • git on your PATH

Install & Build

npm install
npm run build

Authenticate

npx immanence auth login
npx immanence auth status   # verify

Ask Something

# Specify a repo explicitly
npx immanence ask \
  --repo honojs/hono \
  --question "How does the router match params and wildcards?"

# Let Immanence figure out which repo you mean
npx immanence ask \
  --question "Where does Next.js get its list of Google fonts?"

# Machine-readable output
npx immanence ask \
  --question "Where does Next.js get its list of Google fonts?" \
  --json

CLI Reference

Commands

| Command | Description | |---------|-------------| | auth login | Authenticate with GitHub | | auth status | Check authentication state | | auth logout | Clear stored credentials | | models | List available models | | ask | Ask a question about a codebase | | serve http | Start the HTTP server | | serve mcp | Start the MCP server |

ask Options

| Flag | Description | |------|-------------| | --repo <repo...> | One or more GitHub repos (owner/name) | | --ref <ref> | Branch, tag, or commit SHA | | --model <model> | Override the default model | | --include-web-search | Augment with Brave web search | | --refresh <mode> | never · if-stale · always | | --max-tool-calls <n> | Cap the number of tool calls | | --json | Emit the full response envelope as JSON |

HTTP API

npm run serve:http   # default: 127.0.0.1:8787

| Method | Endpoint | Purpose | |--------|----------|---------| | GET | /healthz | Health check | | GET | /v1/auth/status | Auth state | | GET | /v1/models | Available models | | POST | /v1/questions | Ask a question |

Example request:

curl -s -X POST http://127.0.0.1:8787/v1/questions \
  -H 'content-type: application/json' \
  -d '{
    "question": "How does the router match params and wildcards?",
    "repos": [{ "repo": "honojs/hono" }]
  }' | jq .

MCP Server

npm run serve:mcp

Exposes a single tool — ask_codebase_question — that any MCP-compatible client can call.

Platform Notes

Windows

Natively supported. Requires git on PATH.

| Path | Default | |------|---------| | Data | %LOCALAPPDATA%\immanence\data | | Cache | %LOCALAPPDATA%\immanence\cache |

Storage & Environment

| Variable | Purpose | Default (Linux/macOS) | |----------|---------|-----------------------| | IMMANENCE_DATA_DIR | Persistent data | ~/.local/share/immanence | | IMMANENCE_CACHE_DIR | Cached snapshots | ~/.cache/immanence | | IMMANENCE_DEFAULT_MODEL | Default model | (built-in) | | BRAVE_SEARCH_API_KEY | Web search augmentation | (disabled) |

Repo snapshots live under $IMMANENCE_DATA_DIR/repos/github.com/… and are keyed by commit SHA.

Limits

  • Public GitHub repos only.
  • Read-only inspection — Immanence never modifies code.
  • No chat memory between questions.

Contributing

npm run dev -- --help   # run from source
npm test                # run the test suite
npm run build           # production build

Snapshots are cached by commit SHA. Refs are refreshed according to --refresh. Final answers always include the pinned SHA so citations stay stable over time.

License

MIT © Kaf