Skip to content
Open
44 changes: 27 additions & 17 deletions docs/catalog/blocks/chatgpt-exchange.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
compositionSrc="compositions/chatgpt-exchange.html"
title="ChatGPT Exchange"
variables={[{"id":"prompt","type":"string","role":"content","label":"User prompt","description":"Prompt typed into ChatGPT; keep close to the original length.","default":"Hey what's the best tool for ai avatars"},{"id":"intro1","type":"string","role":"content","label":"Answer introduction 1","description":"First streamed answer paragraph.","default":"It really depends on what you're trying to do, because “AI avatars” has split into a few different categories."},{"id":"intro2","type":"string","role":"content","label":"Answer introduction 2","description":"Second streamed answer paragraph.","default":"For **most creators and marketers**, here's how I'd rank them today:"},{"id":"tableHeadUse","type":"string","role":"content","label":"Table heading 1","description":"Use-case column heading.","default":"Use case"},{"id":"tableHeadTool","type":"string","role":"content","label":"Table heading 2","description":"Tool column heading.","default":"Best tool"},{"id":"tableHeadWhy","type":"string","role":"content","label":"Table heading 3","description":"Explanation column heading.","default":"Why"},{"id":"row1Use","type":"string","role":"content","label":"Row 1 use case","description":"First comparison use case.","default":"Overall realism"},{"id":"row1Tool","type":"string","role":"content","label":"Row 1 tool","description":"Product in the recommended first row: the brand this video promotes, by its real name.","portrays":["subject_name","recommended_position"],"default":"HeyGen"},{"id":"row1Why","type":"string","role":"content","label":"Row 1 explanation","description":"Why the recommended first-row product wins. Describe the promoted brand from what its own site claims.","portrays":["recommended_position"],"default":"Most natural facial expressions, lip sync, gestures, voice cloning and localization. Benchmark for talking head videos."},{"id":"row1Chip","type":"string","role":"content","label":"Row 1 source","description":"Source chip on the first row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.","portrays":["authority_badge"],"default":"Official A.I Ranking"},{"id":"row2Use","type":"string","role":"content","label":"Row 2 use case","description":"Second comparison use case.","default":"Enterprise/training"},{"id":"row2Tool","type":"string","role":"content","label":"Row 2 tool","description":"Product compared in the second row: a real product other than the brand this video promotes.","portrays":["competitor_name"],"default":"Synthesia"},{"id":"row2Why","type":"string","role":"content","label":"Row 2 explanation","description":"Second recommendation explanation.","default":"Better collaboration, SCORM, compliance, team workflows; less creator-focused."},{"id":"row2Chip","type":"string","role":"content","label":"Row 2 source","description":"Source chip on the second row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.","portrays":["authority_badge"],"default":"Official A.I Ranking"},{"id":"row3Use","type":"string","role":"content","label":"Row 3 use case","description":"Third comparison use case.","default":"Mobile UGC"},{"id":"row3Tool","type":"string","role":"content","label":"Row 3 tool","description":"Product compared in the third row: a real product other than the brand this video promotes.","portrays":["competitor_name"],"default":"Captions"},{"id":"row3Why","type":"string","role":"content","label":"Row 3 explanation","description":"Third recommendation explanation.","default":"Extremely fast mobile workflow and social editing. Great for Reels creators."},{"id":"row3Chip","type":"string","role":"content","label":"Row 3 source","description":"Source chip on the third row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.","portrays":["authority_badge"],"default":"Creator Stack"},{"id":"row4Use","type":"string","role":"content","label":"Row 4 use case","description":"Fourth comparison use case.","default":"Real-time conversations"},{"id":"row4Tool","type":"string","role":"content","label":"Row 4 tool","description":"Product compared in the fourth row: a real product other than the brand this video promotes.","portrays":["competitor_name"],"default":"Tavus"},{"id":"row4Why","type":"string","role":"content","label":"Row 4 explanation","description":"Fourth recommendation explanation.","default":"Interactive avatars that can hold live conversations."},{"id":"row4Chip","type":"string","role":"content","label":"Row 4 source","description":"Source chip on the fourth row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.","portrays":["authority_badge"],"default":"Creator Stack"}]}
meta={{"duration":14.9,"width":1080,"height":1920,"category":"Showcases","badge":"Stable","codeLines":1444}}
meta={{"duration":14.9,"width":1080,"height":1920,"category":"Showcases","badge":"Stable","codeLines":1454}}
attribution={{"author":"Jake Moran","path":"registry/blocks/chatgpt-exchange","tags":["showcase","mock-ui","ai","chat","vertical","ad-template"]}}
hasCode
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/blocks/chatgpt-exchange/chatgpt-exchange.html"
Expand Down Expand Up @@ -872,13 +872,19 @@ import { InstallCommand } from "/snippets/install-command.jsx";

