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

agentsbestfriend

v0.12.0

Published

Give your AI coding agents superpowers — a local MCP server for fast, token-efficient code navigation, search & analysis.

Readme

agentsbestfriend

Give your AI coding agents superpowers — a local MCP server for fast, token-efficient code navigation, search & analysis.

Works with VS Code Copilot, Cursor, Claude Code/Desktop, Codex, Cline, Zed, and any other MCP-compatible agent.

What it does

AI agents waste tokens re-reading files and searching blindly. ABF gives them purpose-built tools that return exactly what they need:

| Tool | Purpose | |---|---| | abf_search | Code search — exact (ripgrep), keyword-ranked, or semantic | | abf_symbols | Functions, classes, exports in a file (AST-based) | | abf_chunk | Smart file chunk by symbol name or line range | | abf_project_overview | Tech stack, structure, dependencies at a glance | | abf_dependencies | Import graph — who imports what | | abf_impact | Find all usages of a symbol across the project | | abf_git | Commits, blame, diff (recent/staged/unstaged) | | abf_file_summary | Search LLM-generated file summaries | | abf_conventions | Detected naming & style conventions | | abf_index | Index status & rebuild | | abf_ping | Health check |

Install

npm install -g agentsbestfriend

Prerequisites

  • Node.js ≥ 20
  • ripgrepbrew install ripgrep / apt install ripgrep
  • git
  • Ollama (optional, for summaries & semantic search) — ollama.com

Quick Start

# Initialize a project (indexes files, optionally installs MCP for your agents)
abf init

# Or initialize a specific path
abf init /path/to/project

# Check everything is working
abf doctor

During abf init, you'll be asked whether to install ABF as an MCP server for your coding agents. Pick the agents you use (Cursor, VS Code, Claude Code, etc.) and ABF handles the rest via add-mcp.

Manual Agent Setup

If you prefer to configure manually, add ABF as a stdio MCP server:

VS Code / GitHub Copilot (.vscode/mcp.json):

{
  "servers": {
    "abf": {
      "command": "abf",
      "args": ["start"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "abf": {
      "command": "abf",
      "args": ["start"]
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "abf": {
      "command": "abf",
      "args": ["start"]
    }
  }
}

CLI Commands

abf start         Start MCP server in stdio mode (used by agents)
abf init [path]   Initialize index & optionally install MCP for agents
abf index [path]  Re-index a project
abf status [path] Show index status
abf config        Interactive configuration editor
abf doctor        System health checks (Node, ripgrep, git, Ollama)
abf portal        Interactive terminal dashboard

How It Works

ABF maintains a lightweight SQLite index (.abf/index.db) per project containing:

  • File metadata — paths, hashes, languages, line counts
  • Symbols — functions, classes, interfaces, types extracted via AST (ts-morph for TS/JS, regex for Python & others)
  • Imports — dependency edges between files
  • Summaries — LLM-generated file descriptions (optional, via Ollama)
  • Embeddings — vectors for semantic search (optional, via Ollama)

The index updates incrementally — only changed files are re-processed.

Optional: LLM Enrichment

With Ollama running locally, ABF can generate file summaries and embeddings for semantic search:

ollama pull qwen2.5-coder:1.5b    # summaries
ollama pull nomic-embed-text       # embeddings

Without Ollama, all tools work normally — semantic search falls back to keyword mode.

Configuration

Global config at ~/.abf/config.json. Edit with abf config or abf portal.

{
  "llm": {
    "provider": "ollama",
    "ollama": {
      "baseUrl": "http://localhost:11434",
      "summaryModel": "qwen2.5-coder:1.5b",
      "embeddingModel": "nomic-embed-text"
    }
  },
  "indexing": {
    "autoWatch": true,
    "respectGitignore": true,
    "maxFileSizeKb": 512
  },
  "search": {
    "defaultMaxResults": 20
  }
}

Links

License

MIT