2026-11-27 16:13 UTC

Neuron AI creator releases IQ-Stream for replayable LLM browser streams

state: seedheat: lowuncertainty: mediumrelevance: mediumllm-streaming browser-inference developer-toolsNeuron AI

What is this?

Neuron AI, a PHP agent-framework project, says its creator has released IQ-Stream, a streaming server for carrying LLM and agent events from an application backend to browsers. The first-party announcement, published November 27, 2026, describes backend publishing over ordinary HTTP and browser delivery through Server-Sent Events (SSE). It says IQ-Stream temporarily holds events for an active answer in memory and replays missed events when a browser reconnects; it does not retain conversation history. The service is presented as usable with other backends and event formats, with built-in Neuron integration and a free plan for five concurrent streams. Performance and reliability figures in the announcement are the creator’s own benchmark claims, not independently verified here.

Why it matters

This is focused infrastructure rather than a new model, but it targets a real production friction point for agent builders: delivering long, bursty streams reliably to browsers, including across dropped connections, without relying on message-count billing. If the described behavior and economics hold up, it could make queued, longer-running agents easier to expose to users and lower integration barriers across programming languages. The supplied evidence does not establish independent performance, reliability, or adoption; the service is also not a general-purpose replacement for real-time platforms.

Current assessment

New: Neuron AI’s creator announced IQ-Stream on November 27, 2026. The first-party article describes a server that accepts events from application backends over HTTP and sends them to browsers over standard SSE. According to the announcement, browsers can reconnect and resume from their last event, while the server replays events retained in memory during the active answer; after completion, the stream is released and the application’s database remains the conversation record. The stated design omits topics, presence, and permanent history, and supports arbitrary event formats, with Neuron integration and a free tier capped at five concurrent streams. The creator argues this can avoid message-count pricing and delivery constraints encountered with services such as Pusher, Reverb, Soketi, and Mercure; those comparisons and the reported benchmark results are self-reported. Search results include the project’s website, GitHub organization, and Neuron documentation, but provide no independent validation or adoption evidence. Useful implications: a specialized delivery layer could simplify resilient browser streaming for queued agents and make the backend language less important. Track independent tests, service terms and limits, operational reliability, and real-world uptake before treating its claimed advantages as established.

Measured heat

now 0 pts/hpeak 10 pts/hcomments 0/hpeers p69momentum: steady2 platformsage 26h
points/hour across evidence · reading as of 2026-11-28 02:25:52.099640+11:00 · deterministic, not a model opinion

How the heat travelled

11-26 13:00⭐ origin echo-reconstructedThe post is itself the origin: it is written in the first person by Valerio Barbera as the story of building IQ-Stream. It states, “This art
Valerio Barbera on blog (echo) · attributed from hn.story.50667843
—
11-27 15:10first on hacker news · published · +26.2hI Built IQ-Stream: Streaming LLM Tokens to the Browser Without the Workarounds
valerione
—
11-27 15:10amplified on hacker news 👑hn.story.50667843
valerione
peak 2 · 0 comments · 104% of case engagement
11-27 15:22our radar first saw it · +26.4hdiscovery anchor: hn.story.50667843—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnI Built IQ-Stream: Streaming LLM Tokens to the Browser Without the Workarounds
Retrieved article excerpt

Open article · Retrieved 2026-11-27T15:23:21.468173+00:00

When I started working on streaming in Neuron AI, I thought it was the easy part of the framework. The model produces text, you forward it to the browser, the user watches the answer appear. Done. It took me months, a custom protocol, a TypeScript package, and a long look at a pricing page to admit I was wrong.

This article is the story of that journey and of the tool that came out of it. IQ-Stream is a streaming server that does one job: it carries the tokens generated by a large language model (LLM) from your application backend to your users’ browsers in real time, using Server-Sent Events. If a browser loses its connection in the middle of an answer, it gets back every event it missed as soon as it reconnects. Your backend talks to it with plain HTTP requests, so it works with PHP and with any other language.

I’ll start from the basics, because many of you are building your first agent right now and not everything here is obvious. If you already know why streaming matters and how it works in PHP, feel free to skip ahead to the section about the limits I found along the way.

## What streaming means in an AI application

An LLM doesn’t write an answer all at once. It generates text in small pieces called tokens, roughly a word or a part of a word each, one after another. A long answer of a few thousand tokens can take from tens of seconds to more than a minute to complete. If your application waits for the whole thing before showing anything, the user stares at a spinner for that entire time. Streaming means sending each piece to the browser as soon as the model produces it, so the user starts reading immediately.

