Markstream React
SkillDev toolsLets your agent add the markstream-react streaming markdown renderer to a React or Next app.
Then ask your AI: use the Markstream React skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.
About this skill
Integrate the beta markstream-react package into a React 18+ or Next app. Use when Codex needs to add the React renderer, choose the root, `next`, or `server` entrypoint, import CSS correctly, choose between `content` and `nodes`, keep client boundaries safe, add renderer-local `streamingComponents`
What this skill tells your AI
The instructions your AI receives, as published by simon-he95/markstream-vue in .agents/skills/markstream-react/SKILL.md and read by Ahel’s review.
Use this skill when the host app is React or Next and the task is to wire Markstream safely.
Workflow
- Confirm the repo is React 18+ or a compatible Next host and accepts a beta renderer API.
- Install
markstream-reactplus only the requested optional peers. - Import
markstream-react/index.cssfrom the app shell or client entry. - Choose the entrypoint that matches the rendering boundary.
- Use
markstream-reactfor the normal client renderer. - Use
markstream-react/nextfor the Next-specific component surface. - Use
markstream-react/serverfor server rendering without client hooks.
- Use
- Start with
content.- For streaming or high-frequency AI output, keep
contentand use built-in smooth streaming first.smoothStreaming="auto"is the default and activates whentypewriter={true}ormaxLiveNodes <= 0.typewriteronly controls the blinking cursor and defaults tofalse.fadecontrols node enter and streamed-text fade animations and defaults totrue.
- Streaming vs recovering history: in chat UIs the same renderer starts streaming and later switches to history when
final={true}.- Streaming:
smoothStreaming="auto",fade={false},typewriter={true}. This is a conservative visual/performance choice, not an API incompatibility. This adapter has not adopted Vue 3's bounded append fades, so verify its animation behavior before enabling both. - Recovering history:
smoothStreaming={false},fade={true},typewriter={false}. Content is already complete — pacing would slow it down, but fade gives a polished entry animation. - Dynamic switch:
smoothStreaming={isStreaming ? 'auto' : false},fade={!isStreaming}.
- Streaming:
- Move to
nodes+finalonly for worker-preparsed content, shared AST stores, or custom AST control. - Remember that
htmlPolicynow defaults tosafe, and Mermaid strict mode is on by default throughmermaidProps.
- For streaming or high-frequency AI output, keep
- Respect SSR boundaries in Next.
- Prefer
use client, dynamic imports withssr: false, or other client-only boundaries when browser-only peers are involved.
- Prefer
- Use renderer-local components before custom parser work.
streamingComponentsreceives parser-backedNodeComponentProps, supports incomplete custom tags, and automatically contributes its keys to the effectivecustomHtmlTagslist.htmlComponentsreceives sanitized HTML attributes pluschildren; it does not receive the parser node/loading contract.- Prefer
defineStreamingComponents(...)anddefineHtmlComponents(...)for typed maps. - Keep scoped
setCustomComponentsfor built-in node overrides or shared compatibility registration. - Use
parseOptionstransforms only when migration requires token or AST changes.
- Validate with the smallest useful dev, build, or typecheck command.
Default Decisions
- Renderer wiring first, migration cleanup second.
- If the repo already uses
react-markdown, pair this skill withmarkstream-migration. - Prefer
contentwith built-in smooth streaming for most AI chat / token streaming surfaces. - Streaming vs recovering history: when a chat message transitions from streaming to history (e.g.
finalbecomestrue), switch props dynamically —smoothStreaming="auto",fade={false}for streaming;smoothStreaming={false},fade={true}for history. Seedocs/guide/ai-chat-streaming.mdfor full examples. - Move to
nodesonly when another layer owns parsing or AST transforms. - Prefer renderer-local custom-tag maps over global registry mutation.
- Prefer the smallest client-only boundary that solves the SSR issue.
- Avoid
smoothStreaming={true}for first-screen SSR content unless intentionally starting from blank; auto mode uses the mounted gate. - Keep
htmlPolicy="safe"and Mermaid strict mode unless the request is preserving trusted legacy rendering. - If a trusted surface needs older behavior, use
htmlPolicy="trusted"andmermaidProps={{ isStrict: false }}only on that surface and explain why.
Useful Doc Targets
docs/guide/react-quick-start.mddocs/guide/react-installation.mddocs/guide/react-components.mddocs/guide/react-next-ssr.mddocs/guide/react-markdown-migration.mddocs/guide/component-overrides.md
Signals
- GitHub stars
- 3k
- Forks
- 188
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
markstream-react-simon-he95- Source
- github.com/simon-he95/markstream-vue
github.com/simon-he95/markstream-vue
Related picks
Skill · posthog
The pick for Next.jsclerk-nextjs-patterns
Skill · clerk
The pick for Next.jsreact-component-performance
Skill · davila7
The pick for Reactreact-doctor
Skill · millionco
The pick for Reactsw-vue-part
Skill · onweekendd
The pick for Vuevue-page-composition
Skill · esposter
The pick for Vue