KQ-216 · SOURCE/STREAM
Source Stream
An answer that streams in with its sources landing inline: prose arrives word by word, and when a claim finishes, its citation chip drops into the sentence right where the claim was made — provenance at the point of assertion, not footnoted at the end. A sources tray sums the run, and follow-up asks appear only once the stream is done.
KQ-216 · SOURCE/STREAM
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/source-stream
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| segments | StreamSegment[] | — | The answer in claim-sized pieces; a segment's source chip lands when its words finish. |
| followUps / onFollowUp | string[] · (text) => void | — | Suggested next asks, offered after completion. |
| rate | number | 14 | Words per second while streaming. |
| immediate | boolean | — | Print whole at once (reduced motion forces this too). |