With agents, there’s more than text to stream. An agent can reason before answering, decide to call a tool (a PHP function that queries your database or calls an external API), wait for the result, and then continue writing. Users want to see all of this as it happens, otherwise a thirty second tool call looks like a frozen application. In Neuron AI you switch from a regular call to a streamed one by calling `stream()` instead of `chat()`, and you get back a sequence of chunks: `TextChunk` for pieces of the answer, `ReasoningChunk` for the model’s reasoning, `ToolCallChunk` when the model asks to run a tool, and `ToolResultChunk` with the tool’s output.

```
use App\Neuron\MyAgent;
use NeuronAI\Chat\Messages\UserMessage;

$stream = MyAgent::make()
    ->setThreadId('chat_id')
    ->stream(new UserMessage('How are you?'));

foreach ($stream as $chunk) {
    echo $chunk->content;
}
```

In a terminal, this works beautifully. The problems begin when there’s a browser on the other side.

## Why you can’t just stream from a PHP controller

The first idea everyone has is to keep the HTTP request open and write the chunks into the response as they arrive. For a short answer that’s fine, and Neuron supports it out of the box. But agents are rarely short. An agent that calls a few tools, waits on slow APIs, and writes a long report can easily run for minutes. Along the way it runs into PHP’s `max_execution_time`, the 60 second default timeout of Nginx when it works as a reverse proxy, and whatever limit your load balancer applies to long connections. Any of them can cut the answer in half without telling anyone.

So you do what PHP developers have always done with long-running work: you move it into a queue. A Laravel job, a Symfony Messenger handler, a worker process. The agent now runs safely in the background, but there’s a new problem. The worker has no browser attached. It produces tokens, and it has no way to deliver them to the user who asked the question.

To bridge that gap you need a real-time server, something the worker can publish events to and the browser can stay connected to. In the PHP world the usual candidates are Pusher, Laravel Reverb, Soketi, and Mercure. They’re mature, widely used tools, and they were the natural choice when I designed streaming channels in Neuron AI 4.

## The limits I discovered building Neuron’s streaming channels

Channels in Neuron forward the agent’s events to an external transport. The agent code stays the same whether it runs in a controller, a queue worker, or a cron job, and if the transport fails, the error goes to your observability tool while the agent keeps working. It looked clean on paper. Then I started testing real agents.

The first one was an agent that reads code repositories. It worked perfectly in the terminal. In a queue worker, streaming through Pusher, the chat stopped in the middle of an answer and never moved again. A tool had returned the content of a file, the event was larger than Pusher’s 10 KB limit, and Pusher rejected it silently. The UI kept waiting for something that would never arrive.

That was the first limit: event size. Pusher caps each event at 10 KB, Laravel Reverb uses the same default, and Soketi allows 100 KB. A text token fits easily, but tool calls, tool results, and message snapshots often don’t. The second limit was frequency. Managed Mercure plans allow roughly one to twenty publish requests per second, while a model can produce dozens of tokens per second. The third was ordering. Not every server guarantees that events reach the browser in the same order you sent them, and a stream of text tokens in the wrong order is just noise.

To make these systems work, I designed a small protocol inside Neuron. Every event is wrapped in an envelope with a stream identifier, a sequence number, a type, and the payload. When an event is too big for the transport, the channel splits it into consecutive fragments, each one carrying its position and the total number of parts. The channel can group several events into a single request, and it can pace its own sends when the server only accepts a few requests per second. You don’t write any of this yourself, you just tell the channel what limits your server has:

```
use NeuronAI\Agent\Adapter\AgentChunkAdapter;
use NeuronAI\Workflow\Streaming\Channel\PusherChannel;
use NeuronAI\Workflow\Streaming\Channel\StreamingChannelInterface;
use Pusher\Pusher;

class MyAgent extends Agent
{
    // ...

    protected function streamAdapter(): ?StreamAdapterInterface
    {
        return new AgentChunkAdapter();
    }

    protected function channel(): StreamingChannelInterface
    {
        return new PusherChannel(
            client: new Pusher(...),
            channel: 'chat-'.$this->getThreadId(),
            maxRequestBytes: 10_000,
            batchSize: 10
        );
    }
}
```

The backend was only half of the story. If the server receives events in fragments and doesn’t guarantee their order, someone has to put them back together, and that someone is the browser. So we released `@neuron-core/streaming`, a TypeScript package that reorders events, joins fragments, discards duplicates, and tells you when something is definitely missing. On the frontend, a Pusher integration looks like this:

