Open History to see the last commit
1# Streaming Structured Table
2
3You want a table that fills while `chat({ outputSchema, stream: true })` writes JSON. Paste a key, send a prompt, and watch rows appear.
4
5## Run it
6
71. From the repo root, run `pnpm install`.
82. Run `pnpm --filter streaming-structured-table dev`.
93. Open http://localhost:3100.
104. Paste an OpenRouter key from https://openrouter.ai/keys.
115. Send a prompt such as `Compare 6 JavaScript frameworks`.
12
13The key stays in this tab only. A reload clears it.
14
15The schema is `src/lib/table-schema.ts`. The server route is `src/routes/api.chat.ts`. The table UI is `src/routes/index.tsx`.