Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(marketing): iMessage 'locked in' promo video + re-render pipeline

nirholas323e8d044be5
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 099425968..bb123c055 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -226,6 +226,7 @@ npm).
- **On-chain identity & contracts** — [contracts/](contracts), [packages/avatar-schema/](packages/avatar-schema)
- **API endpoints** — [api/](api) (serverless-style handlers, served in production by the [server/](server) Cloud Run container), [workers/](workers) (long-running workers)
- **Examples & demos** — [examples/](examples), [multiplayer/](multiplayer)
+- **Marketing assets** — [marketing/](marketing) (produced promo videos + re-render scripts, e.g. [marketing/imessage-video/](marketing/imessage-video); source-of-truth assets, not shipped to production)
- **Cross-chain SDKs** — [sdk/](sdk), [solana-agent-sdk/](solana-agent-sdk), [agent-payments-sdk/](agent-payments-sdk), [agent-protocol-sdk/](agent-protocol-sdk)
- **MCP integration** — [mcp-server/](mcp-server), [mcp-bridge/](mcp-bridge)
- **Specs & protocol docs** — [specs/](specs)
diff --git a/marketing/imessage-video/README.md b/marketing/imessage-video/README.md
new file mode 100644
index 000000000..6c3d8a8ac
--- /dev/null
+++ b/marketing/imessage-video/README.md
@@ -0,0 +1,32 @@
+# iMessage "locked in" marketing video
+
+A 9:16 vertical video of a fake iMessage thread: one friend asks "miss you bro, you
+been so locked in, what have you been working on?", the other replies with a photo of
+the AR Forge (a real three.ws/ar screenshot with a TRELLIS-generated house plant),
+then the conversation lands the OpenAI partnership beat and the unicorn line, and
+closes on a callback ("miss you too bro"). Built for X/TikTok/Reels distribution in
+the deadpan-undersell voice.
+
+## Files
+
+- `imessage-locked-in.mp4` - the rendered conversation video (1080x1920, typed
+ letter by letter on an iOS keyboard, send/receive blips in the audio track).
+- `forge-plant-bubble.png` - the photo-bubble image: a real screenshot of
+ [three.ws/ar](https://three.ws/ar) with the generated plant model in the stage.
+- `render-imessage-video.mjs` - renders the video via postmock.com (anonymous
+ in-browser render; the script pulls the MP4 blob straight from the session).
+ Edit the `SCRIPT` array to change the dialogue, then re-run.
+- `capture-forge-bubble.mjs` - regenerates the photo-bubble screenshot from the
+ live AR Forge page. Pass a prompt to change the model:
+ `node marketing/imessage-video/capture-forge-bubble.mjs "a crystal chess knight"`
+
+## Re-render
+
+```bash
+node marketing/imessage-video/capture-forge-bubble.mjs # optional: new bubble image
+node marketing/imessage-video/render-imessage-video.mjs # writes imessage-locked-in.mp4
+```
+
+Both scripts use the repo's Playwright install; no extra setup. Rendering takes a few
+minutes because the video plays out in real time in the headless browser.
+
diff --git a/marketing/imessage-video/capture-forge-bubble.mjs b/marketing/imessage-video/capture-forge-bubble.mjs
new file mode 100644
index 000000000..74b856784
--- /dev/null
+++ b/marketing/imessage-video/capture-forge-bubble.mjs
@@ -0,0 +1,38 @@
+// Regenerates forge-plant-bubble.png: a real screenshot of https://three.ws/ar
+// with a TRELLIS-generated model in the stage, framed for an iMessage photo bubble.
+// Run from the repo root: node marketing/imessage-video/capture-forge-bubble.mjs
+import { chromium, devices } from 'playwright';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const HERE = dirname(fileURLToPath(import.meta.url));
+const PROMPT = process.argv[2] || 'A giant healthy green house plant';
+
+const browser = await chromium.launch({ args: ['--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader'] });
+const ctx = await browser.newContext({ ...devices['iPhone 13'] });
+const page = await ctx.newPage();
+page.setDefaultTimeout(30000);
+
+await page.goto('https://three.ws/ar', { waitUntil: 'domcontentloaded' });
+await page.waitForTimeout(3000);
+await page.fill('#prompt', PROMPT);
+await page.click('#go');
+
+let src = '';
+for (let i = 0; i < 60; i++) {
+ await page.waitForTimeout(5000);
+ src = await page.$eval('#mv', el => el.getAttribute('src') || '').catch(() => '');
+ const working = await page.$eval('#working', el => getComputedStyle(el).display !== 'none').catch(() => false);
+ const failed = await page.$eval('#failed', el => getComputedStyle(el).display !== 'none').catch(() => false);
+ if (failed) throw new Error('forge generation failed');
+ if (src && !working) break;
+}
+if (!src) throw new Error('no model produced within the polling window');
+
+await page.waitForTimeout(8000); // let textures and lighting settle
+const stage = page.locator('#stage');
+await stage.scrollIntoViewIfNeeded();
+await page.waitForTimeout(1500);
+await stage.screenshot({ path: join(HERE, 'forge-plant-bubble.png') });
+console.log('saved forge-plant-bubble.png for model', src);
+await browser.close();
diff --git a/marketing/imessage-video/forge-plant-bubble.png b/marketing/imessage-video/forge-plant-bubble.png
new file mode 100644
index 000000000..b1e3206a9
Binary files /dev/null and b/marketing/imessage-video/forge-plant-bubble.png differ
diff --git a/marketing/imessage-video/imessage-locked-in.mp4 b/marketing/imessage-video/imessage-locked-in.mp4
new file mode 100644
index 000000000..57bef4f7a
Binary files /dev/null and b/marketing/imessage-video/imessage-locked-in.mp4 differ
diff --git a/marketing/imessage-video/render-imessage-video.mjs b/marketing/imessage-video/render-imessage-video.mjs
new file mode 100644
index 000000000..e2c7f2fb8
--- /dev/null
+++ b/marketing/imessage-video/render-imessage-video.mjs
@@ -0,0 +1,108 @@
+// Renders the "locked in" iMessage marketing video via postmock.com and saves
+// the MP4 next to this script. Edit SCRIPT below to change the dialogue, then
+// run from the repo root: node marketing/imessage-video/render-imessage-video.mjs
+//
+// PostMock renders anonymously in the browser; this pulls the finished blob
+// straight from the render session. The photo bubble uses forge-plant-bubble.png
+// (regenerate it with capture-forge-bubble.mjs).
+import { chromium } from 'playwright';
+import { writeFileSync } from 'node:fs';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const HERE = dirname(fileURLToPath(import.meta.url));
+
+const SCRIPT = [
+ ['You', 'miss you bro, you been so locked in, what have you been working on?'],
+ ['Them', 'one sec, sending you something'],
+ ['Them', 'PHOTO'],
+ ['You', 'bro what'],
+ ['You', 'you typed a sentence and it put a 3D model in your room??'],
+ ['Them', 'yeah. text to 3D, straight into AR. about 30 seconds end to end'],
+ ['You', 'how long have you been sitting on this'],
+ ['Them', 'eight months heads down. we partnered with OpenAI last week, it\'s live in ChatGPT now'],
+ ['You', 'wait, actual OpenAI'],
+ ['Them', 'actual OpenAI. search three.ws in the GPT Store'],
+ ['You', 'ok so what\'s the ceiling here'],
+ ['Them', 'unicorn is the plan. AR is how we get there'],
+ ['You', 'proud of you man'],
+ ['Them', 'miss you too bro. come by and I\'ll put something in your living room'],
+];
+
+const browser = await chromium.launch();
+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
+page.setDefaultTimeout(20000);
+
+await page.goto('https://postmock.com/', { waitUntil: 'domcontentloaded' });
+await page.waitForTimeout(3000);
+
+const clear = await page.$('button:has-text("Clear all")');
+if (clear) { await clear.click().catch(() => {}); await page.waitForTimeout(600); }
+
+// The composer keeps this placeholder; per-row inline editors do not. Matching
+// anything looser resolves to a row editor once messages exist and corrupts the thread.
+const input = page.locator('input[placeholder*="choose a side" i], textarea[placeholder*="choose a side" i]').first();
+let photoRowIndex = -1;
+let idx = 0;
+for (const [side, text] of SCRIPT) {
+ if (text === 'PHOTO') {
+ await input.fill('.');
+ photoRowIndex = idx;
+ } else {
+ await input.fill(text);
+ }
+ await page.locator(`button:has-text("Add as ${side}")`).click();
+ await page.waitForTimeout(250);
+ idx++;
+}
+console.log('messages added:', idx, 'photo row:', photoRowIndex);
+
+const moreButtons = page.locator('button:has-text("⋯")');
+await moreButtons.nth(photoRowIndex).scrollIntoViewIfNeeded();
+await moreButtons.nth(photoRowIndex).click();
+await page.waitForTimeout(800);
+
+const fileInput = page.locator('input[type="file"]').last();
+await fileInput.setInputFiles(join(HERE, 'forge-plant-bubble.png'));
+await page.waitForTimeout(1200);
+console.log('photo bubble attached');
+
+const bang = page.locator('button:has-text("‼️")').last();
+if (await bang.isVisible().catch(() => false)) {
+ await bang.click();
+ console.log('reaction set');
+}
+
+const candidates = page.locator('button:has-text("Export as video")');
+const n = await candidates.count();
+for (let i = 0; i < n; i++) {
+ const btn = candidates.nth(i);
+ if (await btn.isVisible()) { await btn.scrollIntoViewIfNeeded(); await btn.click(); break; }
+}
+await page.waitForTimeout(1200);
+await page.locator('button:has-text("Create video")').click();
+console.log('rendering...');
+
+let done = false;
+for (let i = 0; i < 110 && !done; i++) {
+ await page.waitForTimeout(5000);
+ done = await page.locator('button:has-text("Sign in to download")').isVisible().catch(() => false);
+}
+if (!done) throw new Error('render did not finish within the polling window');
+
+const media = await page.evaluate(() => Array.from(document.querySelectorAll('video')).map(v => ({ src: v.src || v.currentSrc, duration: v.duration, w: v.videoWidth, h: v.videoHeight })));
+const blobVid = media.find(m => m.src && m.src.startsWith('blob:'));
+if (!blobVid) throw new Error('no rendered video blob found on the page');
+
+const b64 = await page.evaluate(async (src) => {
+ const blob = await (await fetch(src)).blob();
+ const buf = await blob.arrayBuffer();
+ const bytes = new Uint8Array(buf);
+ let bin = '';
+ for (let i = 0; i < bytes.length; i += 0x8000) bin += String.fromCharCode.apply(null, bytes.subarray(i, i + 0x8000));
+ return { b64: btoa(bin), type: blob.type, size: blob.size };
+}, blobVid.src);
+const ext = b64.type.includes('mp4') ? 'mp4' : 'webm';
+writeFileSync(join(HERE, `imessage-locked-in.${ext}`), Buffer.from(b64.b64, 'base64'));
+console.log(`saved imessage-locked-in.${ext} size=${b64.size} duration=${blobVid.duration}s ${blobVid.w}x${blobVid.h}`);
+await browser.close();