```
import Pusher from 'pusher-js';
import { subscribeToPusher } from '@neuron-core/streaming';

const pusher = new Pusher('YOUR_APP_KEY', { cluster: 'eu' });
const channel = pusher.subscribe(`chat-${threadId}`);

channel.bind('pusher:subscription_succeeded', () => {
  const subscription = subscribeToPusher(channel, {
    onEvent: ({ streamId, type, data }) => renderEvent(streamId, type, data),
    onGap: reason => reloadConversation(reason),
  });

  // Now it is safe to ask the backend to start the agent
  startAgent(threadId, message);
});
```

Notice two details. You have to wait for the subscription to succeed before starting the agent, otherwise the first events are lost because nobody was listening yet. And there’s an `onGap` callback, because when events go missing, the only reliable recovery is to reload the whole conversation from the database and subscribe again. I described the full protocol in my article about the [Neuron UI Streaming Protocol](https://www.neuron-ai.dev/blog/streaming-ai-agents-in-php-introducing-neuron-ui-streaming-protocol/), and the configuration of each channel is in the [Neuron streaming documentation](https://docs.neuron-ai.dev/agent/streaming#streaming-channels).

As far as I know, no other agentic framework goes this far. Most of them stop at “here are the chunks” and leave the delivery problem to you.

## Tricks that work, until they don’t

In Naples we have a name for this kind of solution: *l’arte di arrangiarsi*, the art of making things work with whatever you have at hand. It’s a skill I’m proud of, and Neuron’s streaming protocol is a pretty good example of it. But at some point I had to be honest with myself. All of that machinery exists to make tools behave like something they weren’t designed to be.

Pusher, Reverb, Soketi, and Mercure were built for a different shape of traffic. A chat message, a notification, a live score update: one small event, delivered to many people, every now and then. An LLM answer is the opposite. It’s thousands of tiny events in a dense burst, usually delivered to one or two browsers, that must arrive complete and in order, and that must survive a dropped connection. A phone switching from Wi-Fi to mobile data in the middle of a two minute agent run is normal, not an edge case.

That last point deserves a moment. Pusher, Reverb, Soketi, and Mercure with its default in-memory transport keep no history of the events they relay. If the browser disconnects for three seconds, the tokens sent during those three seconds are gone. Neuron’s frontend module detects the gap and reloads the conversation, which is the correct behavior, but it’s recovery, not streaming. The user sees the answer stall, disappear, and come back.

Still, these are engineering problems, and engineering problems can be worked around. The one I couldn’t work around was on the pricing page.

## The limit no protocol can fix: the message count

Hosted real-time services charge by the number of messages, and they count them in a way that makes sense for chat apps and very little sense for AI. Pusher counts every message it receives from your backend plus every message it delivers to a connected browser. Their own pricing page gives the example: publish one message to 50 subscribers and you’ve used 51.

The Pro plan costs $99 per month and includes 4 million messages per day. It sounds like a lot until you do the math for an agent. Let’s assume each token travels as one event, which is close to what many providers send, and that a single browser is watching. A 4,000 token answer costs 4,000 messages to publish and 4,000 more to deliver, so 8,000 messages in total. Divide 4 million by 8,000 and you get 500. That’s the daily budget of your entire application: about 500 long answers, shared among all your users. If 50 people ask your agent ten questions each, you’re done for the day.

Now look at it from the point of view of peak hours. Twenty users chatting with your agent at the same time, with answers streaming at around 100 tokens per second, generate 2,000 published events and 2,000 deliveries every second. At that rate, the 4 million messages of the day last about 17 minutes.

You can pack several tokens into one event to reduce the number, and Neuron lets you do that with `batchSize`, but batching divides the count by the size of the batch, and that’s all it does. The bill keeps growing with every token your agents produce, and agents are getting more talkative, not less: reasoning models think out loud before answering, and every tool call streams its arguments piece by piece. Even the largest self-serve Pusher plan, 90 million messages per day for $1,199 per month, covers around 11,000 answers of that size. For a chat app these plans are generous. For an AI product they’re a ceiling you reach as soon as real users show up.

That’s when I stopped asking how to make the existing tools fit, and started asking what a server designed only for this job would look like.

## What IQ-Stream is, and what it isn’t

IQ-Stream i
valerione20
🟧 echo.blog ⭐The post is itself the origin: it is written in the first person by Valerio Barbera as the story of building IQ-Stream. It states, “This artValerio Barbera——

Interpretation history

Decision trace