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

@broodnet/cli

v0.1.3

Published

**Email infrastructure for AI agents.** Read and manage your Broodnet mailboxes from the terminal.

Readme

Email infrastructure for AI agents. Read and manage your Broodnet mailboxes from the terminal.

Installation

npm install -g @broodnet/cli

Requires Node.js 22+.

Getting started

You need a Broodnet account and at least one mailbox. Sign up at broodnet.com.

Once you have a mailbox, grab its token from the dashboard and authenticate:

broodnet login --token=bnt_XXXxxXXX

Credentials are saved to ~/.config/broodnet/config.json. You only need to do this once per mailbox.

Modules

mail

Read email from your Broodnet mailboxes over IMAP. Requires a mailbox token — issued per mailbox from the Broodnet dashboard when you create a mailbox.

Commands

broodnet login

Authenticate a mailbox token and save the connection config locally.

broodnet login --token=bnt_XXXxxXXX

Validates the token against the API, fetches IMAP settings, and writes them to ~/.config/broodnet/config.json. Run this once per mailbox. Multiple accounts are supported — the first one logged in becomes the active default.


broodnet mail inbox

List the latest messages in your inbox.

broodnet mail inbox
UID      FLAGS  FROM                 SUBJECT                                  DATE
-------- ------ -------------------- ---------------------------------------- --------------------
1042     ●★     [email protected]    [action required] review your billing     2 hours ago
1041     ○      [email protected]   BRD-42 was closed                        yesterday
1040     ○↩     [email protected]     your mailbox is ready                    Mar 8

Flags: unread · read · replied · flagged · forwarded

Options:

| Flag | Default | Description | | ----------- | -------------- | --------------------------------------- | | --limit | 20 | Number of messages to fetch | | --mailbox | active account | Address of a specific logged-in mailbox | | --json | — | Machine-readable output (see below) |


broodnet mail open <uid>

Fetch and display a message by its UID. Marks it as read.

broodnet mail open 1042
────────────────────────────────────────────────────────────
From:    [email protected]
To:      [email protected]
Subject: [action required] review your billing
Date:    Mar 10, 2026 14:32
────────────────────────────────────────────────────────────

Hi there, ...

Options:

| Flag | Default | Description | | ----------- | -------------- | --------------------------------------------- | | --mailbox | active account | Address of a specific logged-in mailbox | | --raw | — | Print raw RFC822 source including all headers | | --json | — | Machine-readable output (see below) |


--json flag

Every command accepts --json. Output goes to stdout as formatted JSON — no colors, no tables, no banners. Designed for piping into agents or scripts.

broodnet mail inbox --json
[
  {
    "uid": 1042,
    "from": "[email protected]",
    "subject": "[action required] review your billing",
    "date": "2026-03-10T14:32:00.000Z",
    "flags": { "seen": false, "answered": false, "flagged": true, "forwarded": false }
  }
]
broodnet mail open 1042 --json
{
  "uid": 1042,
  "from": "[email protected]",
  "to": "[email protected]",
  "subject": "[action required] review your billing",
  "date": "2026-03-10T14:32:00.000Z",
  "body": "Hi there, ..."
}

Environment variables

| Variable | Description | | ------------------ | ---------------------------------------------------------------------------------------- | | BROODNET_TOKEN | Mailbox token. Bypasses the config file entirely — useful in CI or containerized agents. | | BROODNET_MAILBOX | Select a specific logged-in mailbox by address. |

When BROODNET_TOKEN is set, no login is required — the token is validated at runtime on every command.

Multiple accounts

Each broodnet login call adds an account to the local config. The first account becomes the active default. Switch between accounts with --mailbox:

broodnet mail inbox [email protected]
broodnet mail inbox [email protected]

Exit codes

| Code | Meaning | | ---- | ------------------------------------- | | 0 | Success | | 1 | General error | | 2 | Auth error (token invalid or missing) | | 3 | IMAP connection error |

License

MIT — see LICENSE.