Softwr

Documentation · head to head

MJML vs Starlight

M

MJML

Documentation

Open-source markup language that compiles to responsive HTML email

From
Free
Free plan
Yes
Starlight logo

Starlight

Documentation

Documentation site framework built on Astro that ships no JavaScript to the reader by default

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only MJML lists semantic components; only Starlight lists file based routing.
  • Where MJML falls short: it is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor.

How do MJML and Starlight differ?

MJML and Starlight differ on platforms. Only the attributes on which MJML and Starlight actually diverge.

Attributes where MJML and Starlight differ
AttributeMJMLStarlight
PlatformsWeb, macOS, Windows, Linux, APIWeb, macOS, Windows, Linux

Identical on both: starting price (Free), pricing model (Open source, no licence fee), free tier (Yes).

Not yet recorded: category for MJML.

Which features does each one have?

They share no listed features; 6 appear only for MJML and 7 only for Starlight. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in MJML

  • Semantic components
  • Responsive by default
  • Custom components
  • Compiler to HTML
  • Open source
  • Online playground

Only in Starlight

  • File based routing
  • Pagefind search
  • Internationalisation
  • Component overrides
  • Zero client JavaScript
  • Expressive Code blocks
  • Auto generated sidebar

What is each one used for?

MJML is most often brought in for A development team keeping email templates in git and compiling them in CI. The jobs each tool is most often brought in to do.

MJML

  • A development team keeping email templates in git and compiling them in CInot Starlight
  • Transactional email with shared layouts across many message typesnot Starlight
  • An agency building reusable email components for several clientsnot Starlight
  • Developers who want Outlook-safe layouts without hand-writing tablesnot Starlight

Starlight

  • A developer tool whose docs live in the same repository as the code and are reviewed in the same pull requestnot MJML
  • A team that already runs Astro for its marketing site and wants one build pipeline for bothnot MJML
  • Documentation that must be served from a CDN or an air gapped static host with no search backendnot MJML
  • A multilingual open source project that needs per locale content trees and untranslated page fallbacknot MJML

Where do MJML and Starlight fall short?

MJML's most cited limit: it is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

MJML

  • It is a code framework, so marketers without HTML knowledge cannot use it without a developer or a separate editor
  • It does not send or host email, so you need an ESP and a preview tool such as an email testing service alongside it
  • Output is table-based HTML that is larger and harder to read than hand-crafted markup, which makes manual debugging of client quirks slower
  • Custom components need JavaScript knowledge, so extending it is not a no-code task
  • Origins in Mailjet and now Sinch mean the project direction depends on a vendor whose main business is selling email delivery, not maintaining the framework

Starlight

  • There is no editing interface, so every correction requires a git client, a Node install and a CI run, which puts documentation changes out of reach for anyone who does not already work in a repository
  • Starlight versions track Astro versions, so an Astro major release becomes a documentation site migration on someone else timeline rather than yours
  • Pagefind builds the whole search index at compile time, so build duration and index size grow with page count and large documentation sets pay for it on every deploy
  • There is no analytics, no feedback widget and no page level rating built in, so measuring which pages fail readers means wiring a third party script yourself
  • Component overrides are limited to the slots the theme exposes, and anything outside those slots means forking the theme and inheriting the merge burden on every upgrade

How much do MJML and Starlight cost?

MJML is free to use; Starlight is free to use. Plan by plan below, from each vendor's own pricing page.

MJML

Free
  • MJMLFree
    • Open-source framework
    • No licence fee
    • Community support

Starlight

Free
  • Open sourceFree
    • MIT licence
    • All features included
    • Self hosted on any static host

Which should you pick?

Choose MJML if

  • You need semantic components.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux, API.
  • You also want responsive by default.

Choose Starlight if

  • You need file based routing.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux.
  • You also want pagefind search.

Questions people ask

Is MJML or Starlight better?
It depends on the job. MJML fits a development team keeping email templates in git and compiling them in CI; Starlight fits a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request. MJML starts at Free and Starlight at Free.
Which is cheaper, MJML or Starlight?
MJML starts at Free and Starlight at Free.
Does MJML or Starlight run on more platforms?
MJML runs on Web, macOS, Windows, Linux, API. Starlight runs on Web, macOS, Windows, Linux.
Can I use MJML for free?
Both have a free tier, so you can try either at no cost before committing.
What is MJML best used for?
MJML is most often used for a development team keeping email templates in git and compiling them in ci, transactional email with shared layouts across many message types, an agency building reusable email components for several clients, developers who want outlook-safe layouts without hand-writing tables. Of those, a development team keeping email templates in git and compiling them in ci and transactional email with shared layouts across many message types are not what Starlight is typically brought in for.
What can MJML do that Starlight cannot?
MJML covers Semantic components, Responsive by default, Custom components, Compiler to HTML. Starlight covers File based routing, Pagefind search, Internationalisation, Component overrides.

Answered from the vendors’ own pages

MJML: Is MJML free?

Yes. It is open source with no licence fee.

Starlight: Can a non technical writer publish a page without help?

No. There is no content management interface. Every change is a commit, a pull request and a build.

MJML: Does MJML send email?

No. It compiles markup to HTML; you send it with an ESP.

Starlight: Do I need to know Astro to use it?

Not for basic use. Markdown files and a config file are enough until you want custom components, at which point Astro knowledge becomes mandatory.

MJML: Who created MJML?

Developers at Mailjet, in early 2015.

Starlight: Is search included or do I pay for it?

Included and free. Pagefind builds a static index at compile time. Algolia DocSearch is optional if you want hosted search instead.

MJML: Does it work with Outlook?

Its output is built to be responsive in the most popular clients, including Outlook.

Starlight: What happens when Astro releases a major version?

Starlight follows it, and your site needs a migration. Read the upgrade guide before pinning a version for a long lived project.

Starlight: Can I self host with no external services?

Yes. The output is static HTML, CSS and a search index. Nothing calls out at runtime unless you add it.

Share

Related pages

Other head to heads