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

codesynapse-pi

v0.1.1

Published

Pi coding agent extension for codesynapse code intelligence

Readme

codesynapse-pi

Pi coding agent extension that brings codesynapse code intelligence into pi.

Architecture

pi agent
└── codesynapse-pi extension
    (session_start · session_shutdown · /codesynapse)
         │
         │  stdin/stdout · JSON-RPC 2.0
         ▼
    codesynapse MCP (Rust binary)
         │
         ▼
    graph index  (~/.codesynapse)

Install

# From npm
pi install npm:codesynapse-pi

# From source
cd pi/
npm install
npm run build
pi -e ./dist/extension.js

Tools (12 curated)

| Tool | Purpose | |------|---------| | codesynapse_context | PRIMARY — search + call graph + source bodies (call this FIRST) | | codesynapse_resolve | BM25+dense hybrid search fallback | | codesynapse_stats | Session dashboard, token savings | | codesynapse_blast_radius | Find everything affected by a change | | codesynapse_hierarchy | Class inheritance tree | | codesynapse_list_graphs | List all available modules | | codesynapse_module_summary | Module overview (nodes, edges, god-nodes) | | codesynapse_outline | Compact class structure (methods, fields, line numbers) | | codesynapse_read_method | Get exact method body via brace tracking | | codesynapse_find_callers | Who calls a symbol | | codesynapse_find_usages | All files referencing a class | | codesynapse_build | Reload graph after module changes |

Commands

  • /codesynapse — Check MCP connectivity and graph status

System Prompt

When codesynapse is detected in PATH, the extension injects guidance telling the LLM to use codesynapse_context(query) as the PRIMARY tool for architecture/mechanism questions.

Lifecycle

  • session_start: Lazy-init MCP process (spawned on first tool call)
  • session_shutdown: SIGTERM → 2s wait → SIGKILL the MCP subprocess

Development

# Install dependencies
npm install

# Build
npm run build

# Run unit tests (no MCP binary needed)
npx tsx --test evals/extension.test.ts

# Run integration tests (requires codesynapse in PATH)
npx tsx --test evals/mcp-integration.test.ts

# Run all tests
npx tsx --test evals/*.test.ts