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 { CodeMorph, type CodeStep } from "@/components/code-morph";const steps: CodeStep[] = [ { label: "Step 1", title: "Count clicks with state", code: `function Counter() { const [count, setCount] = useState(0); return ( <button onClick={() => setCount(count + 1)}> Clicked {count} times </button> );}`, }, { label: "Step 2", title: "Stop counting at a maximum", code: `function Counter() { const [count, setCount] = useState(0); const max = 10; const increment = () => { if (count < max) setCount(count + 1); }; return ( <button onClick={increment} disabled={count >= max}> Clicked {count} times </button> );}`, }, { label: "Step 3", title: "Add a reset button", code: `function Counter() { const [count, setCount] = useState(0); const max = 10; const increment = () => { if (count < max) setCount(count + 1); }; return ( <div> <button onClick={increment} disabled={count >= max}> Clicked {count} times </button> <button onClick={() => setCount(0)}>Reset</button> </div> );}`, },];export default function CodeMorphDemo() { return <CodeMorph steps={steps} />;}