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

pi-aimail

v0.1.15

Published

AIMail plugin for pi (earendil-works/pi): 15 mail tools (MAIL_TOOLS), inbound local HTTP receiver bridged into the active session via sendUserMessage.

Readme

pi-aimail

AIMail extension for pi (earendil-works/pi-coding-agent). It gives a pi agent a mailbox on AIMail: inbound email is delivered into the running session, and the agent can send mail, manage contacts, keep thread notes, and work on A2A boards through 15 plain tools.

Install

Prerequisites:

  • pi (>= 0.84, npm install -g @earendil-works/pi-coding-agent)
  • an AIMail binding for the pi agent (pointer file ~/.pi/.agentmail with {system_id, email}, plus the registered address on the gateway)
pi install npm:pi-aimail

What it does

Tools — the same 15 bare-name tools as every other adapter: send_mail, manage_contacts, contact_profile, set_contact_profile, email_summary, set_email_summary, search_mail, board_status, board_task_list, board_task_show, board_heartbeat, board_members, board_roles, set_public_whoami, activate_address_code, registered via pi.registerTool with TypeBox parameters. Identity comes from the ~/.pi/.agentmail pointer plus the bound agentmail.json; unbound agents fail loud.

Inbound mail — pi has no HTTP route registration, so the extension owns a local listener (POST /aimail/inbound on 127.0.0.1:9101, override with inboundPort). Each bridge delivery is HMAC verified against the per-agent secret, enriched by the shared preprocess chain, and injected into the running session via pi.sendUserMessage (steer — always triggers a turn). The listener closes on session_shutdown.

Identity header — outbound mail carries X-AIMail-Agent: pi/<detected host version>+<primary model> (detected from the installed pi package; never guessed).

Other adapters

The same tool surface and inbound contract, bound to other agent platforms:

  • dsh-aimail — AIMail plugin for dsh (deepseek-harness) — cordis plugin, profile-scoped node:http inbound endpoint.
  • openclaw-aimail — AIMail plugin for OpenClaw — definePluginEntry: 15 tools, in-gateway HTTP route, register/status commands.

Related repositories

  • metercai/aimail — the AIMail monorepo: aimail CLI (cli/), Python SDK (pysdk/), this TypeScript SDK (tssdk/).
  • metercai/aimail-gateway — the AIMail gateway: SMTP/HTTP mail service, address & activation APIs, and the board endpoints the tools talk to.