caelum0x b729ff486c docs(near-hackathon): add pitch deck + narrated demo video for NEAR Hackathon submission
13-slide Marp deck (PDF+PPTX) mapping the Agent Economy track brief and
NEAR's stated judging criteria to SpendGuard's real on-chain proof, plus a
70.6s narrated demo video built entirely from real captures: the existing
asciinema-recorded SpendGuard loop, a fresh terminal recording made today
re-verifying the live testnet contract + 450/450 tests, and code-rendered
(Playwright/HTML) title cards. Deepgram Aura-2 narration with per-line ASR
round-trip QC, burned-in word-timed captions, loudness mastered to -14.6
LUFS / -1.9 dBTP true peak. No AI-generated footage; no paid APIs beyond
the existing Deepgram key.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-11 01:16:34 +03:00

76 lines
2.3 KiB
JavaScript

import { chromium } from "playwright";
import { mkdirSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";
const HERE = dirname(fileURLToPath(import.meta.url));
const CARD_HTML = "file://" + join(HERE, "card.html");
const FRAMES = 18; // 0.6s @ 30fps ease-in, then held by ffmpeg tpad
const cards = [
{
name: "card1-hook",
brand: "CRED402",
tag: "The problem",
title: "Agents can now spend money on their own.",
sub: "Nothing at the protocol level stops one from spending too much.",
chips: "",
},
{
name: "card2-what",
brand: "CRED402 x SPENDGUARD",
tag: "What it is",
title: "A pay-per-call credit score, paid in NEAR.",
sub: "x402 (402 Payment Required) + a real NEAR access-key allowance nearcore itself enforces.",
chips: "near_gateway.ts|spend_guard/*.rs",
},
{
name: "card5-fit",
brand: "AGENT ECONOMY TRACK",
tag: "Why this track",
title: "An agent that earns, spends, and pays for an API.",
sub: "No human in the loop — Chain Signatures-ready for any chain's key.",
chips: "Technical|Design|Impact|Originality|Sustainability",
},
{
name: "card6-outro",
brand: "CRED402",
tag: "NEAR Hackathon 2026 — Agent Economy",
title: "Pay-per-call credit for autonomous agents.",
sub: "github.com/caelum0x/cred402 · spendguard-024e8dd6f7.testnet",
chips: "",
},
];
async function main() {
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1920, height: 1080 } });
for (const card of cards) {
const dir = join(HERE, "cards", card.name);
mkdirSync(dir, { recursive: true });
const qs = new URLSearchParams({
brand: card.brand,
tag: card.tag,
title: card.title,
sub: card.sub,
chips: card.chips,
});
for (let i = 0; i < FRAMES; i++) {
const t = i / (FRAMES - 1);
const url = `${CARD_HTML}?${qs.toString()}&t=${t}`;
await page.goto(url, { waitUntil: "load" });
const frameName = `frame_${String(i).padStart(3, "0")}.png`;
await page.screenshot({ path: join(dir, frameName) });
}
console.log(`rendered ${FRAMES} frames for ${card.name}`);
}
await browser.close();
}
main().catch((e) => {
console.error(e);
process.exit(1);
});