Overview
hono-email is an ESM library for rendering HTML email and plain text from hono/jsx. It focuses on rendering, normalization, validation, and email-oriented primitives.
What it does
Section titled “What it does”- Renders HTML email from
hono/jsxcomponents. - Derives plain text from the same JSX tree through
render(). - Keeps strict email validation enabled by default.
- Minifies output by default, with optional pretty printing and widow control.
- Styles markdown content with the
Markdowncomponent. - Supports
hono/cssclass-based CSS-in-JS as a styling option. - Applies Tailwind utility output through
Tailwindbuild artifacts. - Sends rendered email through transport adapters (SMTP, Resend, SendGrid, Postmark, Mailgun, Cloudflare Email).
- Provides bundler integrations through
@hono-email/tailwind-plugin. - Live-previews templates with real-time props editing using
@hono-email/preview.
When to use it
Section titled “When to use it”Use hono-email when you want to build email templates with JSX in a Hono or Bun/Node/Deno/Cloudflare Workers environment, and you need validated, email-client-safe output without managing a separate React dependency.