@emailens/engine 0.9.6 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +247 -232
- package/dist/compile/index.d.cts +2 -2
- package/dist/compile/index.d.ts +2 -2
- package/dist/index.cjs +3099 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -10
- package/dist/index.d.ts +29 -10
- package/dist/index.js +3097 -135
- package/dist/index.js.map +1 -1
- package/dist/{react-email-M23kFFxl.d.cts → react-email-B1Rd5itD.d.cts} +1 -1
- package/dist/{react-email-TJF6usIm.d.ts → react-email-D4XyNztP.d.ts} +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/{types-WvVf2OXX.d.cts → types-DEAn3IiX.d.cts} +21 -1
- package/dist/{types-WvVf2OXX.d.ts → types-DEAn3IiX.d.ts} +21 -1
- package/package.json +123 -121
package/README.md
CHANGED
|
@@ -1,232 +1,247 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<picture>
|
|
4
|
-
<source media="(prefers-color-scheme: dark)" srcset="./docs/wordmark-dark.svg">
|
|
5
|
-
<img src="./docs/wordmark-light.svg" alt="emailens / engine" width="515">
|
|
6
|
-
</picture>
|
|
7
|
-
|
|
8
|
-
**The rendering linter for email**
|
|
9
|
-
|
|
10
|
-
[](https://www.npmjs.com/package/@emailens/engine)
|
|
11
|
-
[](./LICENSE)
|
|
12
|
-
[](https://nodejs.org/)
|
|
14
|
-
[](https://github.com/emailens/mcp)
|
|
15
|
-
[](https://github.com/emailens/engine/stargazers)
|
|
16
|
-
|
|
17
|
-
[Quick Start](#quick-start) · [What It Catches](#what-it-catches) · [Why Emailens](#why-emailens) · [Supported Clients](#supported-email-clients) · [API Docs](./docs/API.md) · [The State of Email CSS](https://emailens.dev/email-css/report)
|
|
18
|
-
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
**Your email looks perfect in Apple Mail. Gmail strips half the CSS. Outlook renders it in Word.**
|
|
22
|
-
|
|
23
|
-
`@emailens/engine` analyzes your HTML against 250+ CSS properties across
|
|
24
|
-
|
|
25
|
-
Our data says you need this: across the
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-
> **[emailens.dev](https://emailens.dev)** — Try the hosted version. Paste HTML, get a full audit in seconds.
|
|
30
|
-
|
|
31
|
-
## Quick Start
|
|
32
|
-
|
|
33
|
-
No install, no project setup, lint any email right now:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npx @emailens/cli lint email.html
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Or use the engine as a library:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm install @emailens/engine
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
import { auditEmail } from "@emailens/engine";
|
|
47
|
-
|
|
48
|
-
// Flexbox + gap + box-shadow — all Outlook killers
|
|
49
|
-
const html = `<html lang="en">
|
|
50
|
-
<head><title>Weekly Update</title>
|
|
51
|
-
<style>
|
|
52
|
-
.card { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
|
|
53
|
-
</style>
|
|
54
|
-
</head>
|
|
55
|
-
<body>
|
|
56
|
-
<div class="card" style="display: flex; gap: 16px;">
|
|
57
|
-
<div>Column A</div>
|
|
58
|
-
<div>Column B</div>
|
|
59
|
-
</div>
|
|
60
|
-
</body>
|
|
61
|
-
</html>`;
|
|
62
|
-
|
|
63
|
-
const report = auditEmail(html, { framework: "jsx" });
|
|
64
|
-
|
|
65
|
-
console.log(report.compatibility.scores["outlook-windows"]);
|
|
66
|
-
// { score: 30, errors: 3, warnings: 3, info: 1 }
|
|
67
|
-
// ↑ Outlook uses Word — flexbox, gap, box-shadow, border-radius all break
|
|
68
|
-
|
|
69
|
-
console.log(report.compatibility.scores["gmail-web"]);
|
|
70
|
-
// { score: 75, errors: 0, warnings: 5, info: 0 }
|
|
71
|
-
|
|
72
|
-
console.log(report.spam.score); // 100 (clean)
|
|
73
|
-
console.log(report.accessibility.score); // 88
|
|
74
|
-
console.log(report.size.clipped); // false (under Gmail's 102KB limit)
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Score too low? Fix it
|
|
78
|
-
|
|
79
|
-
Score too low? Fix it automatically:
|
|
80
|
-
|
|
81
|
-
```typescript
|
|
82
|
-
import { generateAiFix, AI_FIX_SYSTEM_PROMPT } from "@emailens/engine";
|
|
83
|
-
|
|
84
|
-
const { code } = await generateAiFix({
|
|
85
|
-
originalHtml: html,
|
|
86
|
-
warnings: report.compatibility.warnings,
|
|
87
|
-
scores: report.compatibility.scores,
|
|
88
|
-
scope: "outlook-windows",
|
|
89
|
-
format: "jsx",
|
|
90
|
-
provider: async (prompt) => {
|
|
91
|
-
// Any LLM — Claude, GPT, etc.
|
|
92
|
-
const msg = await anthropic.messages.create({
|
|
93
|
-
model: "claude-sonnet-4-6",
|
|
94
|
-
max_tokens: 8192,
|
|
95
|
-
system: AI_FIX_SYSTEM_PROMPT,
|
|
96
|
-
messages: [{ role: "user", content: prompt }],
|
|
97
|
-
});
|
|
98
|
-
return msg.content[0].type === "text" ? msg.content[0].text : "";
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
// code → JSX with <Table> layout, VML roundrects, inline fallbacks
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## What It Catches
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
- **CSS compatibility** — 250+ properties tested across
|
|
109
|
-
- **
|
|
110
|
-
- **
|
|
111
|
-
- **
|
|
112
|
-
- **
|
|
113
|
-
- **
|
|
114
|
-
- **
|
|
115
|
-
- **
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
|
128
|
-
|
|
129
|
-
| `@emailens/engine
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- **
|
|
136
|
-
- **
|
|
137
|
-
- **
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
|
142
|
-
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
|
154
|
-
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
|
167
|
-
|
|
168
|
-
| Gmail
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
| Outlook
|
|
172
|
-
| Outlook
|
|
173
|
-
| Outlook
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
```bash
|
|
220
|
-
bun
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="./docs/wordmark-dark.svg">
|
|
5
|
+
<img src="./docs/wordmark-light.svg" alt="emailens / engine" width="515">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
8
|
+
**The rendering linter for email**
|
|
9
|
+
|
|
10
|
+
[](https://www.npmjs.com/package/@emailens/engine)
|
|
11
|
+
[](./LICENSE)
|
|
12
|
+
[]()
|
|
13
|
+
[](https://nodejs.org/)
|
|
14
|
+
[](https://github.com/emailens/mcp)
|
|
15
|
+
[](https://github.com/emailens/engine/stargazers)
|
|
16
|
+
|
|
17
|
+
[Quick Start](#quick-start) · [What It Catches](#what-it-catches) · [Why Emailens](#why-emailens) · [Supported Clients](#supported-email-clients) · [API Docs](./docs/API.md) · [The State of Email CSS](https://emailens.dev/email-css/report)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
**Your email looks perfect in Apple Mail. Gmail strips half the CSS. Outlook renders it in Word.**
|
|
22
|
+
|
|
23
|
+
`@emailens/engine` analyzes your HTML against 250+ CSS properties across 21 email clients, scores compatibility, and shows you exactly what to fix — before you hit send.
|
|
24
|
+
|
|
25
|
+
Our data says you need this: across the 255 CSS and HTML features we track, **only 6 are fully supported in every major email client**. See [The State of Email CSS](https://emailens.dev/email-css/report).
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
> **[emailens.dev](https://emailens.dev)** — Try the hosted version. Paste HTML, get a full audit in seconds.
|
|
30
|
+
|
|
31
|
+
## Quick Start
|
|
32
|
+
|
|
33
|
+
No install, no project setup, lint any email right now:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx @emailens/cli lint email.html
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Or use the engine as a library:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install @emailens/engine
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { auditEmail } from "@emailens/engine";
|
|
47
|
+
|
|
48
|
+
// Flexbox + gap + box-shadow — all Outlook killers
|
|
49
|
+
const html = `<html lang="en">
|
|
50
|
+
<head><title>Weekly Update</title>
|
|
51
|
+
<style>
|
|
52
|
+
.card { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
|
|
53
|
+
</style>
|
|
54
|
+
</head>
|
|
55
|
+
<body>
|
|
56
|
+
<div class="card" style="display: flex; gap: 16px;">
|
|
57
|
+
<div>Column A</div>
|
|
58
|
+
<div>Column B</div>
|
|
59
|
+
</div>
|
|
60
|
+
</body>
|
|
61
|
+
</html>`;
|
|
62
|
+
|
|
63
|
+
const report = auditEmail(html, { framework: "jsx" });
|
|
64
|
+
|
|
65
|
+
console.log(report.compatibility.scores["outlook-windows"]);
|
|
66
|
+
// { score: 30, errors: 3, warnings: 3, info: 1 }
|
|
67
|
+
// ↑ Outlook uses Word — flexbox, gap, box-shadow, border-radius all break
|
|
68
|
+
|
|
69
|
+
console.log(report.compatibility.scores["gmail-web"]);
|
|
70
|
+
// { score: 75, errors: 0, warnings: 5, info: 0 }
|
|
71
|
+
|
|
72
|
+
console.log(report.spam.score); // 100 (clean)
|
|
73
|
+
console.log(report.accessibility.score); // 88
|
|
74
|
+
console.log(report.size.clipped); // false (under Gmail's 102KB limit)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Score too low? Fix it
|
|
78
|
+
|
|
79
|
+
Score too low? Fix it automatically:
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
import { generateAiFix, AI_FIX_SYSTEM_PROMPT } from "@emailens/engine";
|
|
83
|
+
|
|
84
|
+
const { code } = await generateAiFix({
|
|
85
|
+
originalHtml: html,
|
|
86
|
+
warnings: report.compatibility.warnings,
|
|
87
|
+
scores: report.compatibility.scores,
|
|
88
|
+
scope: "outlook-windows",
|
|
89
|
+
format: "jsx",
|
|
90
|
+
provider: async (prompt) => {
|
|
91
|
+
// Any LLM — Claude, GPT, etc.
|
|
92
|
+
const msg = await anthropic.messages.create({
|
|
93
|
+
model: "claude-sonnet-4-6",
|
|
94
|
+
max_tokens: 8192,
|
|
95
|
+
system: AI_FIX_SYSTEM_PROMPT,
|
|
96
|
+
messages: [{ role: "user", content: prompt }],
|
|
97
|
+
});
|
|
98
|
+
return msg.content[0].type === "text" ? msg.content[0].text : "";
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
// code → JSX with <Table> layout, VML roundrects, inline fallbacks
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## What It Catches
|
|
105
|
+
|
|
106
|
+
10 analysis engines, one `auditEmail()` call.
|
|
107
|
+
|
|
108
|
+
- **CSS compatibility** — 250+ properties tested across 21 email clients, with fix snippets and AI-powered auto-fix
|
|
109
|
+
- **Content overflow** — fixed widths wider than the email frame and unbreakable strings that force horizontal scrolling
|
|
110
|
+
- **Visual bugs** — gradients/background images with no color fallback (invisible content in Outlook) and fonts with no web-safe fallback, each with a concrete fix
|
|
111
|
+
- **Spam scoring** — 45+ signals modeled after SpamAssassin, CAN-SPAM, and GDPR
|
|
112
|
+
- **Accessibility** — WCAG contrast ratios, alt text, semantic structure, heading hierarchy
|
|
113
|
+
- **Link validation** — broken hrefs, insecure HTTP, `javascript:` protocols, deceptive URLs
|
|
114
|
+
- **Image analysis** — missing dimensions, oversized data URIs, tracking pixels, WebP/SVG format
|
|
115
|
+
- **Inbox preview** — subject/preheader truncation per client, Gmail clipping detection
|
|
116
|
+
- **Domain authentication** — SPF, DKIM, DMARC, MX, and BIMI DNS record validation
|
|
117
|
+
- **Template variables** — unresolved merge tags across 6 template systems (Handlebars, ERB, Mailchimp, etc.)
|
|
118
|
+
|
|
119
|
+
## Installation
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
npm install @emailens/engine
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Three entry points:
|
|
126
|
+
|
|
127
|
+
| Import | Description |
|
|
128
|
+
|---|---|
|
|
129
|
+
| `@emailens/engine` | Core analysis — CSS, spam, a11y, links, images, inbox preview, size, templates, AI fix |
|
|
130
|
+
| `@emailens/engine/compile` | JSX / MJML / Maizzle → HTML compilers |
|
|
131
|
+
| `@emailens/engine/server` | Node-only: DNS deliverability checks, SpamAssassin integration |
|
|
132
|
+
|
|
133
|
+
## Why Emailens?
|
|
134
|
+
|
|
135
|
+
- **Offline-first** — runs entirely locally, no network calls required (except DNS deliverability checks)
|
|
136
|
+
- **Unified audit** — one function call returns CSS compatibility, spam, accessibility, links, images, inbox preview, size, and template checks
|
|
137
|
+
- **Framework-aware** — fix snippets tailored to React Email (JSX), MJML, and Maizzle
|
|
138
|
+
- **AI-ready** — structural issues get LLM-powered auto-fix with any provider (Claude, GPT, etc.)
|
|
139
|
+
- **Programmable** — TypeScript API, not a GUI — integrate into CI, editors, or build pipelines
|
|
140
|
+
|
|
141
|
+
| | @emailens/engine | Litmus | Email on Acid | caniemail.com |
|
|
142
|
+
|---|---|---|---|---|
|
|
143
|
+
| Local/offline | Yes | No | No | Data only |
|
|
144
|
+
| Programmatic API | Yes | Limited | No | No |
|
|
145
|
+
| CSS + Spam + A11y | Yes | Separate tools | Separate tools | CSS only |
|
|
146
|
+
| AI auto-fix | Yes | No | No | No |
|
|
147
|
+
| Open source | MIT | No | No | Yes (data) |
|
|
148
|
+
|
|
149
|
+
### vs other email libraries
|
|
150
|
+
|
|
151
|
+
`@emailens/engine` sits in the **QA / lint / scoring** slot — it analyzes finished HTML. It's complementary to (not a replacement for) composition and inlining libraries.
|
|
152
|
+
|
|
153
|
+
| | @emailens/engine | [juice](https://github.com/automattic/juice) | [email-comb](https://github.com/codsen/email-comb) | [mjml](https://mjml.io/) | [maizzle](https://maizzle.com/) |
|
|
154
|
+
|---|---|---|---|---|---|
|
|
155
|
+
| Purpose | QA / lint / score | CSS inliner | Unused CSS pruner | MJML → HTML | Tailwind → HTML |
|
|
156
|
+
| Per-client compatibility scoring | Yes | No | No | No | No |
|
|
157
|
+
| Spam / a11y / link / image analysis | Yes | No | No | No | No |
|
|
158
|
+
| AI-powered fix generation | Yes | No | No | No | No |
|
|
159
|
+
| Compose emails | Reads only | Reads only | Reads only | Yes | Yes |
|
|
160
|
+
| CSS inlining | No (pair with juice) | Yes | No | Yes (built-in) | Yes (built-in) |
|
|
161
|
+
|
|
162
|
+
A typical pipeline: write in **mjml** or **maizzle** → inline with **juice** → audit with **@emailens/engine** → ship.
|
|
163
|
+
|
|
164
|
+
## Supported Email Clients
|
|
165
|
+
|
|
166
|
+
| Client | ID | Category | Engine | Dark Mode |
|
|
167
|
+
|---|---|---|---|---|
|
|
168
|
+
| Gmail | `gmail-web` | Webmail | Gmail Web | Yes |
|
|
169
|
+
| Gmail Android | `gmail-android` | Mobile | Gmail Mobile | Yes |
|
|
170
|
+
| Gmail iOS | `gmail-ios` | Mobile | Gmail Mobile | Yes |
|
|
171
|
+
| Outlook 365 | `outlook-web` | Webmail | Outlook Web | Yes |
|
|
172
|
+
| Outlook (New) | `outlook-windows` | Desktop | Outlook Web | Yes |
|
|
173
|
+
| Outlook Classic | `outlook-windows-legacy` | Desktop | Microsoft Word | Yes |
|
|
174
|
+
| Outlook iOS | `outlook-ios` | Mobile | Outlook Mobile | Yes |
|
|
175
|
+
| Outlook Android | `outlook-android` | Mobile | Outlook Mobile | Yes |
|
|
176
|
+
| Outlook for Mac | `outlook-macos` | Desktop | WebKit | Yes |
|
|
177
|
+
| Apple Mail | `apple-mail-macos` | Desktop | WebKit | Yes |
|
|
178
|
+
| Apple Mail iOS | `apple-mail-ios` | Mobile | WebKit | Yes |
|
|
179
|
+
| Yahoo Mail | `yahoo-mail` | Webmail | Yahoo | Yes |
|
|
180
|
+
| Yahoo Mail Android | `yahoo-mail-android` | Mobile | Yahoo | Yes |
|
|
181
|
+
| Yahoo Mail iOS | `yahoo-mail-ios` | Mobile | Yahoo | Yes |
|
|
182
|
+
| Samsung Mail | `samsung-mail` | Mobile | Samsung | Yes |
|
|
183
|
+
| Thunderbird | `thunderbird` | Desktop | Gecko | No |
|
|
184
|
+
| HEY Mail | `hey-mail` | Webmail | WebKit | Yes |
|
|
185
|
+
| Proton Mail | `protonmail` | Webmail | Proton | Yes |
|
|
186
|
+
| AOL Mail | `aol` | Webmail | AOL | Yes |
|
|
187
|
+
| Fastmail | `fastmail` | Webmail | Fastmail | Yes |
|
|
188
|
+
| Superhuman | `superhuman` | Desktop | Blink | Yes |
|
|
189
|
+
|
|
190
|
+
## API Documentation
|
|
191
|
+
|
|
192
|
+
Full API reference: **[docs/API.md](./docs/API.md)**
|
|
193
|
+
|
|
194
|
+
Covers:
|
|
195
|
+
- `auditEmail` and `createSession` — core analysis
|
|
196
|
+
- Standalone analyzers (CSS, spam, links, accessibility, images, inbox preview, size, templates)
|
|
197
|
+
- DNS deliverability and SpamAssassin integration
|
|
198
|
+
- Client transforms and dark mode simulation
|
|
199
|
+
- Compile module (JSX, MJML, Maizzle)
|
|
200
|
+
- AI-powered fixes and token estimation
|
|
201
|
+
- Performance optimization guide
|
|
202
|
+
- Security considerations
|
|
203
|
+
- Full TypeScript type definitions
|
|
204
|
+
|
|
205
|
+
## Roadmap
|
|
206
|
+
|
|
207
|
+
See [ROADMAP.md](./ROADMAP.md) for the full picture (shipped items + items under consideration with rationale).
|
|
208
|
+
|
|
209
|
+
**Shipped:** automated caniemail.com data sync · GitHub Actions integration via `@emailens/cli` and the [Marketplace Action](https://github.com/marketplace/actions/emailens-email-preview-check) · AI-powered fix generation · compile module for JSX/MJML/Maizzle.
|
|
210
|
+
|
|
211
|
+
**Considering:** Outlook VML auto-generation · plugin system for custom analyzers · MJML/Maizzle source-level linting · ESLint plugin · spam corpus tuning · dark-mode accuracy tests.
|
|
212
|
+
|
|
213
|
+
Concrete bugs go in [Issues](https://github.com/emailens/engine/issues). Open-ended ideas live in the roadmap.
|
|
214
|
+
|
|
215
|
+
## Contributing
|
|
216
|
+
|
|
217
|
+
Contributions are welcome! See **[CONTRIBUTING.md](./CONTRIBUTING.md)** for architecture overview, setup instructions, and PR guidelines.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
bun install && bun test # 719 tests
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Optional real-render validation — renders engine output in a real browser engine (free, no Litmus/Email on Acid needed). Off by default; needs a browser-capable machine:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
bunx playwright install chromium
|
|
227
|
+
bun run test:render
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Data Maintenance
|
|
231
|
+
|
|
232
|
+
CSS support data is auto-synced from [caniemail.com](https://www.caniemail.com/). Other data (dark mode behavior, display limits, Superhuman overrides) is manually curated and tracked with verification dates.
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
bun run sync:caniemail # Refresh CSS support matrix from caniemail.com
|
|
236
|
+
bun run check:freshness # Flag stale data sources (exits 1 if any overdue)
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md#data-sources-and-freshness) for full details on data sources and verification procedures.
|
|
240
|
+
|
|
241
|
+
## License
|
|
242
|
+
|
|
243
|
+
MIT — Copyright 2025 [Emailens](https://emailens.dev)
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
If this saved you from an Outlook surprise, [a star](https://github.com/emailens/engine) helps other email developers find it.
|
package/dist/compile/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as InputFormat } from '../types-
|
|
2
|
-
export { C as CompileError, a as CompileReactEmailOptions, S as SandboxStrategy, c as compileReactEmail } from '../react-email-
|
|
1
|
+
import { u as InputFormat } from '../types-DEAn3IiX.cjs';
|
|
2
|
+
export { C as CompileError, a as CompileReactEmailOptions, S as SandboxStrategy, c as compileReactEmail } from '../react-email-B1Rd5itD.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Compile an MJML source string into an HTML email string.
|
package/dist/compile/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as InputFormat } from '../types-
|
|
2
|
-
export { C as CompileError, a as CompileReactEmailOptions, S as SandboxStrategy, c as compileReactEmail } from '../react-email-
|
|
1
|
+
import { u as InputFormat } from '../types-DEAn3IiX.js';
|
|
2
|
+
export { C as CompileError, a as CompileReactEmailOptions, S as SandboxStrategy, c as compileReactEmail } from '../react-email-D4XyNztP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Compile an MJML source string into an HTML email string.
|