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-protonmail

v0.3.0

Published

Proton Mail Bridge Pi extension for mailbox discovery, message workflows, and attachment imports.

Downloads

521

Readme

pi-protonmail

Proton Mail Bridge Pi extension for mailbox discovery, message previews, attachment imports, and profile-based setup.

Use cases

  • /protonmail — open the interactive setup hub for profile defaults.
  • protonmail_* tools — check Bridge status, list mailboxes, preview messages, and import attachments.

Install

pi install npm:pi-protonmail

For local development:

pi install /absolute/path/to/this/repo

Environment

Set the Proton Bridge connection variables in your Pi environment:

  • PROTON_BRIDGE_HOST
  • PROTON_BRIDGE_IMAP_PORT
  • PROTON_BRIDGE_SMTP_PORT
  • PROTON_BRIDGE_IMAP_SECURITY
  • PROTON_BRIDGE_USERNAME
  • PROTON_BRIDGE_PASSWORD
  • PROTON_BRIDGE_DEFAULT_MAILBOX (optional)

These values may be raw strings or 1Password references resolved by the extension.

Profiles and workspace

Profile settings are stored under .pi/protonmail/:

  • config.json — workspace-level config
  • profiles/<name>/policy.json — per-profile defaults

Profile defaults control the mailbox selection, mailbox filter, period, and optional import workspace override used by LLM-driven mail workflows. Attachment imports default to .pi/protonmail/imports/<profile>/....

Workflow

  1. Configure Proton Bridge credentials.
  2. Open /protonmail to choose or edit a profile.
  3. Use protonmail_* tools for Bridge status, mailbox lookup, message previews, or staged attachment imports.

Publishing

Tagged pushes like v0.1.0 publish to npm through GitHub Actions. The release workflow validates the tag version, runs checks, and publishes with NPM_TOKEN when the version is not already on npm.

Repository notes

  • Entry point: src/index.ts
  • Main extension logic: src/protonmail.ts
  • Native Bridge implementation: src/proton-bridge.ts
  • Setup hub: src/hub.ts
  • Secret resolution: src/secret-refs.ts

Troubleshooting

  • If Bridge status fails, confirm the host, ports, and credentials are correct.
  • If list or import commands return nothing, verify the default mailbox and active profile policy.
  • If imports fail, check that the target period is set and matches YYYY-MM.