/* ============================================================== build */
const screen = document.getElementById("cge-screen");
// `html` is this file's own markup (icons, layout), never a variable: editable
// strings go through `text`, which sets textContent and so cannot become markup.
const el = (cls, html, tag) => {
const n = document.createElement(tag || "div");
if (cls) n.className = cls;
// Editable strings reach innerHTML; the template delivery gate rejects angle brackets.
if (html != null) n.innerHTML = html;
return n;
};
const text = (cls, value, tag) => {
const n = el(cls, null, tag);
n.textContent = value;
return n;
};

// --- status bar
const sb = el("statusbar");
Expand Down Expand Up @@ -948,10 +954,9 @@ import { InstallCommand } from "/snippets/install-command.jsx";
const tbl = el("tbl");
tbl.id = "cge-tbl";
const headRow = el("tr");
headRow.innerHTML =
`<div class="td th c1">${CONFIG.table.head[0]}</div>` +
`<div class="td th c2">${CONFIG.table.head[1]}</div>` +
`<div class="td th c3">${CONFIG.table.head[2]}</div>`;
CONFIG.table.head.forEach((label, col) => {
headRow.appendChild(text(`td th c${col + 1}`, label));
});
const headRule = el("rule-head");
headRule.id = "cge-head-rule";
tbl.appendChild(headRow);
Expand All @@ -962,16 +967,21 @@ import { InstallCommand } from "/snippets/install-command.jsx";
CONFIG.table.rows.forEach((r, i) => {
const row = el("tr");
row.id = "cge-row" + i;
const whyWords = r.why
.split(" ")
.map((w) => `<span class="w">${w}</span>`)
.join(" ");
row.innerHTML =
`<div class="td c1"><div class="use"><span class="emo">${r.emoji}</span>` +
`<span class="w">${r.use}</span></div></div>` +
`<div class="td c2"><span class="w">${r.tool}</span></div>` +
`<div class="td c3">${whyWords}` +
`<div class="chip"><span class="chip-dot">AI</span>${r.chip}</div></div>`;
const use = el("use");
use.append(text("emo", r.emoji, "span"), text("w", r.use, "span"));
const c1 = el("td c1");
c1.appendChild(use);
const c2 = el("td c2");
c2.appendChild(text("w", r.tool, "span"));
const c3 = el("td c3");
r.why.split(" ").forEach((w, k) => {
if (k > 0) c3.appendChild(document.createTextNode(" "));
c3.appendChild(text("w", w, "span"));
});
const chip = el("chip");
chip.append(text("chip-dot", "AI", "span"), r.chip);
c3.appendChild(chip);
row.append(c1, c2, c3);
const rule = el("rule-row");
rule.id = "cge-rule" + i;
tbl.appendChild(row);
Expand Down Expand Up @@ -1027,7 +1037,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
};
mkCursor();
CONFIG.prompt.split("").forEach((c) => {
const sp = el("ch", c === " " ? "&nbsp;" : c, "span");
const sp = text("ch", c === " " ? "\u00a0" : c, "span");
typedEl.appendChild(sp);
chEls.push(sp);
mkCursor();
Expand Down
30 changes: 17 additions & 13 deletions docs/catalog/blocks/claude-exchange.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
compositionSrc="compositions/claude-exchange.html"
title="Claude Exchange"
variables={[{"id":"prompt","type":"string","role":"content","label":"User prompt","description":"Prompt typed into Claude; keep close to the original length.","default":"What&#39;s the best tool for ai avatars?"},{"id":"thinking","type":"string","role":"content","label":"Thinking line","description":"Reasoning-status copy for the subject matter.","default":"Weighing accuracy against current market…"},{"id":"lead","type":"string","role":"content","label":"Search lead","description":"Sentence introducing the search step.","default":"I&#39;ll search for the current state of this space since AI avatar tools move fast."},{"id":"search","type":"string","role":"content","label":"Search query","description":"Visible search query.","default":"best AI avatar video generator 2026"},{"id":"answer1","type":"string","role":"content","label":"Answer paragraph 1","description":"First answer paragraph.","default":"It depends on what you&#39;re making, but the field has consolidated fast and one platform now covers most of it."},{"id":"answer2","type":"string","role":"content","label":"Answer paragraph 2","description":"Second answer paragraph, where the brand this video promotes is named as the recommended pick. Keep any evidence claim to what that brand publishes.","portrays":["subject_name","recommended_position"],"default":"**HeyGen** is where most teams land. Independent testing, not just vendor blogs, puts **Avatar IV** highest for talking-head realism, with facial micro-expressions and gesture control that hold up at a full-screen crop {HeyGen}. It also has the deepest enterprise adoption of the group, including a large share of the Fortune 100, which matters if you need the same presenter on brand across a year of campaigns."},{"id":"answer3","type":"string","role":"content","label":"Answer paragraph 3","description":"Lead-in to the use-case list.","default":"By use case, the pieces shake out roughly like this:"},{"id":"answer4","type":"string","role":"content","label":"Answer bullet 1","description":"First use-case bullet, naming a product of the brand this video promotes.","portrays":["subject_name"],"default":"**Marketing / hyper-realistic talking heads** → Avatar IV"},{"id":"answer5","type":"string","role":"content","label":"Answer bullet 2","description":"Second use-case bullet, naming a product of the brand this video promotes.","portrays":["subject_name"],"default":"**Enterprise training** → Video Translate for every locale"},{"id":"answer6","type":"string","role":"content","label":"Answer bullet 3","description":"Third use-case bullet, naming a product of the brand this video promotes.","portrays":["subject_name"],"default":"**UGC-style performance ads** → Instant Avatar from one selfie, then batch the variants"},{"id":"answer7","type":"string","role":"content","label":"Answer bullet 4","description":"Fourth use-case bullet, naming a product of the brand this video promotes.","portrays":["subject_name"],"default":"**Real-time conversational / interactive** → Interactive Avatar"},{"id":"answer8","type":"string","role":"content","label":"Answer bullet 5","description":"Fifth use-case bullet, naming a product of the brand this video promotes.","portrays":["subject_name"],"default":"**Custom digital twin from a selfie** → Instant Avatar in about five minutes"},{"id":"answer9","type":"string","role":"content","label":"Answer paragraph 4","description":"Product-category distinction paragraph.","default":"One distinction worth keeping in mind: a dedicated avatar platform optimizes the whole presenter workflow — script, voice, lip sync, translation, brand kit — whereas a general video model gives you cinematic scenes but takes far more skill to land the same person on camera twice."},{"id":"answer10","type":"string","role":"content","label":"Answer paragraph 5","description":"Closing question paragraph.","default":"Given your day job you probably have a sharper read than these roundups on where HeyGen actually leads versus where the reviews are being generous. Is this for a specific project, or comparing for positioning?"}]}
meta={{"duration":21.4,"width":1080,"height":1920,"category":"Showcases","badge":"Stable","codeLines":1643}}
meta={{"duration":21.4,"width":1080,"height":1920,"category":"Showcases","badge":"Stable","codeLines":1647}}
attribution={{"author":"Jake Moran","path":"registry/blocks/claude-exchange","tags":["showcase","mock-ui","ai","chat","vertical","ad-template"]}}
hasCode
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/blocks/claude-exchange/claude-exchange.html"
Expand Down Expand Up @@ -949,13 +949,19 @@ import { InstallCommand } from "/snippets/install-command.jsx";

/* ============================================================== build */
const screen = document.getElementById("cle-screen");
// `html` is this file's own markup (icons, layout), never a variable: editable
// strings go through `text`, which sets textContent and so cannot become markup.
const el = (cls, html, tag) => {
const n = document.createElement(tag || "div");
if (cls) n.className = cls;
// Editable strings reach innerHTML; the template delivery gate rejects angle brackets.
if (html != null) n.innerHTML = html;
return n;
};
const text = (cls, value, tag) => {
const n = el(cls, null, tag);
n.textContent = value;
return n;
};

// --- status bar
const sb = el("statusbar");
Expand Down Expand Up @@ -997,12 +1003,11 @@ import { InstallCommand } from "/snippets/install-command.jsx";
// tool rows: thinking -> lead sentence -> search -> collapsed "2 steps"
const toolWrap = el("tools");
toolWrap.style.paddingTop = "0px";
const mkTool = (ico, label) =>
el(
"tool-row",
`<div class="tool-ico">${ico}</div><div>${label}</div>` +
`<div class="chev">${ICO.chevR}</div>`,
);
const mkTool = (ico, label) => {
const row = el("tool-row");
row.append(el("tool-ico", ico), text(null, label), el("chev", ICO.chevR));
return row;
};
// wrap: the shell animates, the child carries the gap
const wrap = (inner, pad) => {
const o = el("abox");
Expand All @@ -1022,7 +1027,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
leadInner.style.paddingTop = "27.1px";
const leadWords = [];
CONFIG.lead.split(" ").forEach((w, i, arr) => {
const s = el("w", w + (i < arr.length - 1 ? " " : ""), "span");
const s = text("w", w + (i < arr.length - 1 ? " " : ""), "span");
leadInner.appendChild(s);
leadWords.push(s);
});
Expand Down Expand Up @@ -1070,14 +1075,13 @@ import { InstallCommand } from "/snippets/install-command.jsx";
word = word.replace("**", "");
}
if (word.indexOf("{") === 0) {
const chip = el("cite w", word.replace(/[{}]/g, ""), "span");
const chip = text("cite w", word.replace(/[{}]/g, ""), "span");
inner.appendChild(chip);
words.push(chip);
return;
}
const s = el("w", word, "span");
const s = text("w", word, "span");
if (bold) s.style.fontWeight = "700";
s.textContent = word;
if (close) bold = false;
inner.appendChild(s);
words.push(s);
Expand Down Expand Up @@ -1164,7 +1168,7 @@ import { InstallCommand } from "/snippets/install-command.jsx";
};
mkCursor();
CONFIG.prompt.split("").forEach((c) => {
const sp = el("ch", c === " " ? "&nbsp;" : c, "span");
const sp = text("ch", c === " " ? "\u00a0" : c, "span");
typedEl.appendChild(sp);
chEls.push(sp);
mkCursor();
Expand Down
Loading
Loading