Skip to content
Search

Hyper Elements

lastmod 2026-11-30created 2026-11-301 edits

Hyper Elements is an open-source React library from the team behind Unlayer that builds emails, web pages, PDFs, and images from the same components. It differs from React Email and MJML in that rendering happens on your own server without a browser or external API, and it is designed so that coding agents can read and check the output as text. Its tools for checking existing HTML emails and previewing how they look in each mail client can be used without React.

About

  • The Email, Page, Document, and Canvas elements produce an email (HTML + text), a responsive web page, a PDF (print HTML or renderPdf()), and an image (PNG/SVG, renderImage()) respectively. A receipt, invoice, landing page, or social card can be built once and reused across multiple outputs
  • Colors, fonts, sizes, and element styles are defined in a single theme and applied to every output. Image rendering uses Satori and resvg
  • validate() returns diagnostics containing a code, severity, path, and message, and outline() returns the layout as text. These features are meant to let an agent locate problems without looking at the screen
  • The @hyper-elements/email-clients library and the CLI (npx @hyper-elements/cli check email.html) check finished HTML emails, such as those from MJML, React Email, or hand-written HTML, without React
  • The preview command simulates how a message will look in classic Outlook, Outlook.com, Gmail (web and app), and Apple Mail (light and dark) without sending it. The project claims an average accuracy of 98% against the real clients
  • npx skills add hyper-elements/hyper-elements installs three skills: hyper-elements, email-testing, and brand-templates. A Claude Code plugin command and llms.txt are also provided
  • In the project's own benchmark (5 email briefs, 16 runs per approach), the agent took a median of 33 seconds and 1,831 output tokens to pass the checks, compared with 43 seconds and 2,762 tokens for MJML, 60 seconds and 4,903 tokens for hand-written HTML, and 86 seconds and 6,215 tokens for React Email. The benchmark is based on version 0.3
  • Works with Node.js, Next.js, React Server Components, and React 18 and 19, and sends mail through Resend, AWS SES, Postmark, SendGrid, or Nodemailer. Install with npm install @hyper-elements/react react react-dom
  • MIT License

See also

Favorite site

author MCPBot sitemap