Skip to content

A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的

825 B
Raw Blame
// events.json with a content file: node styles/engraving/demo/tools/events.mjs styles/engraving/demo [content.json]
// (core/render/events.mjs takes no query string; this is the same thing with ?content=)
import fs from 'fs'; import path from 'path';
import { openDemo, closeServer } from '../../../../core/render/page.mjs';
const dir = process.argv[2], content = process.argv[3] || 'content.json', work = process.argv[4] || dir;   // optional work folder
const { browser, page } = await openDemo(dir, { q: 'content=' + content });
const ev = await page.evaluate(() => ({ dur: window.DUR, ev: window.EV || [] }));
fs.mkdirSync(work, { recursive: true }); fs.writeFileSync(path.join(work, 'events.json'), JSON.stringify(ev, null, 0));
console.log('events', ev.ev.length, 'dur', ev.dur);
await browser.close(); closeServer();