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

brevo-axi

v0.1.0

Published

AXI-compliant CLI for Brevo - send and audit transactional email and SMS, manage marketing campaigns, contacts, lists, CRM deals, senders, and webhooks over the Brevo v3 REST API.

Readme

brevo-axi

AXI-compliant CLI for Brevo (ex-Sendinblue) — agent-ergonomic email, SMS, marketing campaign, contact, and CRM operations over the Brevo v3 REST API. Built against the AXI principles; listed in the AXI catalog.

$ brevo-axi
bin: ~/.local/bin/brevo-axi
description: Brevo marketing and messaging for agents - ...
auth: api-key
account: [email protected]
plan: free (298 credits)
contacts: 20 total
lists: 5 total
help[4]:
  Run `brevo-axi contacts list --limit 20` to browse contacts
  Run `brevo-axi campaigns list` to review marketing campaigns
  ...

Install

npm install -g brevo-axi

Or run on demand: npx -y brevo-axi@latest <command>.

Authentication

Generate a v3 API key at Brevo > SMTP & API > API Keys (https://app.brevo.com/settings/keys/api) and export it:

export BREVO_API_KEY="xkeysib-..."

BREVO_API_URL optionally overrides the default base https://api.brevo.com/v3 (HTTPS only). The key is only ever read from the environment — never from flags, files, or prompts — and is redacted from all error output.

Commands

| Group | What it covers | | --- | --- | | account | Authenticated account: email, plan, credits | | contacts list/get/stats, create/update/delete, import/export | Contact management (email or id identifiers) | | lists list/get/contacts, create/update/delete/add/remove | Contact lists with subscriber rollups | | folders, attributes, segments list | Audience organization | | campaigns list/get, create/update/send/test/status/report/export/delete | Email marketing campaigns with pre-computed stats | | email send/list/content/events/stats/scheduled/cancel/blocked | Transactional email + audit (--sandbox validates without sending) | | templates list/get/send-test/create/update/delete | Transactional templates | | sms send/stats/events | Transactional SMS | | deals, companies, tasks, notes, pipelines | Sales CRM | | senders, domains, webhooks | Account configuration | | events track/list | Custom tracking events | | processes list/get | Background imports/exports | | api get/post/put/patch/delete <path> | Raw v3 REST escape hatch | | setup hooks/status/remove | Ambient session context for Claude Code / Codex / OpenCode |

Every command supports --help; data commands support --json.

Examples

# Validate a send without delivering or spending credits
brevo-axi email send --to [email protected] --subject "Welcome" \
    --template 3 --param '{"name":"Ada"}' --sandbox

# Actually send it
brevo-axi email send --to [email protected] --subject "Welcome" \
    --template 3 --param '{"name":"Ada"}' --confirm

# Audit delivery
brevo-axi email events --event hard_bounce --days 3
brevo-axi email stats --days 30 --daily

# Audience work
brevo-axi contacts create --email [email protected] \
    --attr '{"FIRSTNAME":"Ada"}' --lists 4 --confirm
brevo-axi lists add 4 --ids 25 --confirm

# Marketing
brevo-axi campaigns list --status draft
brevo-axi campaigns get 17        # "100 sent, 95 delivered (95%), 40 opened ..."
brevo-axi campaigns send 17 --confirm

# CRM
brevo-axi pipelines list          # stage names for deals
brevo-axi deals create --name "Pilot" --stage New --confirm

Safety

  • Every mutation requires --confirm, verified before any network request. One invocation, no remembered consent, no prompts.
  • email send --sandbox uses Brevo's X-Sib-Sandbox: drop header: the request is validated, nothing is delivered, no credits are used — so it is the only write path that skips --confirm.
  • Deletes say so explicitly (folders delete warns it destroys inner lists).
  • Sending commands preview recipients and credit cost in the gate error.

Output and exit codes

Compact TOON by default; --json opt-in. Empty results are explicit (0 contacts matched). Exit codes: 0 success, 2 usage/validation/missing --confirm (stderr-free structured errors on stdout), 1 runtime or API failure.

| AxiError code | Brevo signal | | --- | --- | | VALIDATION_ERROR | 400 invalid_parameter / missing_parameter / flag misuse | | AUTH_REQUIRED | 401/403 | | PAYMENT_REQUIRED | 402 not_enough_credits | | NOT_FOUND | 404 document_not_found | | RATE_LIMITED | 429 | | API_ERROR | other 4xx/5xx |

Not implemented (v1)

WhatsApp campaigns, SMS marketing campaigns, Conversations, eCommerce, Loyalty, Wallet, master/sub-account (corporate) management, inbound parsing, and blocked domains. Use the api escape hatch for those, and file an issue if you need them as first-class commands.

Development

npm install
npm run build        # tsc -> dist/ (committed; rebuild on change)
npm test             # vitest, fully mocked HTTP
npm run typecheck

Run locally with node bin/brevo-axi.js. Tests pass without credentials.

License

MIT