Incremental engine for long horizon agents π Star if you like it!
Example scenes
Each example gets a picture of what it builds, drawn in HTML from the
example's real inputs and outputs. Two files per example, named by slug
(the slug in src/data/examples.ts):
<slug>.astrorenders the scene. Props:size: 'hero' | 'card'.hero: the walkthrough head, about 640β700px wide on desktop, no fixed height. Show the whole story: the real source items, the transform, the target rows or graph, and the payoff (a query and its hits, a JSON record, a graph answer). Rows built with.sc-rowstack below 560px by themselves.card: the catalog thumbnail, 176px tall and about 360β440px wide. One clear before β after. Text at least 11px. Decorative (aria-hidden).
<slug>.json:alt(one sentence describing the hero),needs(services and keys),run(shell steps aftercd cocoindex/examples/<dir>; the clone and cd lines are added for you).
Build with the kit in ../scene/scene.css (.sc-row, .sc-col, .sc-panel,
.sc-li, .sc-chip, .sc-table, .sc-node, .sc-query, .sc-hit,
.sc-code, .sc-to, .sc-ico i-*, .sc-delta, .sc-dmark, .sc-live).
Scene-specific layout goes in the component's own <style> (scoped).
Truth rules: every file name, field, model, table, command and quoted text
comes from the example's source folder (examples/<dir>/ in the repo), its
README, or its walkthrough post. Do not invent numbers (scores, timings,
counts, vector values). Periwinkle (.sc-delta) marks only the one edited
input and the outputs it re-derives; green (.sc-live) only live mode.
See text-embedding.astro / .json for the reference.
Images: example photos and the dark walkthrough diagrams are hosted in the
cocoindex-io/blobs repo, under public/docs-v1/img/examples/<slug>/
(scene/ for scene photos, <name>-dark.svg for diagrams). Add new images
there, not in this repo.