Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Integrate the beta markstream-react renderer into React 18+ or Next.js with correct client/server entrypoints, CSS, streaming state, and component overrides.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -49% | 0% |
Wire the beta React renderer into React 18+ or Next.js without crossing client/server boundaries or reaching for AST control unnecessarily.
Use for React/Next setup, root/next/server entrypoints, streaming, component overrides, or migration support. Pair with markstream-migration for renderer replacement.
Before changing dependencies or source files, inspect the existing package manager and project conventions, preview the intended edits, and obtain explicit user approval.
markstream-react/index.css./next for Next-specific components, and /server for server rendering without client hooks.content and smoothStreaming="auto"; use nodes plus final only when another layer owns parsing.final, disable pacing/cursor, and enable fade only if desired.'use client', dynamic ssr: false, or another minimal boundary.streamingComponents for parser-backed tags and htmlComponents for sanitized props. Use scoped registry overrides for built-in nodes.htmlPolicy="safe" and Mermaid strict; validate client, server, and incremental paths.tsximport MarkdownRender from 'markstream-react' import 'markstream-react/index.css' export function StreamingAnswer({ content, isDone, }: { content: string isDone: boolean }) { return ( <MarkdownRender content={content} final={isDone} fade={isDone} typewriter={!isDone} smoothStreaming={isDone ? false : 'auto'} htmlPolicy="safe" /> ) }
Review dependencies and never opt untrusted model output into trusted HTML or loose diagram rendering.
Other measured skills in the registry, with their headline benchmark lift.