Emailens
Getting Started

Quick Start

Get your first email preview in under a minute using the Emailens web app or API.

Option 1: Web app

  1. Go to emailens.dev
  2. Paste your HTML email into the editor
  3. Click Preview
  4. See per-client renders, compatibility scores, and dark mode previews

No account required for basic usage (30 previews/day on the free tier).

Option 2: REST API

curl -X POST https://emailens.dev/api/preview \
  -H "Content-Type: application/json" \
  -d '{"html": "<html><body><h1>Hello</h1></body></html>"}'

The response includes transforms, warnings, scores, dark mode variants, and screenshot URLs.

Option 3: Engine package

bun add @emailens/engine
import {
  transformForAllClients,
  analyzeEmail,
  generateCompatibilityScore,
} from "@emailens/engine";

const html = "<html><body><h1>Hello</h1></body></html>";

const transforms = transformForAllClients(html);
const warnings = analyzeEmail(html);
const scores = generateCompatibilityScore(warnings);

console.log(scores);
// { "gmail-web": { score: 95, errors: 0, warnings: 1, info: 0 }, ... }

Next steps

On this page