# Mailgun.js: 6.3 out of 10

Reasonable, with limits. 7th of 9 in [Email libraries](https://elestia.ai/opensource/email/index.md).

Mailgun.js is the official, actively maintained TypeScript SDK for the Mailgun email API. It is solid and covers the whole API, but it is only useful if you choose Mailgun as your provider. For a new project, Resend's SDK or a provider-neutral tool like Nodemailer is the more common pick today.

**Best for:** Teams that already send through Mailgun, or that picked it for inbound routing, EU data residency or compliance, and want a typed Node.js client.

## Scores

- **Overall: 6.3** (likely 5.2 to 7.3)
  - Claude Opus 5.5 (5.5): It is a well-maintained official SDK and the right choice if you send through Mailgun. For a new project, the Resend SDK offers smoother developer experience and much faster adoption, and Nodemailer keeps you free of any one vendor. Its below-median growth and breaking majors keep it in the middle of the category.
  - GPT-6.2 Sol (7.0): Mailgun.js is a strong pick when a new project needs Mailgun’s inbound routes, batch sending, or suppression APIs. Resend has a simpler setup for basic API sending, and Nodemailer makes it easier to switch SMTP providers. Active releases support adoption, while recent breaking changes, slower relative download growth, and limited evidence for version 14 keep the recommendation conditional.
- **Needed by many: 4.0** (likely 2.9 to 5.0)
  - Claude Opus 5.5 (4.0): Many JS developers send email, but this SDK only serves people who chose Mailgun as their provider. Since that is one of several competing services, it is a clear niche inside the category.
  - GPT-6.2 Sol (3.9): Transactional email is a common need for web apps, and Mailgun.js works across Node.js frameworks. Its audience narrows to teams that choose hosted Mailgun, and the browser build requires a proxy. The developer survey shows how common JavaScript backend work is, so the share of teams that need this SDK remains an estimate.
- **Helps a lot: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.0): The SDK is typed and covers the API broadly, with new clients added often in 2026. Setup takes some extra steps: you inject a FormData implementation, the fetch mode has proxy limits, and browser use needs a proxy. Developers rate Resend's experience higher, and the SDK cannot render email the way React Email or MJML can.
  - GPT-6.2 Sol (7.5): Version 14.1.1 has a typed client with documented examples for batch sends, attachments, domain templates, and inbound routes. Client setup requires FormData and the correct regional endpoint. Open reports identify an attachment typing mismatch and a gap in account-level template management. Evidence for SDK performance and coding-agent reliability is thin.
- **Holds up over time: 7.2** (likely 6.0 to 8.2)
  - Claude Opus 5.5 (7.0): The company behind the service maintains it, with 156 commits and 19 releases in the last year and only 7 open issues. Two breaking majors in 2026 and the steady move of new developers toward Resend hold the score back. Its future depends on Mailgun's business more than on its community.
  - GPT-6.2 Sol (7.3): Mailgun maintains the SDK and shipped 19 GitHub releases with 156 commits over the past year. Versions 13 and 14 introduced documented breaking changes to mailing-list queries and IP pools. One account is visible across the recent releases, and the long-open attachment report makes support for edge cases harder to predict.
- **Used widely: 4.4** (likely 3.3 to 5.5)
  - Claude Opus 5.5 (5.0): Downloads were about 5.9M in the last 4 weeks, with 1,184 dependent repositories, slightly more than Postmark.js and Resend SDK. Its growth ratio of 3.4 is below the 4.1 median, while Resend grew about 16x, so it is losing share.
  - GPT-6.2 Sol (3.7): Four-week downloads rose from 1.72 million to 5.90 million, a 3.43× increase below the 4.1× catalog median and Resend’s 15.77×. Ecosyste.ms found 1,184 dependent repositories and 102 packages, with a repository count near Postmark and well below SendGrid. Automated installs and dependencies such as Strapi’s provider make downloads a loose proxy for direct choices. The partial repository index and zero tracked Bluesky posts leave the size of that audience uncertain.
- **Vouched for: 5.7** (likely 4.6 to 6.8)
  - Claude Opus 5.5 (5.0): The Mailgun service is widely used in production and appears in independent comparisons, which credit it for routing, analytics and compliance. Most of that praise is about the service, not the SDK, and G2 developer ratings put it below Resend. I found little independent writing about the SDK itself.
  - GPT-6.2 Sol (6.4): Strapi ships Mailgun.js in its official email provider, and Ghost lists it as a runtime dependency. Both pin version 10, so they provide little evidence for version 14. The independent provider index and developer reports add context about Mailgun’s service and setup, with limited evidence on satisfaction or performance for the current SDK.
- **Safe: 7.1** (likely 6.0 to 8.2)
  - Claude Opus 5.5 (7.0): It has no known advisories and only 3 dependencies, and a vendor team publishes it with a permissive licence. Axios is one of those dependencies and has had its own advisories, which adds exposure. There is no Scorecard, and the licence reads Apache-2.0 on GitHub but MIT on npm, though both are permissive.
  - GPT-6.2 Sol (7.2): The SDK has no listed advisories and three direct dependencies. Its current Axios range excludes the versions compromised in March 2026. Both license labels are permissive, but npm declares MIT and the repository ships Apache-2.0. The README describes manual npm publishing, and the missing OpenSSF Scorecard and unverified publisher count limit confidence in release controls.

## Good

- It covers the full Mailgun API: messages, domains, mailing lists, routes, IP pools, API keys and account management.
- It ships TypeScript types and gets frequent releases: 19 releases and 156 commits in the last year.
- It is small to install, with 3 dependencies and no known advisories.
- It is maintained by Mailgun itself, so new API features arrive in the SDK quickly.

## Bad

- It only sends through Mailgun, a paid service that is not open source, and it does not render or template email.
- Two breaking major versions in 2026 (v13, v14) changed API surfaces that users have to migrate.
- On Node you must pass a FormData implementation, and proxy support is missing when the fetch mode is on.
- Its download growth trails the median, and Resend is taking most new developer projects.

## The numbers

- Downloads, 4 weeks: 5.9M
- In a year: ×3.4
- GitHub stars: 551
- Commits, 12 months: 156
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: Apache-2.0
- GitHub: https://github.com/mailgun/mailgun.js
- npm: https://www.npmjs.com/package/mailgun.js

The SDK of an email service that is not open source.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
