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

@travsr.com/travsr

v0.9.0

Published

The code graph that lives next to git.

Readme

travsr

The code graph that lives next to git.

Source code is a deterministic graph, not unstructured text. Travsr builds that graph on every commit and exposes it via MCP so AI agents traverse edges instead of guessing from vector chunks — 80% fewer tokens, zero structural hallucinations.

CI npm License: MIT


Quickstart

# 1. Install
npm install -g @travsr.com/travsr

# 2. Index your repo
cd your-project
travsr init

# 3. Connect to Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "travsr": {
      "command": "travsr",
      "args": ["mcp", "--stdio"]
    }
  }
}

Restart Claude Desktop. Ask: "Who calls PaymentService.charge?"


Works with Every MCP-Compatible AI Tool

Travsr speaks MCP — the open standard for connecting AI agents to tools. The same travsr mcp --stdio command works with any client that supports it.

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "travsr": {
      "command": "travsr",
      "args": ["mcp", "--stdio"]
    }
  }
}

Then ask Cursor: "What does PaymentService depend on?"

GitHub Copilot (VS Code)

Requires VS Code 1.99+. Add to .vscode/mcp.json in your project:

{
  "servers": {
    "travsr": {
      "type": "stdio",
      "command": "travsr",
      "args": ["mcp", "--stdio"]
    }
  }
}

Copilot Chat will automatically discover the get_dependencies and get_callers tools and invoke them when answering questions about your code.

Cline (VS Code extension)

In the Cline extension settings → MCP Servers → Add server:

{
  "travsr": {
    "command": "travsr",
    "args": ["mcp", "--stdio"],
    "disabled": false
  }
}

Continue.dev

Add to ~/.continue/config.json under mcpServers:

{
  "mcpServers": [
    {
      "name": "travsr",
      "command": "travsr",
      "args": ["mcp", "--stdio"]
    }
  ]
}

Any other MCP client

The pattern is always the same — point your client at travsr mcp --stdio. Travsr handles the rest.

command: travsr
args:    ["mcp", "--stdio"]
type:    stdio

MCP Tools

| Tool | Description | |---|---| | get_dependencies(file) | Return all imports/dependencies of a file | | get_callers(symbol) | Return all nodes with an incoming edge to a symbol |


CLI Commands

travsr init          Index the current repo and install the git hook
travsr status        Show graph stats and last-indexed commit SHA
travsr ask <query>   BFS lookup from the terminal (no MCP client needed)
travsr mcp --stdio   Start the MCP stdio server (used by Claude Desktop)

How It Works

git commit
  └─▶ post-commit hook
        └─▶ travsr hook-run <changed files>
              └─▶ SHA256 delta — only reindex changed files
                    └─▶ SQLite graph DB  (.travsr/graph.db)
                          └─▶ MCP stdio server reads on demand

Language support: TypeScript / TSX. Python, Go, Rust arriving in Phase 2.


Build from Source

git clone https://github.com/Travsr-com/travsr
cd travsr
cargo build --release   # requires Rust 1.75+

Troubleshooting

  • Binary not found after install?
    Set TRAVSR_BINARY=/path/to/travsr to point to a local build.
  • Corporate proxy blocks the postinstall download?
    Same — set TRAVSR_BINARY to skip the remote fetch.

Contributing

See CONTRIBUTING.md. Issues and PRs welcome. Licensed MIT.