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

decorated-pi

v0.4.0

Published

A pi extension with better work-flow: patch tool, safety gates, secret redaction, smart @ completion, dynamic AGENTS loading, image fallback, and LSP tools

Readme

decorated-pi

decorated-pi is a practical enhancement pack for Pi.

Install

pi install npm:decorated-pi
pi install git:github.com/lcwecker/decorated-pi
pi install /path/to/decorated-pi

Features

1. Patch Tool

Replaces Pi's built-in edit / write with a stronger patch tool:

  • anchor mechanism — narrows the search range by specifying a unique string that appears before old_str, preventing mismatches in files with repeated patterns
  • mtime tracking — records file modification time on read, rejects patch if the file changed since last read, preventing blind or stale edits
  • explicit overwrite — offer atomic overwrite: true mode for overwrite files or full-file creation to prevent unintened overwrite

2. Secret redaction

Three-layer detection: high-confidence known-format patterns (AWS, GitHub, OpenAI, etc.), config-key regex matching, and adjusted Shannon entropy heuristics for unknown secret-like values.

3. Built-in MCP Client

Zero-config MCP client with two built-in servers:

| Server | Tool Prefix | Source | | --- | --- | --- | | Context7 | context7_* | https://mcp.context7.com/mcp | | Exa | exa_* | https://mcp.exa.ai/mcp |

Project-level config — add custom MCP servers by placing an mcp.json or .mcp.json (also .pi/mcp.json, .agents/mcp.json, .claude/mcp.json and their .-prefixed variants) anywhere in your project tree. Servers found closer to cwd take precedence over ancestor directories.

{
  "mcpServers": {
    "my-server": {
      "url": "https://my-mcp.example.com/mcp",
      "enabled": true
    }
  }
}

Global config — persist custom servers in ~/.pi/agent/decorated-pi.json:

{
  "mcpServers": {
    "my-server": { "url": "https://my-mcp.example.com/mcp" }
  }
}

Priority: project > global > builtin. A server with the same name from a higher-priority source overrides lower ones.

Use /mcp to view connection status and registered tools.

4. Auxiliary Models (Image + Compact)

Uses cheaper models for auxiliary tasks, configured via /dp-model:

  • Image read fallback — when the model reads an image file, detects type via magic bytes, calls a configured vision-capable model, and replaces the read result with image analysis text (jpeg, png, gif, webp)
  • Compact model — uses a configured model for context compaction (instead of the main model), auto-resumes after compaction.

5. Smart @ File Search

Replaces Pi's default file search with a faster, project-aware search strategy:

  • Uses project-aware file discovery
  • Prioritizes filename-based matches for more intuitive results
  • Reduces clutter from hidden, cache, and build directories
  • Keeps default suggestions focused on visible project files

6. LSP Tool Suite

A cleaned-up, minimal LSP toolset. The extension keeps only the two LSP tools that cover the most practical coding workflows: checking diagnostics after edits and inspecting file structure before focused changes.

  • lsp_diagnostics — file diagnostics with severity filtering
  • lsp_document_symbols — file symbol outline

Supported languages: c/cpp, go, java, lua, json, python, ruby, rust, svelte, typescript

7. Dynamic Subdirectory AGENTS.md / CLAUDE.md

When the agent reads or edits a file:

  • discovers AGENTS.md / CLAUDE.md in the file's directory and ancestor directories
  • injects newly discovered guidance into tool results

8. Extend Providers

Extend providers are registered via /login → "Use a subscription":

| Provider | Base URL | | ---------- | ----------- | | Ollama Cloud | ollama.com/v1 | | Baidu Qianfan | qianfan.baidubce.com/v2/coding | | ARK Coding | ark.cn-beijing.volces.com/api/coding/v3 |

Configuration

Runtime settings are stored in:

~/.pi/agent/decorated-pi.json

Module Loading

Modules can be toggled on/off. Changes take effect after /reload.

| Module | Default | Effect when disabled | | -------- | --------- | --------------------- | | patch | true | Reverts to Pi's built-in edit / write tools | | safety | true | No secret redaction on read / bash output | | lsp | true | All lsp_* tools unregistered — no diagnostics, hover, etc. | | smart-at | true | Fallback to Pi's built-in @ file completion | | mcp | true | All {server}_* MCP tools unregistered |

Use /dp-settings to toggle, or edit the config file directly:

{
  "modules": {
    "patch": true,
    "safety": true,
    "lsp": false,
    "smart-at": true,
    "mcp": true
  }
}

License

MIT