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

@agentmbox/plugin-agentmbox

v1.2.9

Published

AgentMBox email integration plugin for ElizaOS - enables AI agents to send and receive emails

Readme

@agentmbox/plugin-agentmbox

Tests

AgentMBox email integration plugin for ElizaOS - enables AI agents to send and receive emails via the AgentMBox API.

No configuration needed! The agent will automatically onboard itself - creating an AgentMBox account, paying 5 USDC on Solana from its own wallet, and setting up a mailbox.

Features

  • Send Emails: Agents can send emails to any recipient
  • Receive Emails: Agents can retrieve and read emails from their mailbox
  • Email Provider: Built-in provider gives agents awareness of their inbox status
  • Full API Access: Complete access to AgentMBox mailbox, domain, and payment management

Installation

bun add @agentmbox/plugin-agentmbox

Configuration

Add the plugin to your agent's configuration and set the required environment variables:

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | AGENTMBOX_API_KEY | No | Your AgentMBox API key (starts with ai_) - only needed if not using autonomous onboarding | | AGENTMBOX_MAILBOX | No | Default mailbox address (e.g., [email protected]) | | AGENTMBOX_BASE_URL | No | Custom API base URL (defaults to https://agentmbox.com/api/v1) |

Character Configuration

{
  "plugins": [
    "@agentmbox/plugin-agentmbox"
  ]
}

Quick Start

1. Configure Your Agent (Optional)

The plugin handles autonomous onboarding automatically - it will create an AgentMBox account, pay for subscription using the agent's Solana wallet, and set up a mailbox.

Optional environment variables:

# Only set these if you want to use an existing mailbox
# AGENTMBOX_API_KEY=ai_your_existing_api_key
# [email protected]

# Skip autonomous onboarding if already set up
# AGENTMBOX_SKIP_ONBOARDING=true

3. Use in Your Agent

The plugin provides two actions and one provider:

Send Email Action (SEND_EMAIL)

// The agent can send emails by specifying recipient, subject, and body
await runtime.execute({
  action: "SEND_EMAIL",
  parameters: {
    to: "[email protected]",
    subject: "Hello from your agent",
    text: "This is the plain text body",
    html: "<p>Or HTML body</p>"
  }
});

Get Emails Action (GET_EMAILS)

// Retrieve emails from the mailbox
await runtime.execute({
  action: "GET_EMAILS",
  parameters: {
    limit: 10,      // Number of emails to retrieve (default: 10)
    offset: 0,     // Pagination offset
    unreadOnly: false  // Filter to only unread emails
  }
});

// Get a specific email by ID
await runtime.execute({
  action: "GET_EMAILS",
  parameters: {
    emailId: "M1234"
  }
});

Email Provider

The email provider automatically provides context about the agent's inbox:

// Access via state in actions or handlers
const emailContext = state.email;
// Contains: available, unreadCount, totalEmails, recentEmails[]

AgentMBox Setup Guide

Creating a Mailbox

curl -X POST https://agentmbox.com/api/v1/mailboxes \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"localPart": "my-agent"}'

Sending an Email

curl -X POST https://agentmbox.com/api/v1/mail/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hello",
    "text": "Email body"
  }'

Checking Emails

curl "https://agentmbox.com/api/v1/[email protected]&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"

API Reference

Service Methods

const service = runtime.getService<AgentMBoxService>("agentmbox");

// Email operations
service.listEmails(limit, offset);
service.getEmail(emailId);
service.sendEmail({ from, to, subject, text, html });
service.deleteEmail(emailId);

// Mailbox operations
service.listMailboxes();
service.createMailbox({ localPart, displayName });
service.deleteMailbox(mailboxId);

// Payment operations
service.getPaymentStatus();
service.checkPayment();

// Domain operations
service.listDomains();
service.addDomain("example.com");
service.verifyDomain(domainId);

Development

# Install dependencies
bun install

# Build the plugin
bun run build

# Run tests
bun test

# Watch mode
bun run dev

License

MIT