Streaming Chat in the Browser: SSE, React, and Schema-Constrained Suggestion Chips
Post 7 of the Pepper & Carrot AI flipbook series. Post 6 left a spoiler-safe chat pipeline you could only reach with curl. Now we put it in the browser: tokens stream over Server-Sent Events into a React chat panel, the user picks page or wiki mode per message, and two follow-up suggestion chips render below each answer — generated by a second model call, constrained to a JSON schema, and validated server-side before a single chip reaches the DOM. Plus a light wiki ingestion path so wiki mode has something to say.