react-email
Skill by vercel-labs
Renders JSON specs into HTML or plain-text emails using React Email components. It is for developers building transactional or marketing emails from JSON, including AI-generated email specs.
Install react-email
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.claude/skills && cp -r /tmp/json-render/skills/react-email ~/.claude/skills/react-emailRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel-labs/json-render /tmp/json-render && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/json-render/skills/react-email ~/.gemini/antigravity-cli/skills/react-emailAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill documents the @json-render/react-email package. It converts a flat JSON element tree, with a root key and an elements map, into HTML or plain-text email output. The server-side functions renderToHtml and renderToPlainText take a spec and optional RenderOptions such as a registry, includeStandard, and state.
The package ships standard components for document structure, layout, content and utility use, such as Container, Section, Heading, Button and Markdown. Developers can define a custom catalog with defineCatalog and add their own components with defineRegistry. The skill is aimed at developers building transactional or marketing emails from JSON, creating email catalogs, or rendering AI-generated email specs.
Written from the project's SKILL.md and checked against it.
What it can do
- renderToHtmlRenders a spec to an HTML email string on the server.
- renderToPlainTextRenders a spec to a plain-text email string on the server.
- Standard componentsProvides Html, Body, Container, Section, Heading, Text, Link, Button, Image and more.
- Custom catalogs and registriesLets developers add their own components using defineCatalog and defineRegistry.
- Visibility and stateSupports visible conditions, $state, $cond and repeat expressions with a state option.
- Server-safe importOffers a schema and catalog import path that does not require React or @react-email/components.
What you need
- @json-render/react-email package
- @json-render/core package
- @react-email/components package
- @react-email/render package
- zod for defining component props
Try asking
- Render this JSON email spec to HTML with renderToHtml.
- Create a custom Alert component for my email catalog.
- Turn this AI-generated welcome email spec into plain text.
Good to know
- The root element must be Html, and its children should be Head and Body.
- Inline styles are recommended, since many email clients strip style blocks.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/react-email/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to react-email
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
react-email: common questions
What does renderToHtml need as input?
It takes a spec with a root key and an elements map, plus optional RenderOptions such as registry and state. It returns an HTML email string.
Can I import the schema without React installed?
Yes. The source says the @json-render/react-email/server path provides the schema and catalog without React or @react-email/components.
How do I add my own email component?
Define it in a catalog with defineCatalog, then implement it in a registry with defineRegistry and pass that registry to renderToHtml.
How do I install react-email?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is react-email free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is react-email safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to react-email?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
