NewsCrawler.org

Hyper Elements: React components for emails, web pages, PDFs and images

Hyper Elements: React components for emails, web pages, PDFs and images
Image: news.hada.io

Hyper Elements is a library for writing content as React components. You write a receipt, invoice, landing page or social card once, and the same content and styles are reused for email, web pages and PDF. Email is output as table-based HTML[2] and plain text, web pages as responsive HTML, and social cards or banners as PNG or SVG. A shared theme sets colors, fonts and spacing, and rendering runs on your own server without a browser or external API.

The library can also check existing HTML emails without React, including MJML, React Email or hand-written HTML. It builds local previews of how Outlook, Gmail and Apple Mail would display an email, without sending it, and shows which styles change in each client. AI agents can read the layout as text and find problem spots and fixes, and the project provides skills for writing designs, checking emails and using team templates.

In the project's own email experiment, an agent passed the check in 33 seconds, compared with 86 seconds for React Email, and used 1,831 output tokens[1] compared with 6,215. The project is released under the MIT license.

Read the original github.comDiscussion on GeekNews

Sources

  • KRGeekNews KO

    Hyper Elements - React 컴포넌트로 이메일, 웹페이지, PDF, 이미지를 만드는 라이브러리

    2 points0 comments

Published: First seen: Читать по-русски

Open as a page