mjmlio/mjml is one of the open-source repositories TopGit tracks, currently at 18.2k stars, written primarily in JavaScript. MJML: the only framework that makes responsive-email easy
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
MJML is a markup language created by Mailjet and designed to reduce the pain of coding a responsive email. Its semantic syntax makes the language easy and straightforward while its rich standard components library shortens your development time and lightens your email codebase. MJML’s open-source engine takes care of translating the MJML you wrote into responsive HTML.
Installation
You can install MJML with NPM to use it with NodeJS or the Command Line Interface. If you're not sure what those are, head over to Usage for other ways to use MJML.
npm install mjml
Development
To work on MJML, make changes and create pull requests, download and install yarn for easy development.
git clone https://github.com/mjmlio/mjml.git && cd mjml
yarn
yarn build
You can also run yarn build:watch to rebuild the package as you code.
Usage
Online
Don't want to install anything? Use the free online editor!
Applications and plugins
MJML comes with tools and plugins, check out:
Visual Studio Code plugin (MJML is included). Also available at Visual Studio Code Marketplace and the Open VSX Registry or in the extensions tab of the Visual Studio Code app.
Sublime Text plugin (MJML needs to be installed separately)
For more tools, check the Community page.
Command line interface
Compiles the file and outputs the HTML generated in output.html
mjml input.mjml -o output.html
You can pass optional arguments to the CLI and combine them.
argument
description
default value
mjml [input] -o [output]
Writes the output to [output]
mjml [input] -s
Writes the output to stdout
mjml [input] -s --noStdoutFileComment
Writes the output to stdout without file comment in the first line
mjml -w [input]
Watches the changes made to [input] (file or folder)
mjml [input] --config.allowIncludes
Enables mj-include processing (true or false)
false
mjml [input] --config.allowMixedSyntax
Allows mixing block and CSS variable syntax when sanitizeStyles is enabled (true or false)
false
mjml [input] --config.beautify
Beautifies the output (true or false)
true
mjml [input] --config.includePath
Adds allowlisted include root(s), as a string path or JSON array of paths
mjml [input] --config.minify
Minifies the output (true or false)
false
mjml [input] --config.minifyOptions
Options for HTML minifier, use minifyCss to control CSS minification
See mjml-cli documentation
mjml [input] --config.juicePreserveTags
Preserve some tags when inlining CSS
See mjml-cli documentation
mjml [input] --config.mjmlConfigPath
Path to .mjmlconfig file for custom components
current working directory
mjml [input] --config.sanitizeStyles
Sanitizes template variables inside CSS before minification (true or false)
false
mjml [input] --config.useMjmlConfigOptions
Allows to use the options attribute from .mjmlconfig file
false
mjml [input] --config.templateSyntax
Sets custom template delimiters as JSON array ([{"prefix":"{{","suffix":"}}"}])
The most recent commit recorded on mjmlio/mjml was 11 days ago, based on the GitHub push timestamp. The repository has 994 forks — one of the better signals of community interest.
How many stars does mjmlio/mjml have?
mjmlio/mjml has 18.2k GitHub stars — refresh the page for the live number, or check github.com/mjmlio/mjml. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is mjmlio/mjml open source?
Yes — mjmlio/mjml ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/mjmlio/mjml.
What topics is mjmlio/mjml associated with?
GitHub's repository topics for mjmlio/mjml: "email", "email-boilerplate", "email-campaigns", "mjml", "responsive", "responsive-email". TopGit's editorial category is open-source.
Where can I see mjmlio/mjml in action?
The project maintains a homepage at https://mjml.io. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about mjmlio/mjml?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/mjmlio/mjml is the definitive source.
Read full README in the tab above.
Want a second opinion on mjml?
Ask an AI that can read this page — one click and you get its take on mjml.