Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Cap v0.6 marketing emails

Richie McIlroy162e08631d6a
diff --git a/emails/CATALOG.md b/emails/CATALOG.md
index f96e5a897..ccc962d4b 100644
--- a/emails/CATALOG.md
+++ b/emails/CATALOG.md
@@ -168,8 +168,8 @@ Campaigns are manually scheduled product updates, with no automatic enrollment.
| Campaign | Audience | Subject and source | Loops ID |
| --- | --- | --- | --- |
-| Customer product update template | customer | [Keeping up with Cap](../emails/marketing/customer-update.ts) | `cmtvpmfxc01ls0j0nnlffombv` |
-| Noncustomer product update template | free | [Take another look at Cap](../emails/marketing/free-update.ts) | `cmtvpmjej01kr0j18cxoz2n0y` |
+| Cap v0.6 launch \| Customers | customer | [Meet Cap v0.6, our biggest update yet](../emails/marketing/customer-update.ts) | `cmtvpmfxc01ls0j0nnlffombv` |
+| Cap v0.6 launch \| Noncustomers | free | [Meet Cap v0.6, our biggest update yet](../emails/marketing/free-update.ts) | `cmtvpmjej01kr0j18cxoz2n0y` |
## Branding and personalization
@@ -552,11 +552,11 @@ Thanks for giving Cap a go.
### customer-update
-Evergreen changelog invitation for customers; review before each campaign.
+One-off Cap v0.6 launch announcement for customers, leading to the release video and update details.
-**Subject:** Keeping up with Cap
+**Subject:** Meet Cap v0.6, our biggest update yet
-**Preview:** The changes we've shipped, all in one place.
+**Preview:** 3D scenes, animated titles and Studio Sound. See what's new in the launch video.
**Variables:** `contact.capGreeting` (fallback: Hey,)
@@ -564,19 +564,25 @@ Evergreen changelog invitation for customers; review before each campaign.
{contact.capGreeting}
-Just a quick one from me. If you're wondering what's changed in Cap, we keep the features and fixes together in our changelog.
+Cap v0.6 is here, and it's our biggest release yet.
-Here's what we've shipped.
+We've rebuilt the editor so you can do more with the recordings you already make. Add 3D scenes, animated titles and moving backgrounds, without opening another editing app.
-Is there something you're still waiting for us to build or fix? Reply and let me know. Hearing what's missing is just as useful as hearing what's working.
+Studio Sound reduces microphone noise, and the new export screen shows estimated file size and time before you save.
+
+The easiest way to see the difference is the launch video. The release page also has the download and full details.
+
+Watch Cap v0.6 in action →
+
+Thanks for supporting Cap. I can't wait to see what you make with this one :)
### free-update
-Evergreen reactivation invitation for eligible independent noncustomers; review before each campaign.
+One-off Cap v0.6 launch announcement for eligible independent noncustomers, showing the demo workflow through the release video.
-**Subject:** Take another look at Cap
+**Subject:** Meet Cap v0.6, our biggest update yet
-**Preview:** Was something missing when you tried it?
+**Preview:** Meet Cap v0.6: 3D scenes, animated titles and cleaner audio, all in one app.
**Variables:** `contact.capGreeting` (fallback: Hey,)
@@ -584,11 +590,15 @@ Evergreen reactivation invitation for eligible independent noncustomers; review
{contact.capGreeting}
-If it's been a while since you tried Cap, I'd love for you to take another look.
+Cap v0.6 is here, and it's our biggest release yet.
+
+We've rebuilt the editor to turn your screen recordings into polished demos. Record your screen, add a 3D scene, animated titles and a moving background, then export a video you'll want to share.
+
+There's also Studio Sound to reduce microphone noise, plus faster exports. Whether it's a product demo, a client walkthrough or a team update, you can make it in Cap.
-You can see what's changed here. Next time you need to explain something on screen, give it a go.
+The release video is the best way to see what's new:
-If something put you off last time, just reply and tell me. I'd like to know, especially if it was something we could have done better.
+See Cap v0.6 in action →
## Application emails
diff --git a/emails/README.md b/emails/README.md
index 34ad8cd63..226f955ab 100644
--- a/emails/README.md
+++ b/emails/README.md
@@ -18,7 +18,7 @@ Start with the [catalogue and flow maps](CATALOG.md), [copy guidance](VOICE.md),
| Registered Loops resource IDs | [resources.json](resources.json) |
| Last reviewed upload hashes | [delivery-receipt.json](delivery-receipt.json) |
-Each marketing file uses a small shared content vocabulary: Paragraph, Link, Strong, Em and Br. The MJML renderer combines that copy with the shared design. Unsupported new blocks fail export instead of silently disappearing. `scripts/loops/program.ts` is a compatibility export, not another copy source.
+Each marketing file uses a small shared content vocabulary: Paragraph, Link, Strong, Em, Br and Image. The MJML renderer combines that copy with the shared design. Images use descriptive alt text and a click destination, with files declared in the email's `assets` array under `emails/assets/`. Exports bundle these files alongside the logo. Unsupported new blocks fail export instead of silently disappearing. `scripts/loops/program.ts` is a compatibility export, not another copy source.
The header uses the actual Cap vector artwork from `packages/ui/src/components/icons/Logo.tsx`. `bun run emails:logo` renders its original paths to the checked-in PNG with white backing. This preserves the wordmark and keeps its dark lettering visible on dark backgrounds. Do not rebuild the wordmark with a font or substitute the icon alone. The image and body share the same left edge.
diff --git a/emails/assets/cap-v06-player.jpg b/emails/assets/cap-v06-player.jpg
new file mode 100644
index 000000000..fdd5f70f9
Binary files /dev/null and b/emails/assets/cap-v06-player.jpg differ
diff --git a/emails/campaigns.ts b/emails/campaigns.ts
index 978667901..b41a965da 100644
--- a/emails/campaigns.ts
+++ b/emails/campaigns.ts
@@ -5,13 +5,13 @@ import type { Campaign } from "./types";
export const campaignTemplates: Campaign[] = [
{
...customerUpdate,
- name: "Cap | Customer product update template",
+ name: "Cap v0.6 launch | Customers",
audience: "customer",
promotional: false,
},
{
...freeUpdate,
- name: "Cap | Noncustomer product update template",
+ name: "Cap v0.6 launch | Noncustomers",
audience: "free",
promotional: true,
},
diff --git a/emails/delivery-receipt.json b/emails/delivery-receipt.json
index e0c4e0ae3..d08f84623 100644
--- a/emails/delivery-receipt.json
+++ b/emails/delivery-receipt.json
@@ -125,25 +125,27 @@
},
{
"id": "customer-update",
- "sha256": "505f8049580c9162834db0506cbd9002ab4589046f00ff5032aa522fc344ec13",
+ "sha256": "68bc2b5e24a1544f4fa1ee50247a89cce55e4c4a91b4c4d5442a91284874bc9b",
"containerId": "cmtvpmfxc01ls0j0nnlffombv",
"nodeId": null,
- "subject": "Keeping up with Cap",
- "previewText": "The changes we've shipped, all in one place.",
+ "subject": "Cap v0.6 is here. Meet your new editor.",
+ "previewText": "3D scenes, animated titles and Studio Sound. See what's new in the launch video.",
"fallbacks": {
"capGreeting": "Hey,"
- }
+ },
+ "reviewedAt": "2026-09-15T16:14:18.915Z"
},
{
"id": "free-update",
- "sha256": "556e8bcc3465918c1a9ca57f88fa38baeda7abfaa4edeb73e2ca689322ff1840",
+ "sha256": "0cac3fc76d189e9934df5b33ab05a15e29272c6b0d01141b9e9fa66f1568f713",
"containerId": "cmtvpmjej01kr0j18cxoz2n0y",
"nodeId": null,
- "subject": "Take another look at Cap",
- "previewText": "Was something missing when you tried it?",
+ "subject": "Cap v0.6 is here. See what you can make.",
+ "previewText": "Meet Cap v0.6: 3D scenes, animated titles and cleaner audio, all in one app.",
"fallbacks": {
"capGreeting": "Hey,"
- }
+ },
+ "reviewedAt": "2026-09-15T16:14:18.915Z"
}
]
}
diff --git a/emails/marketing/customer-update.ts b/emails/marketing/customer-update.ts
index b6858c485..5bba72f53 100644
--- a/emails/marketing/customer-update.ts
+++ b/emails/marketing/customer-update.ts
@@ -4,14 +4,20 @@ export const customerUpdate = {
id: "customer-update",
key: "customer-update",
purpose:
- "Evergreen changelog invitation for customers; review before each campaign.",
- subject: "Keeping up with Cap",
- previewText: "The changes we've shipped, all in one place.",
+ "One-off Cap v0.6 launch announcement for customers, leading to the release video and update details.",
+ subject: "Meet Cap v0.6, our biggest update yet",
+ previewText:
+ "3D scenes, animated titles and Studio Sound. See what's new in the launch video.",
variables: ["capGreeting"],
+ assets: ["emails/assets/cap-v06-player.jpg"],
body: [
"<Paragraph>{contact.capGreeting}</Paragraph>",
- "<Paragraph>Just a quick one from me. If you're wondering what's changed in Cap, we keep the features and fixes together in our changelog.</Paragraph>",
- "<Paragraph><Link href=\"https://cap.so/changelog\">Here's what we've shipped</Link>.</Paragraph>",
- "<Paragraph>Is there something you're still waiting for us to build or fix? Reply and let me know. Hearing what's missing is just as useful as hearing what's working.</Paragraph>",
+ "<Paragraph><Strong>Cap v0.6 is here, and it's our biggest release yet.</Strong></Paragraph>",
+ `<Image src="img/cap-v06-player.jpg" alt="Watch the Cap v0.6 launch video" href="https://cap.so/blog/cap-v06?utm_source=loops&amp;utm_medium=email&amp;utm_campaign=cap_v06_launch&amp;utm_content=customers" />`,
+ "<Paragraph>We've rebuilt the editor so you can do more with the recordings you already make. Add 3D scenes, animated titles and moving backgrounds, without opening another editing app.</Paragraph>",
+ "<Paragraph>Studio Sound reduces microphone noise, and the new export screen shows estimated file size and time before you save.</Paragraph>",
+ "<Paragraph>The easiest way to see the difference is the launch video. The release page also has the download and full details.</Paragraph>",
+ `<Paragraph><Link href="https://cap.so/blog/cap-v06?utm_source=loops&amp;utm_medium=email&amp;utm_campaign=cap_v06_launch&amp;utm_content=customers">Watch Cap v0.6 in action →</Link></Paragraph>`,
+ "<Paragraph>Thanks for supporting Cap. I can't wait to see what you make with this one :)</Paragraph>",
].join(""),
} satisfies EmailDefinition;
diff --git a/emails/marketing/free-update.ts b/emails/marketing/free-update.ts
index f3b2004d3..8d8e67392 100644
--- a/emails/marketing/free-update.ts
+++ b/emails/marketing/free-update.ts
@@ -4,14 +4,19 @@ export const freeUpdate = {
id: "free-update",
key: "free-update",
purpose:
- "Evergreen reactivation invitation for eligible independent noncustomers; review before each campaign.",
- subject: "Take another look at Cap",
- previewText: "Was something missing when you tried it?",
+ "One-off Cap v0.6 launch announcement for eligible independent noncustomers, showing the demo workflow through the release video.",
+ subject: "Meet Cap v0.6, our biggest update yet",
+ previewText:
+ "Meet Cap v0.6: 3D scenes, animated titles and cleaner audio, all in one app.",
variables: ["capGreeting"],
+ assets: ["emails/assets/cap-v06-player.jpg"],
body: [
"<Paragraph>{contact.capGreeting}</Paragraph>",
- "<Paragraph>If it's been a while since you tried Cap, I'd love for you to take another look.</Paragraph>",
- `<Paragraph><Link href="https://cap.so/changelog">You can see what's changed here</Link>. Next time you need to explain something on screen, give it a go.</Paragraph>`,
- "<Paragraph>If something put you off last time, just reply and tell me. I'd like to know, especially if it was something we could have done better.</Paragraph>",
+ "<Paragraph><Strong>Cap v0.6 is here, and it's our biggest release yet.</Strong></Paragraph>",
+ `<Image src="img/cap-v06-player.jpg" alt="Watch the Cap v0.6 launch video" href="https://cap.so/blog/cap-v06?utm_source=loops&amp;utm_medium=email&amp;utm_campaign=cap_v06_launch&amp;utm_content=noncustomers" />`,
+ "<Paragraph>We've rebuilt the editor to turn your screen recordings into polished demos. Record your screen, add a 3D scene, animated titles and a moving background, then export a video you'll want to share.</Paragraph>",
+ "<Paragraph>There's also Studio Sound to reduce microphone noise, plus faster exports. Whether it's a product demo, a client walkthrough or a team update, you can make it in Cap.</Paragraph>",
+ "<Paragraph>The release video is the best way to see what's new:</Paragraph>",
+ `<Paragraph><Link href="https://cap.so/blog/cap-v06?utm_source=loops&amp;utm_medium=email&amp;utm_campaign=cap_v06_launch&amp;utm_content=noncustomers">See Cap v0.6 in action →</Link></Paragraph>`,
].join(""),
} satisfies EmailDefinition;
diff --git a/emails/mjml.ts b/emails/mjml.ts
index d5158224d..7cfa3b8ce 100644
--- a/emails/mjml.ts
+++ b/emails/mjml.ts
@@ -20,11 +20,15 @@ export const mjmlVariables = (value: string) =>
const renderBody = (body: string) => {
for (const [, tag] of body.matchAll(/<\/?([A-Za-z][\w]*)\b/g)) {
- if (!["Paragraph", "Link", "Strong", "Em", "Br"].includes(tag))
+ if (!["Paragraph", "Link", "Strong", "Em", "Br", "Image"].includes(tag))
throw new Error(`Unsupported marketing content tag: ${tag}`);
}
return mjmlVariables(
body
+ .replaceAll(
+ "<Image ",
+ '<mj-image align="left" padding="0 0 20px" border-radius="12px" ',
+ )
.replaceAll("<Paragraph>", "<mj-text>")
.replaceAll("</Paragraph>", "</mj-text>\n")
.replaceAll(
diff --git a/emails/types.ts b/emails/types.ts
index dbbe693ec..5acb1cbd8 100644
--- a/emails/types.ts
+++ b/emails/types.ts
@@ -8,6 +8,7 @@ export type EmailDefinition = {
subject: string;
previewText: string;
body: string;
+ assets?: string[];
variables: (keyof typeof contactFallbacks)[];
};
export type Message = EmailDefinition & {
diff --git a/scripts/emails/catalog.ts b/scripts/emails/catalog.ts
index e69fe5289..a5f72166b 100644
--- a/scripts/emails/catalog.ts
+++ b/scripts/emails/catalog.ts
@@ -57,11 +57,28 @@ export const validateEmail = (email: EmailDefinition) => {
errors.push(
"Email body leaves insufficient space for branding under the 100 KB LMX limit",
);
- for (const match of email.body.matchAll(/<(?:Button|Link)\b([^>]*)>/g)) {
+ for (const match of email.body.matchAll(
+ /<(?:Button|Link|Image)\b([^>]*)>/g,
+ )) {
const href = /\bhref="([^"]+)"/.exec(match[1])?.[1];
if (!href || !/^(https:\/\/|mailto:)/.test(href))
errors.push("Buttons and links need an https or mailto destination");
}
+ const assetNames = (email.assets ?? []).map((path) => path.split("/").at(-1));
+ if (
+ new Set(assetNames).size !== assetNames.length ||
+ assetNames.includes("cap-logo.png") ||
+ (email.assets ?? []).some((path) => !/^emails\/assets\/[^/]+$/.test(path))
+ )
+ errors.push("Email assets need unique filenames under emails/assets");
+ for (const match of email.body.matchAll(/<Image\b([^>]*)>/g)) {
+ const src = /\bsrc="img\/([^"]+)"/.exec(match[1])?.[1];
+ const alt = /\balt="([^"]+)"/.exec(match[1])?.[1];
+ if (!src || !assetNames.includes(src) || !alt)
+ errors.push(
+ "Images need descriptive alt text and a declared bundled asset",
+ );
+ }
return errors;
};
@@ -174,7 +191,7 @@ export const catalogExcerpt = (body: string) =>
body
.replace(/<\/(Paragraph|Button)>/g, "\n\n")
.replace(/<Br\s*\/>/g, "\n")
- .replace(/<\/?(?:Paragraph|Button|Link|Strong|Em)\b[^>]*>/g, "")
+ .replace(/<\/?(?:Paragraph|Button|Link|Strong|Em|Image)\b[^>]*>/g, "")
.replaceAll("&", "&amp;")
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
diff --git a/scripts/emails/export-mjml.ts b/scripts/emails/export-mjml.ts
index 36bce0b1b..61ea32466 100644
--- a/scripts/emails/export-mjml.ts
+++ b/scripts/emails/export-mjml.ts
@@ -9,7 +9,7 @@ import {
writeFile,
} from "node:fs/promises";
import { tmpdir } from "node:os";
-import { join, resolve } from "node:path";
+import { basename, join, resolve } from "node:path";
import { parseArgs } from "node:util";
import { contactFallbacks, logo, sender } from "../../emails/brand";
import { mjmlVariables, renderMjml } from "../../emails/mjml";
@@ -30,6 +30,12 @@ for (const email of marketingEmails) {
const mjml = renderMjml(email);
await writeFile(join(temporary, "index.mjml"), mjml);
await writeFile(join(temporary, "img/cap-logo.png"), asset);
+ const hash = createHash("sha256").update(mjml).update(asset);
+ for (const path of email.assets ?? []) {
+ const image = await readFile(new URL(path, root));
+ await writeFile(join(temporary, "img", basename(path)), image);
+ hash.update(image);
+ }
const archive = join(temporary, `${email.id}.zip`);
execFileSync("zip", ["-q", "-r", archive, "index.mjml", "img"], {
cwd: temporary,
@@ -39,7 +45,7 @@ for (const email of marketingEmails) {
manifest.push({
id: email.id,
file: `${email.id}.zip`,
- sha256: createHash("sha256").update(mjml).update(asset).digest("hex"),
+ sha256: hash.digest("hex"),
subject: mjmlVariables(email.subject),
previewText: mjmlVariables(email.previewText),
...sender,