Mailgun.js
Reasonable, with limits. 7th of 9 email libraries.
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
Overall6.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- npm downloads ratio: 3.4 vs median 4.1
- courier.com/integrations/compare/mailgun-vs-resend: Resend preferred by developers
- github releasesLastYear: Active vendor maintenance
GPT-6.2 Sol: 7.0, likely 5.9 to 8.1
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.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/README.md: Documents Mailgun-specific sending and administration features.
- reddit.com/r/webdevelopment/comments/1rv7q28/what_email_api_is_the_easiest_to_set_up: Several developers describe Resend as easy to set up.
- nodemailer.com/smtp: SMTP configuration can be changed to switch providers.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/CHANGELOG.md: Shows regular releases and recent breaking changes.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Mailgun.js trails the catalog growth benchmark and Resend.
Needed by many4.0
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- project.note: SDK of a closed email service
- courier.com/integrations/compare/mailgun-vs-resend: Mailgun is one of several close alternatives
GPT-6.2 Sol: 3.9, likely 2.8 to 5.0
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.
- 2025.stateofjs.com/en-US/usage: Backend development was the second most common JavaScript use case.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/README.md: Documents Node.js setup and the browser proxy requirement.
Helps a lot6.8
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- github.com/mailgun/mailgun.js/releases: New Users, API keys and account clients; type fixes
- socket.dev/npm/package/mailgun.js: Requires a FormData implementation; Node 18+
- raw.githubusercontent.com/mailgun/mailgun.js/master/README.md: Proxy and form-data unsupported with useFetch
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 7.5, likely 6.4 to 8.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.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/README.md: Versioned examples cover sending and Mailgun administration.
- npm hasTypes: The npm package ships type declarations.
- github.com/mailgun/mailgun.js/issues/463: An open report describes runtime failures for typed attachment inputs.
- github.com/mailgun/mailgun.js/issues/541: A user requests a client for the account-level Templates API.
Holds up over time7.2
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github commitsLastYear / releasesLastYear: 156 commits, 19 releases
- github openIssues: 7 open vs 251 closed
- github.com/mailgun/mailgun.js/releases: Breaking v13.0.0 and v14.0.0 in 2026
- hackerNews top: Resend overtook SendGrid+Mailgun+Postmark+Mailjet on indie launches
GPT-6.2 Sol: 7.3, likely 6.0 to 8.4
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.
- github commitsLastYear, releasesLastYear, openIssues: 156 commits, 19 releases, and seven open issues.
- github.com/mailgun/mailgun.js/releases/tag/v14.1.1: The November patch updates dependencies.
- github.com/mailgun/mailgun.js/releases/tag/v13.0.0: The release documents a breaking mailing-list query change.
- github.com/mailgun/mailgun.js/releases/tag/v14.0.0: The same release account shipped a breaking IP Pools change.
- github.com/mailgun/mailgun.js/issues/463: The maintainer replied within a week, and the issue remains open.
Used widely4.4
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- npm downloadsLast4Weeks: 5.9M vs 1.72M a year ago, ratio 3.4
- dependents: 1,184 repos, 102 packages
- peers Resend SDK: 71M downloads, ~16x growth
- bluesky posts: 0 posts
GPT-6.2 Sol: 3.7, likely 2.6 to 5.0
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Mailgun.js grew 3.43× against the 4.1× catalog median.
- dependents repos, packages: 1,184 indexed repositories and 102 dependent packages.
- peers: Resend grew faster and SendGrid has many more indexed dependents.
- github stars, bluesky posts: 551 stars and zero tracked Bluesky posts linking to the repository.
- github.com/strapi/strapi/blob/main/packages/providers/email-mailgun/package.json: Strapi’s email provider installs the SDK as a dependency.
Vouched for5.7
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- courier.com/integrations/compare/mailgun-vs-resend: G2 4.2 vs Resend 4.8; Mailgun wins compliance
- knock.app/email-api-benchmarks/compare/mailgun-vs-postmark: Third-party API benchmark includes Mailgun
GPT-6.2 Sol: 6.4, likely 5.2 to 7.5
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.
- github.com/strapi/strapi/blob/main/packages/providers/email-mailgun/package.json: Strapi’s official provider pins Mailgun.js 10.2.1.
- github.com/TryGhost/Ghost/blob/main/ghost/package.json: Ghost lists Mailgun.js 10.4.0 as a runtime dependency.
- apibenchmarks.com/blog/transactional-email-api-benchmark-2026: Mailgun placed fourth of seven in a provider index that did not send test emails.
- reddit.com/r/webdevelopment/comments/1rv7q28/what_email_api_is_the_easiest_to_set_up: Developers describe a solid Node SDK and often favor Resend for setup.
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- advisories total: 0 advisories
- npm dependencies: 3 dependencies
- github.com/mailgun/mailgun.js/releases: Axios bumps and updates of vulnerable packages
- scorecard: No Scorecard data
GPT-6.2 Sol: 7.2, likely 5.9 to 8.3
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.
- advisories total, npm dependencies, npm license, scorecard: Zero SDK advisories, three direct dependencies, MIT metadata, and no Scorecard.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/package.json: The manifest declares MIT and an Axios range starting at 1.20.0.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/LICENSE: The tagged repository license file is Apache-2.0.
- content.govdelivery.com/accounts/USDHSCISA/bulletins/413c7a5: CISA identifies the two compromised Axios versions.
- raw.githubusercontent.com/mailgun/mailgun.js/v14.1.1/README.md: The release guide describes npm login and publish.
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
- npm downloads, 4 weeks
- 5.9M ×3.4 in a year
- GitHub stars
- 551
- Commits, 12 months
- 156
- npm version
- 14.1.1 Nov 2026
- Versions, 12 months
- 22
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- Apache-2.0
The SDK of an email service that is not open source.
Read on 21 November 2026 from GitHub (mailgun/mailgun.js), npm (mailgun.js), OSV and the OpenSSF Scorecard.
Email libraries
- 8.2React Email
- 8.1Nodemailer
- 7.5Resend SDK
- 7.3MJML
- 6.7Postmark.js
- 6.3Maizzle
- 6.3Mailgun.js
- 4.9SendGrid SDK
- 4.7Email Templates