Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sandbox-timeline

БесплатноЗапускает вложенные скриптыНе проверен

Author a motion-graphics timeline as code — scenes, layout containers, motion primitives and transitions, saved in one call

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

Timelines as code

Specifier: @nodetool-ai/sandbox-timeline. One module. It builds a whole timeline document in plain JavaScript and saves it through nodetool.timelines, so a cut with hundreds of keyframed clips costs a handful of API calls instead of one edit op per clip. NodeTool's shipped example timelines (Cadence, Kite, Prism, Voltra, Tidewater, T minus 30) are built with it.

Use it for authored motion graphics: kinetic type, shapes, charts, placed stills, transitions between scenes. For a few changes to a cut that already exists, nodetool.timelines.edit(id, ops) is still the better tool.

Units are seconds, everywhere, local to the scope that created them. A scene's own clock starts at 0. There is no absolute-time option — v.series() is the only place a scene's position in the whole video is decided, and it is the only function that ever shifts a time. Author a moment once, at the time it happens in its own scene, and it is correct wherever that scene lands.

A two-scene piece

import { video } from "@nodetool-ai/sandbox-timeline";

const v = video({
  width: 1920, height: 1080, fps: 30,
  palette: { ink: "#06110e", ink2: "#0c2a21", text: "#f4fbf8", accent: "#34d399" },
  fonts: { display: "Space Grotesk", body: "Inter" }
});

const hello = v.scene("Hello", 2.5, (s) => {
  s.backdrop();
  const title = s.text("Hello, timeline", { size: 120, weight: 700, font: "display" });
  const sub = s.text("built from code", { size: 40, color: "#8fb3a6" });
  s.stack([title, sub], { gap: 20 });
  title.enter({ from: { scale: 1.2, opacity: 0 }, at: 0, dur: 0.3, ease: "outExpo" });
  sub.enter({ from: { offsetY: 24, opacity: 0 }, at: 0.15, dur: 0.25 });
  title.exit({ to: { opacity: 0 }, dur: 0.2 });
});

const outro = v.scene("Outro", 1.5, (s) => {
  s.backdrop({ colors: ["#0f3b2e", "#06110e"] });
  const cta = s.pill("Try it", { fillColor: "#f4fbf8", color: "#06110e" });
  cta.enter({ from: { scale: 0.6, opacity: 0 }, dur: 0.25 });
});

v.series([hello, v.transition("wipe", 0.3, { direction: "left" }), outro]);
v.adjust([{ type: "vignette", amount: 0.2 }], { name: "finish", trackId: "t_finish" });

const saved = await v.save(nodetool.timelines, { name: "Hello", showcase: true });
await output("timeline", saved);   // { timeline_id, errors, warnings }

Then look at it: nodetool.timelines.preview(saved.timeline_id, {count: 3}) returns composited frames, and render(id, {preview_scale: 0.5}) a draft video.

Study a reference and reuse scene helpers

nodetool.timelines.examples.list() lists shipped cuts with structural stats. nodetool.timelines.examples.get("kite", {clip_limit: 12}) returns its scene catalog and a bounded scene excerpt. Select another scene_id or page with clip_offset to read more layers. Inspect the clip hierarchy, curve windows and effects before choosing your own scene structure.

nodetool.timelines.examples.source("kite") returns the script that made that excerpt: full JavaScript, imports included.

video({width, height, fps, palette, fonts})

The entry point. palette supplies colours the craft helpers fall back to: ink, ink2, text, dim, accent. fonts maps short keys (display, body) to real family names; a text element's font option takes either a key or a literal family string.

Scenes and series

v.scene(name, seconds, fn) builds one scene at its own local clock, fn(s) receiving the scene's authoring object. It returns a scene descriptor — nothing is placed in the document yet.

v.series([scene, transition?, scene, transition?, scene, ...]) lays scenes end to end and assigns every clip's absolute position. A v.transition(type, seconds, opts) item between two scenes overlaps them by its own duration and sets transitionIn on the incoming scene's group; omitting one between a pair makes a hard cut. type is one of the document's transition types ("wipe", "whip", "iris", "gradientWipe", "crossfade", "push", "slide", "zoom", "zoomBlur", "glitch", "dipToColor", "lightLeak"); opts carries that type's own fields (direction, easing, color, softness, map, seed, …). Scenes are banked onto two alternating track sets so an overlapping pair never shares a track — you never see or name a track.

v.series must run before v.adjust, v.document or v.save.

Local time nests

Everything inside a scene builder is measured from that scene's own start. s.seq(atSec, durSec, fn) opens a nested local clock: fn(q) receives a scoped authoring object whose own atSec/durationSec for elements and motion are relative to atSec inside the enclosing scope, not to the whole video. Nest as deep as you like — the shift out to absolute time happens once, in v.series().

// fragment
v.scene("Beat", 4, (s) => {
  s.seq(1.2, 1.0, (q) => {
    const chip = q.text("+$0.60", {});
    chip.enter({ from: { offsetY: 20, opacity: 0 }, at: 0, dur: 0.2 }); // 1.2s into the scene
  });
});

Полный SKILL.md на GitHub

Установить sandbox-timeline в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

package.jsonsandbox/charts.jssandbox/components.jssandbox/index.d.tssandbox/index.js

FAQ

Что делает скилл sandbox-timeline?

Author a motion-graphics timeline as code — scenes, layout containers, motion primitives and transitions, saved in one call

Как установить скилл sandbox-timeline?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sandbox-timeline запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить sandbox-timeline с