-
Notifications
You must be signed in to change notification settings - Fork 630
Closed
Description
Summary
json-render already has renderers for web (React), mobile (React
Native), PDF (React PDF), and video (Remotion). I'd like to propose
adding an email renderer using
@react-email/components.
Motivation
- Emails are a natural fit — they're static like PDFs, and React Email
is already React-based - Real use case: AI generates personalized emails from natural
language prompts - Follows the exact same pattern as
@json-render/react-pdf
(tree-based spec, server-side render output) - Completes the ecosystem: web, mobile, PDF, video, and now email
Proposed Design
Package: @json-render/react-email
Components (mapped from @react-email/components):
- Structure: Html, Head, Body, Container, Section, Row, Column
- Content: Heading, Text, Link, Button, Image, Markdown
- Utility: Hr, Preview, Font
Server export: renderToHtml(spec, options) — using render()
from @react-email/render
Spec format: Flat element tree (same as react-pdf and
react-native)
No state/interactivity — emails are static output, just like PDFs
I'm happy to implement this
I've studied the existing renderer packages and understand the
patterns (schema, catalog, catalog-types, renderer, standard
components, server exports). Would love to contribute this if there's
interest.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels