Getting Started
Quick Start
Get your first email preview in under a minute using the Emailens web app or API.
Option 1: Web app
- Go to emailens.dev
- Paste your HTML email into the editor
- Click Preview
- 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/engineimport {
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
- Installation — set up API keys and authentication
- Concepts — understand clients, transforms, and scores
- API reference — full REST API documentation