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

@amaster.ai/pi-attachments

v0.1.13

Published

Pi extension for attachment processing — classifies, parses, and renders file attachments into LLM-visible prompt context

Readme

@amaster.ai/pi-attachments

pi-attachments preview

Pi extension that intercepts user input, resolves @-references to local resources, and injects their content into the prompt before the model sees it.

Hooks the input event of @earendil-works/pi-coding-agent. When a recognized mention appears in the user message, the original mention is stripped and replaced with structured context (skill block, attachment listing, or <system-reminder>). Image attachments are passed through as multimodal ImageContent.

Recognized mentions

| Syntax | Resolves to | |---------------------------------|-------------------------------------------------------------------| | @path/to/file.ts | File contents (text/doc) or base64 image | | @"/path with spaces/file.pdf" | Same as above, supports whitespace in paths | | @path/to/file.ts#L10-20 | Line range syntax preserved in the reference (range applied downstream) | | @path/to/dir | Directory listing (files + subdirs, ignores .git/node_modules/build outputs) | | @skill:<name> | Loads SKILL.md for a registered skill |

@http(s)://... is not treated as a file reference. Unknown namespaces (e.g. @app:erp-prod) are left alone — neither resolved as a skill nor as a file.

Skill resolution

@skill:<name> searches in this order, first hit wins:

  1. <cwd>/.pi/skills/<name>/SKILL.md — project-level skill
  2. <agentDir>/skills/<name>/SKILL.md — user-level skill (resolved via @amaster.ai/pi-shared's resolveAgentDir(), override with PI_AGENT_HOME)

The order matches loadSkillsFromAllLocations in the pi-coding-agent SDK so a project skill overrides a user-installed one. Frontmatter is stripped; the body is wrapped in <skill name="..." location="...">…</skill> and prepended to the user message.

Output assembly

When at least one mention resolves, the input is rewritten as three optional segments in this order:

<skill name="..." location="...">…</skill>   ← skill blocks (if any)

<original user text with mentions stripped>

<system-reminder>
## file.ts: /abs/path/file.ts
```text
…contents…

Pure-text inputs with no resolvable mentions are left untouched (handler returns undefined).

Configuration

| Env var | Default | Meaning | |----------------------------------|-------------|----------------------------------------------------------| | PI_ATTACHMENT_MAX_TEXT_CHARS | 128000 | Max chars per text/doc attachment before truncation | | PI_AGENT_HOME | (from pi-shared) | Override for user-level skill search root |

Limits

  • Directory listing: capped at 200 entries per directory; remainder is summarized as [Listing truncated: showing 200 of N entries].
  • Ignored directory entries: .git, node_modules, .DS_Store, .next, .turbo, dist, build, .cache.
  • Mention ordering: skills are matched before files, so the resolved mentions[] array groups by kind rather than preserving textual order. Downstream consumers must not rely on textual order.