Skip to main content

Code Reviewer

A code review tool that produces three outputs simultaneously: issues, suggestions, and refactored code. All three stream in parallel—users see all panels filling at the same time, with updates interleaving as each LLM generates tokens.

Server Code

The review action runs three streaming methods concurrently with Promise.all. Each method appends to its own stream. The framework multiplexes these updates over the single WebSocket connection. The private methods don’t have @action(), so clients can’t call them directly. Only setCode and review are exposed.

Client Code

Running the Example

Paste code with obvious issues. Click Review. All three panels fill simultaneously—Issues typically finishes first, Improved takes longest. Each cursor disappears as its stream completes.

Why Parallel Streaming Matters

Without a framework, building this requires substantial infrastructure: WebSocket multiplexing to route interleaved updates, client-side routing to the correct UI components. With Idyllic: define streaming fields, run concurrent async methods, let the framework handle multiplexing. The complexity of parallel streams never leaks into your code.