Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useRef } from "react"import { ScrollSpine, type SpineItem } from "@/components/scroll-spine"const sections = [ { id: "intro", heading: "Introduction", body: [ "This guide walks through setting up the project from a clean checkout. It takes about ten minutes.", "You will need a recent Node.js release and a package manager of your choice.", ], }, { id: "setup", heading: "Setup", body: [ "Install the dependencies, then copy the example environment file so the app knows where to find its database.", "Once the install finishes, start the development server and open the local address in your browser.", ], }, { id: "deploy", heading: "Deploying", body: [ "Builds are created with a single command and written to the output folder.", "Upload that folder to any static host, or connect the repository to your hosting provider for automatic deploys on every push.", ], }, { id: "faq", heading: "Common questions", body: [ "If the build fails after an upgrade, clear the cache folder and install again.", "For anything else, the community forum is the fastest place to get help.", ], },]const items: SpineItem[] = sections.map((s) => ({ id: s.id, label: s.heading }))export default function ScrollSpineDemo() { const scroller = useRef<HTMLDivElement>(null) return ( <div className="flex h-[340px] w-full max-w-xl gap-6"> <div ref={scroller} tabIndex={0} aria-label="Article" className="min-w-0 flex-1 overflow-y-auto pr-2 text-sm leading-relaxed text-muted-foreground" > {sections.map((s, i) => ( <section key={s.id}> <p id={s.id} className={`scroll-mt-4 font-medium text-foreground ${i === 0 ? "" : "mt-6"}`}> {s.heading} </p> {s.body.map((p) => ( <p key={p.slice(0, 24)} className="mt-3"> {p} </p> ))} </section> ))} </div> <ScrollSpine items={items} scrollRef={scroller} height={300} /> </div> )}