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

myagentmail

v0.3.0

Published

TypeScript SDK for the myagentmail API — email + LinkedIn intent infrastructure for AI agents. Send/receive email, manage drafts, run LinkedIn intent signals + historical searches with plain-English firing rules.

Readme

myagentmail

npm

TypeScript SDK for the myagentmail API — email infrastructure for AI agents.

For Claude Desktop / Cursor, see myagentmail-mcp.

Install

npm install myagentmail

Quick start

import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_KEY! });

// Create an inbox
const inbox = await client.inboxes.create({
  username: "scout",
  displayName: "Scout",
});
console.log("Inbox:", inbox.email);
console.log("IMAP password:", inbox.imapPassword); // only shown once

// Send an email
const sent = await client.messages.send(inbox.id, {
  to: "[email protected]",
  subject: "Quick question",
  plainBody: "Hi — do you have time to chat this week?",
  verified: true,
});
console.log("Sent:", sent.id, "Thread:", sent.threadId);

// List inbound messages
const { messages } = await client.messages.list(inbox.id, {
  direction: "inbound",
  limit: 10,
});
for (const m of messages) {
  console.log(`${m.from}: ${m.subject}`);
}

// Reply in-thread
if (messages.length > 0) {
  await client.messages.reply(inbox.id, messages[0].id, {
    plainBody: "Thanks — scheduling that call now.",
  });
}

Resources

client.inboxes

client.inboxes.create({ username?, displayName?, domain?, workspaceId? })
client.inboxes.list({ workspace? })
client.inboxes.get(inboxId)
client.inboxes.update(inboxId, { displayName?, metadata? })
client.inboxes.delete(inboxId)
client.inboxes.addAddress(inboxId, { email, primary? })
client.inboxes.removeAddress(inboxId, address)

client.messages

client.messages.send(inboxId, { to, subject, plainBody?, htmlBody?, verified? })
client.messages.reply(inboxId, messageId, { plainBody?, htmlBody? })
client.messages.replyAll(inboxId, messageId, { plainBody?, htmlBody? })
client.messages.forward(inboxId, messageId, { to, plainBody?, subject? })
client.messages.list(inboxId, { direction?, limit?, offset? })
client.messages.get(inboxId, messageId)
client.messages.markRead(inboxId, messageId, isRead)
client.messages.delete(inboxId, messageId)
client.messages.listAttachments(inboxId, messageId)
client.messages.downloadAttachment(inboxId, messageId, attachmentId)
client.messages.downloadRaw(inboxId, messageId)

client.threads

client.threads.list(inboxId, { limit?, offset? })
client.threads.get(inboxId, threadId)

client.drafts

client.drafts.create(inboxId, { to?, subject?, plainBody?, replyToMessageId? })
client.drafts.list(inboxId, { limit? })
client.drafts.get(inboxId, draftId)
client.drafts.update(inboxId, draftId, { to?, subject?, plainBody? })
client.drafts.delete(inboxId, draftId)
client.drafts.send(inboxId, draftId) // sends + deletes atomically

client.lists

client.lists.create(inboxId, { name, description? })
client.lists.list(inboxId)
client.lists.get(inboxId, listId)
client.lists.delete(inboxId, listId)
client.lists.addEntry(inboxId, listId, { email, displayName?, metadata? })
client.lists.removeEntry(inboxId, listId, entryId)

client.domains

client.domains.create({ domain, workspaceId? })
client.domains.list({ workspace? })
client.domains.get(domain)
client.domains.verify(domain)
client.domains.zoneFile(domain) // returns BIND-format text
client.domains.delete(domain)

client.workspaces

client.workspaces.create({ name, slug? })
client.workspaces.list()
client.workspaces.get(workspaceId)
client.workspaces.delete(workspaceId)
client.workspaces.createKey(workspaceId, { name? })
client.workspaces.listKeys(workspaceId)
client.workspaces.revokeKey(workspaceId, keyId)

client.webhooks

client.webhooks.create({ url, events })
client.webhooks.list()
client.webhooks.get(webhookId)
client.webhooks.update(webhookId, { url?, events?, isActive? })
client.webhooks.delete(webhookId)

Utilities

client.verifyEmail({ email?, emails? })
client.metrics({ from?, to?, workspace?, inbox? })

Error handling

import { MyAgentMailError } from "myagentmail";

try {
  await client.messages.send(inboxId, { to: "bad", subject: "x", plainBody: "y" });
} catch (err) {
  if (err instanceof MyAgentMailError) {
    console.log(err.status); // 400
    console.log(err.code);   // "VALIDATION_ERROR"
    console.log(err.message);
  }
}

API keys

| Prefix | Scope | |---|---| | tk_ | Tenant master — every workspace | | wk_ | Workspace master — one workspace | | ak_ | Inbox scoped — one inbox |

Use the narrowest key that fits. For production agent runtimes, prefer ak_.

Links

License

MIT