Idea · Jul 17, 2026
LLM Stream Cassette
Record real LLM streaming API sessions to portable JSON cassettes and replay them at identical timing without spending tokens, perfect for building and testing streaming chat UIs.
What it would do
Teams building AI-powered chat apps spend significant time and money running live API calls just to test loading states, streaming animations, and error handling in their UI. LLM Stream Cassette lets you record an actual streaming session (Claude, Gemini, or OpenAI) to a JSON file capturing every chunk, timing delta, and metadata, then replay it through a local mock server at the same cadence as the original. You can share cassettes with teammates, commit them to version control, and use them in CI pipelines to test streaming UI behavior without ever hitting the API. A lightweight browser devtools panel shows the active cassette name and a live chunk-progress counter during replay.
Key features
- Record full streaming sessions including per-chunk timing deltas and metadata
- Local mock server that mirrors the real API SSE contract at recorded speed
- Portable JSON cassette format shareable via git or npm package
- Browser devtools panel showing active cassette, chunk counter, and replay controls