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
"use client"import { useState } from "react"import type { POST } from "@/app/api/waitlist/route"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"export type WaitlistHandler = typeof POSTexport default function WaitlistDemo() { const [email, setEmail] = useState("") const [joined, setJoined] = useState(false) function onSubmit(e: React.FormEvent<HTMLFormElement>) { e.preventDefault() if (!email) return setJoined(true) } return ( <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Join the waitlist</CardTitle> <CardDescription>Be the first to know when we launch.</CardDescription> </CardHeader> <CardContent> <form className="grid gap-2" onSubmit={onSubmit}> <Label htmlFor="waitlist-email">Email</Label> <Input id="waitlist-email" type="email" placeholder="m@example.com" required value={email} onChange={(e) => setEmail(e.target.value)} /> <Button type="submit" className="mt-2 w-full"> {joined ? "You're on the list" : "Join waitlist"} </Button> </form> </CardContent> </Card> )}