MJML
A strong pick. 4th of 9 email libraries.
MJML is a mature markup language and Node.js compiler that turns short XML-style tags into responsive HTML email that works in Outlook. It does not send email. Version 5 is actively maintained, and it is still a strong choice for templates that do not depend on React. React Email is the better fit for React and TypeScript codebases.
Best for: Teams that want responsive, Outlook-safe email templates that are not tied to React, or that are shared with non-JavaScript backends.
Scores
Overall7.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
MJML is a strong, well-maintained pick for responsive email templates, especially outside React or across languages. React Email now does the same job better for most TypeScript and React teams and is growing much faster, and MJML's recent major-version churn costs it some trust. Pair it with Nodemailer or a provider SDK for sending.
- nuntly.com/email-frameworks/react-email-vs-mjml: Pick MJML for framework independence, React Email for React apps
- npm downloads ratio vs medianDownloadsRatio: 3.2 vs 4.1 median: losing ground
- github releasesLastYear: Active releases
GPT-6.2 Sol: 7.6, likely 6.5 to 8.6
MJML is a strong new-project choice for responsive, framework-independent email templates, especially when mobile stacking and Outlook compatibility matter. It has active maintenance and credible production use, while React Email is a better fit for TypeScript teams that want to author in JSX. Below-baseline adoption growth, open dependency advisories, and limited independent testing of stable v5 keep the recommendation below a category-wide default.
- mailslurp.com/guides/email-client-support/email-frameworks: Independent test demonstrates responsive layout strengths on the prior major
- github.com/bitwarden/server/pull/8388: Stable v5 production use and documented upgrade costs
- github.com/mjmlio/mjml/releases/tag/v5.4.1: Stable release includes validation and dependency fixes
- react.email/docs/introduction: Peer offers native React and TypeScript authoring
- github.com/mjmlio/mjml/issues/3153: Pending updates for dependency advisories
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth trails the catalog baseline
Needed by many5.0
How many developers need a tool for this job?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
Most web apps send some email, but only some teams build designed HTML templates themselves. MJML covers the templating and rendering part of the category's job and not the sending. It works with any framework, which makes it wider than React Email.
- category job: MJML renders HTML email but does not send it
- nuntly.com/email-frameworks/react-email-vs-mjml: Independent of the app framework; ports exist for other languages
GPT-6.2 Sol: 5.4, likely 4.2 to 6.5
Responsive email templates are a recurring need for teams that own transactional or marketing email. MJML works across application frameworks and sending providers, and it covers the authoring and rendering parts of the category. Litmus found substantial interest in frameworks or templates among email teams, a narrower group than JavaScript and TypeScript developers as a whole.
- documentation.mjml.io: Markup, CLI, and Node rendering API
- litmus.com/wp-content/uploads/pdf/Litmus-2023-State-of-Email-Design-Report.pdf?%28Owned+by+Litmus+Marketing+team%29=: 63% of surveyed email marketing teams used or planned to use a framework or templates
Helps a lot7.9
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
MJML handles email client rendering very well, with Outlook wrappers, VML and a published compatibility matrix. Users say it makes responsive email much easier than hand-written tables. The limits: no bundled types, no dark mode or plain-text output in v5, async mjml2html, and you still need an outside templating engine for data.
- nuntly.com/email-frameworks/react-email-vs-mjml: Outlook/VML handling; no plain text or dark mode in v5
- pkgpulse.com/guides/react-email-vs-mjml-vs-maizzle-email-template-2026: Credited with wide client testing; React Email preferred for React teams
- npm hasTypes: No bundled TypeScript types
- newreleases.io/project/github/mjmlio/mjml/release/v6.0.0-alpha.1: v6 alpha adds dark mode, ARIA and smaller output
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
MJML 5.4.1 has a substantial component library, clear examples, and line-level validation that helps developers and coding agents catch markup errors. In an independent test of one template, MJML 4.18 stacked columns in all five phone apps and rendered correctly in classic Outlook, with heavier HTML than React Email or Maizzle. The test covered the previous major version, and a recent user report shows a rendering failure in new Outlook under a specific mail-server configuration. React Email is a better fit when typed JSX is central to the workflow.
- documentation.mjml.io: Component examples, validation modes, and line-level errors
- mailslurp.com/guides/email-client-support/email-frameworks: Independent 12-client test used MJML 4.18
- github.com/mjmlio/mjml/issues/3147: Users report rounded sections rendering blank under a specific new Outlook configuration
- npm hasTypes: The stable npm package ships without TypeScript declarations
- react.email/docs/introduction: Peer offers a React and TypeScript authoring workflow
- npmjs.com/package/%40types/mjml?activeTab=versions: DefinitelyTyped provides a separate declarations package
Holds up over time7.4
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
The project is active: 153 commits, 20 releases, a push the day before the data was read, and only 39 open issues. Mailjet funds it. The cost is churn: v5 changed the minifier, include handling and Node support, and v6 already needs Node 22 and changes the default typography.
- github commitsLastYear / releasesLastYear: 153 commits, 20 releases in the last year
- github openIssues / closedIssues: 39 open against 2085 closed
- newreleases.io/project/npm/mjml/release/5.0.0: v5 breaking changes: minifier, includes, Node 20+
- newreleases.io/project/github/mjmlio/mjml/release/v6.0.0-alpha.1: v6 alpha breaking changes, Node 22+
GPT-6.2 Sol: 7.2, likely 6.0 to 8.3
MJML logged 153 commits and 11 npm releases in the past year, with recent repository activity and multiple people cutting GitHub releases. React Email and Maizzle have been more active by commit count. Bitwarden documented two v5 changes that could fail silently during migration, and the v6 alpha raises the Node.js minimum again. The project has a clear direction, while future staffing and the cost of the next upgrade remain uncertain.
- github commitsLastYear, pushedAt, latestRelease: 153 commits, a November push, and a September stable release
- npm versionsLastYear: 11 package releases in the past year
- peers React Email and Maizzle commitsLastYear: 812 and 962 commits, respectively
- github.com/mjmlio/mjml/releases: Multiple release authors and a published v6 alpha
- github.com/bitwarden/server/pull/8388: Downstream v5 upgrade needed async rendering and explicit includes
- github.com/mjmlio/mjml/releases/tag/v6.0.0-alpha.1: The next major version plans to require Node.js 22 or later
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
MJML has about 11.3M downloads in 4 weeks and 2,687 dependent repositories, the most of any templating peer. Its growth ratio of 3.2 is below the 4.1 median, while React Email grew about 8x, so MJML is losing share. Some downloads come from tools that bundle it, such as n8n.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 11.3M vs 3.5M, ratio 3.2, below the 4.1 median
- dependents.repos: 2,687 repos, more than React Email (134) or Maizzle (76)
- peers React Email downloads: 31.2M vs 3.8M a year ago, much faster growth
- github.xxxxic.workers.dev/n8n-io/n8n/pull/28570: n8n depends on mjml, which inflates downloads
GPT-6.2 Sol: 4.3, likely 3.2 to 5.6
ecosyste.ms found 2,687 dependent repositories and 374 npm packages, more tracked repositories than React Email or Maizzle and far fewer than Nodemailer. Four-week downloads rose from 3.55 million to 11.30 million, but the 3.18× ratio trailed the 4.1× catalog baseline and React Email's 8.26×, indicating a loss of relative ground. Automated and indirect installs inflate download totals, while partial repository coverage and modest social activity leave the number of projects choosing it uncertain.
- dependents repos, packages: 2,687 tracked repositories and 374 tracked packages
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.18× year-over-year growth against the 4.1× baseline
- peers React Email, Maizzle, Nodemailer: Direct-use comparisons and substantially faster React Email download growth
- github stars, bluesky posts, hackerNews top: 18,299 stars, two Bluesky posts, and low engagement on matched Hacker News stories
Vouched for7.3
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Mailjet backs it, and products such as n8n and Mautic build on it. Many independent write-ups praise it, including Josh Comeau and Smashing Magazine. Much of that praise is old. Current comparisons name it the cross-platform standard but favour React Email for React teams, and there is no survey data.
- joshwcomeau.com/react/wonderful-emails-with-mjml-and-mdx: Independent developer write-up of production use
- pkgpulse.com/guides/react-email-vs-mjml-vs-maizzle-email-template-2026: 2026 comparison treats it as the established option
- emailonacid.com/blog/article/email-development/best-email-frameworks: Email testing vendor lists it among top frameworks
- bluesky posts / hackerNews: Low current social attention; HN items are mostly add-on tools
GPT-6.2 Sol: 8.1, likely 7.0 to 9.1
Bitwarden uses MJML 5.4.1 to build email templates, and Customer.io supports MJML in its code editor. Mailjet, the project's creator, also uses it in its email tooling. Independent client testing and developer reports support its value for responsive layouts, with limited survey evidence on satisfaction with MJML itself.
- github.com/bitwarden/server/pull/8388: Bitwarden upgraded its email template build to stable 5.4.1
- docs.customer.io/messaging/design-studio/emails/code-editor/transformers/mjml: Customer.io supports MJML authoring and imports in its code editor
- documentation.mailjet.com/hc/en-us/articles/360042910333-Mailjet-s-Email-Editor: Mailjet supports MJML in its hosted editor
- mailslurp.com/guides/email-client-support/email-frameworks: Independent cross-client rendering test
- reddit.com/r/Frontend/comments/1s22j1o/do_you_still_handcode_html_emails_or_use_a_builder: Email developers report practical gains from using MJML
Safe5.9
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
The MIT licence and the moderate dependency tree are good points. MJML has two path traversal advisories in mj-include, and the 2025 one followed an incomplete fix from 2020. That fix is only in v5. The Scorecard is 5.2, with zero scores for token permissions, pinned dependencies, security policy and SAST.
- advisories: 2 path traversal advisories, latest Dec 2025, moderate
- github.com/advisories/GHSA-45h5-66jx-r2wf: Patched in 5.0.0-alpha.9; earlier versions affected
- scorecard: Score 5.2; no security policy, unpinned deps, broad token permissions
- npm dependencies / license: 5 direct dependencies, MIT
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
The MIT-licensed stable release contains both published path-traversal fixes, though the second was needed because the first was incomplete. After the December 2025 disclosure, the follow-up fix reached an alpha in January and stable in April. The package has five direct dependencies, and its dependency tree still pulls in affected versions of glob and minimatch with an update pending. GitHub Actions provides an npm publishing workflow, but the 5.2 OpenSSF Scorecard flags weak token permissions and unpinned workflow dependencies, and the dependency advisories leave some risk dependent on how MJML is used.
- npm license, dependencies: MIT licence and five direct dependencies
- scorecard score, checks: 5.2 overall, with zeroes for token permissions and dependency pinning
- github.com/advisories/GHSA-4hch-r9xf-6vfr: Initial path-traversal fix in 4.6.3
- github.com/advisories/GHSA-45h5-66jx-r2wf: Follow-up advisory identifies 5.0.0-alpha.9 as patched
- github.com/mjmlio/mjml/releases/tag/v5.0.0-alpha.9: January prerelease carried the follow-up fix
- github.com/mjmlio/mjml/releases/tag/v5.0.0: Stable v5 shipped in April with stricter include handling
- github.com/mjmlio/mjml/issues/3153: Open report tracks affected glob and minimatch dependencies
- github.com/mjmlio/mjml/blob/v5.4.1/.github/workflows/npm-publish.yml: Manually triggered GitHub Actions workflow publishes to npm
Good
- Generates the Outlook conditional code and VML backgrounds for you, and publishes a support matrix for each component.
- Templates use plain markup that any backend, designer or ported engine can reuse, so they are not tied to React.
- Actively maintained by Mailjet: 20 releases last year, a v5 stable line and a v6 alpha that adds dark mode and accessibility.
- MIT licence, few open issues compared with its 2,000+ closed issues, and long production use.
Bad
- The npm package ships no bundled TypeScript types, and XML templates give no type-checking of data.
- Three major lines in about ten months (4, 5, then the 6 alpha) change the output HTML and the Node.js version it needs.
- mj-include had path traversal advisories. The 2025 fix only reached the 5.x line, so 4.x users must upgrade.
- Renders only: you need a templating engine for loops and data, and a separate tool such as Nodemailer to send.
The numbers
- npm downloads, 4 weeks
- 11M ×3.2 in a year
- GitHub stars
- 18k
- Commits, 12 months
- 153
- npm version
- 5.4.1 Sept 2026
- Versions, 12 months
- 11
- Advisories, 24 months
- 1 of 2 ever
- OpenSSF Scorecard
- 5.2 out of 10, Oct 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (mjmlio/mjml), npm (mjml), 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