markstream-solid
Skill3k starsChanged 2 days agoMITView on GitHub
Integrate markstream-solid in SolidJS 1.9 or SolidStart apps. Use for reactive TSX, SSR and hydration, Markdown streaming/restoration, emitted KaTeX/Mermaid workers, scoped components and translations, virtual timelines, or standalone component/API usage.
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Read the Solid guide for setup and the Solid component/API reference for exact contracts.
- Very specific: line 14
Add only required peers: katex, mermaid, stream-diffs, @terrastruct/d2 or @antv/infographic.
- Very specific: line 16
Keep props reactive: read props.content in JSX/accessors.
- Very specific: line 30
Use mode="chat" for conversations and mode="docs" for documents.
- Very specific: line 32
Use non-empty nodes for shared/preparsed ASTs.
- Very specific: line 34
Use MarkstreamVirtualTimeline for mixed message windows.
- Very specific: line 39
Import markstream-solid/workers/katexRenderer.worker?worker and markstream-solid/workers/mermaidParser.worker?worker, then call …
- Distinctive: line 40
Use file workers for Mermaid: its diagram chunks need a resolvable module base.
- Very specific: line 43
Keep browser-only constructors behind the client boundary.
- Very specific: line 47
Use ComponentProps<typeof Component> from solid-js or the exported interfaces for exact TSX props.
- Very specific: line 48
Use local customComponents, a MarkstreamProvider, or scoped setCustomComponents(id, mapping) for overrides.
- Distinctive: line 49
Use callbacks instead of Vue emits, JSX/render functions instead of slots, and a callback ref for renderer/timeline handles.
- Distinctive: line 53
Read the per-component/API tables before configuring previews, diagrams, virtual state or advanced worker clients.
- Very specific: line 57
Run the host's build and typecheck.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Markstream Solid
Read the Solid guide for setup and the Solid component/API reference for exact contracts. The repository source contains workspace commands and validation records. Check the selected package's actual version and publication status before installing it.
Setup
- Detect
solid-js/@solidjs/startin the host. TSX alone does not imply React. Require Solid 1.9 and the Solid compiler; SolidStart owns its compiler setup. - While the package is a workspace preview, build and pack the parser, core and Solid packages together. For npm releases, use the package's declared dependency versions; never substitute an older published core/parser for the workspace build.
- Add only required peers:
katex,mermaid,stream-diffs,@terrastruct/d2or@antv/infographic. Math also requireskatex/dist/katex.min.css. - Load resets before exactly one
markstream-solid/index.css,index.px.cssorindex.tailwind.css. Use.markstream-solidaround standalone basic nodes. - Keep props reactive: read
props.contentin JSX/accessors. Avoid destructuring reactive props or treating signals as Vue refs.
Streaming and restoration
import MarkdownRender from 'markstream-solid'
import 'markstream-solid/index.css'
export function Message(props: { content: string, done: boolean }) {
return <MarkdownRender mode="chat" content={props.content} final={props.done} />
}- Append decoded Markdown to accumulated
content. Setfinalat completion and back to false before resuming. Replacement/empty content starts a new source session. - Use
mode="chat"for conversations andmode="docs"for documents.smoothStreamingcontrols pacing;fadecontrols animation. Solid and Vue 3 share the bounded text fade implementation. useSmoothMarkdownStreamreturns accessors (visible(),source(),final(),done(),snapshot()). Use one pacing owner per response.- Use non-empty
nodesfor shared/preparsed ASTs; an empty array falls back to content. - For full immediate DOM restoration, disable pacing, batching, viewport priority, deferral and live windows explicitly. Use the default window/timeline for large interactive histories.
- Use
MarkstreamVirtualTimelinefor mixed message windows. Markdown items use its built-in renderer;renderItemsupplies the non-Markdown fallback. UseuseMarkstreamVirtualAdapterwhen an existing outer virtualizer owns rows.
Workers and SSR
- Configure Vite
worker: { format: 'es' }. - Import
markstream-solid/workers/katexRenderer.worker?workerandmarkstream-solid/workers/mermaidParser.worker?worker, then callsetKaTeXWorker/setMermaidWorkeronce in the browser entry oronMount. - Use file workers for Mermaid: its diagram chunks need a resolvable module base. Do not copy the old inline-worker example.
- KaTeX worker renders block/inline math and includes mhchem. Mermaid worker handles parsing/prefix discovery; SVG rendering still runs on the main thread, matching Vue 3.
- CDN helpers are a separate path; supply dependency URLs and CSP/CORS permissions as documented. Host-owned highlighter pools use
setStreamDiffsWorkerPool. - Keep browser-only constructors behind the client boundary. SSR and hydration must start with identical content/final values. Prefer
MarkstreamProviderfor request-scoped translations/components.
Components and callbacks
- Use
ComponentProps<typeof Component>fromsolid-jsor the exported interfaces for exact TSX props. - Use local
customComponents, aMarkstreamProvider, or scopedsetCustomComponents(id, mapping)for overrides. Mark block-level overrides withwithMarkstreamComponentDisplay. - Use callbacks instead of Vue emits, JSX/render functions instead of slots, and a callback ref for renderer/timeline handles.
ReferenceNodeforwards click/enter/leave with(event, id, messageId, threadId).MathBlockNode.cacheScopenamespaces the renderer-owned pending-height cache withindexKey; it is not a global KaTeX macro/HTML-cache namespace.- Mermaid stability/poll options control stable source-to-preview switching and bounded preview retries. Preserve cleanup and stale-result cancellation.
- Read the per-component/API tables before configuring previews, diagrams, virtual state or advanced worker clients.
Verification
Run the host's build and typecheck. In this repository use pnpm test:solid, pnpm test:smoke:solid, pnpm test:smoke:solid-workers, pnpm test:e2e:solid-playground and pnpm play:solid:seo. Verify worker consumption through packed subpaths, streaming/final/full restore, user scroll detachment, and SSR/hydration where applicable.
Trending
More talk lately.about the whole repository
Who's talking about Simon-He95/markstream-vue
- ruanyf/weekly“【开源自荐】:针对 ai 吐出的 markdown 渲染库”GitHub · May 20, 2026 · 4 reactions
- JackyST0/awesome-agent-skills“feat: add markstream-install skill”GitHub · Jul 19, 2026 · 1 reactions
- finfin/awesome-frontend-skills“Add Markstream frontend skills”GitHub · Jul 19, 2026 · 1 reactions
- aliammari1/awesome-ai-tools“Add Markstream to Development Tools”GitHub · Jul 19, 2026 · 1 reactions
- aitobox/ATBNewsWeekly“[AI服务推荐]-[Markstream:面向 AI Chat 的流式 Markdown 渲染器]”GitHub · Jul 19, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- May 20, 2026【开源自荐】:针对 ai 吐出的 markdown 渲染库 — ruanyf/weekly4 reactions · 1 comment
- Jul 19, 2026feat: add markstream-install skill — JackyST0/awesome-agent-skills1 reaction
- Jul 19, 2026Add Markstream frontend skills — finfin/awesome-frontend-skills1 reaction
- Jul 19, 2026Add Markstream to Development Tools — aliammari1/awesome-ai-tools1 reaction · 3 comments
- Jul 19, 2026[AI服务推荐]-[Markstream:面向 AI Chat 的流式 Markdown 渲染器] — aitobox/ATBNewsWeekly1 reaction · 2 comments
45 more on GitHub
- Jul 19, 2026Add Markstream to Vue.js resources — palashmon/awesome-js-posts1 reaction · 2 comments
- Oct 29, 2026chore(deps): bump stream-markdown-parser from 1.2.18 to 1.2.21 in /web — sanyueqiyue-git/token-free0 reactions
- Oct 26, 2026agent-skills.github.simon-he95.markstream-vue: 6535cbb → 6535cbb — sudosubin/agents.nix0 reactions
- Oct 26, 2026build(deps): bump stream-markdown-parser from 1.2.18 to 1.2.21 in /web — SUNXIAO250635/new-api0 reactions
- Oct 24, 2026chore(deps): bump stream-markdown-parser from 1.2.18 to 1.2.21 in /web — Gaozx1/apple-newapi0 reactions
- Oct 24, 2026chore(deps): bump stream-markdown-parser from 1.2.18 to 1.2.21 in /web — qingchunnh/new-api0 reactions · 1 comment
- Oct 22, 2026chore(deps): bump the npm-patch-minor group in /frontend with 9 updates — DriftingLi/FL0 reactions · 2 comments
- Oct 21, 2026Bump stream-markdown-parser from 1.2.18 to 1.2.20 in /web — alphafoxai/corecode-app-pre-fork0 reactions
- Oct 20, 2026chore(deps): bump stream-markdown-parser from 1.2.18 to 1.2.20 in /web — adtyai/adtyai-api0 reactions · 1 comment
- Oct 19, 2026chore(deps): bump the minor-and-patch group across 1 directory with 23 updates — maksqi/harness-forge0 reactions · 1 comment
- Oct 18, 2026agent-skills.github.simon-he95.markstream-vue: 6535cbb → 6535cbb — sudosubin/agents.nix0 reactions
- Oct 16, 2026chore(deps): bump stream-markdown-parser from 1.2.18 to 1.2.20 in /web — 211277729/jingyu-api0 reactions
- Oct 14, 2026chore(deps): bump the frontend-minor group across 1 directory with 7 updates — wuqilei-code/ai-workbench0 reactions
- Oct 14, 2026chore(deps): bump the minor-and-patch group with 19 updates — maksqi/harness-forge0 reactions · 1 comment
- Oct 14, 2026agent-skills.github.simon-he95.markstream-vue: 2.0.11-unstable-2026-09-09 → 0-unstable-2026-09-09 — sudosubin/agents.nix0 reactions
- Oct 13, 2026chore(deps): bump the frontend-minor group across 1 directory with 6 updates — wuqilei-code/ai-workbench0 reactions · 1 comment
- Oct 13, 2026chore(deps): bump the frontend-minor group in /frontend with 8 updates — wuqilei-code/ai-workbench0 reactions · 1 comment
- Oct 12, 2026build(deps): bump stream-markdown-parser from 1.1.3 to 1.2.18 in /web — QuantumNous/new-api0 reactions · 1 comment
- Oct 5, 2026chore(deps): bump the minor-and-patch group across 1 directory with 9 updates — maksqi/harness-forge0 reactions · 1 comment
- Oct 4, 2026agent-skills.github.simon-he95.markstream-vue: 6535cbb → 6535cbb — sudosubin/agents.nix0 reactions
- Oct 3, 2026chore(deps): bump the production-dependencies group across 1 directory with 4 updates — cefege/humanchrome0 reactions
- Oct 2, 2026agent-skills.github.simon-he95.markstream-vue: init at 2.0.11-unstable-2026-09-09 — sudosubin/agents.nix0 reactions
- Oct 1, 2026chore(deps): bump the frontend-major-dependencies group across 1 directory with 13 updates — TouchAI-org/TouchAI0 reactions · 2 comments
- Sep 21, 2026Add Markstream to Development Tools (recovery of #130) — aliammari1/awesome-ai-tools0 reactions
- Sep 21, 2026chore(deps): bump the production-dependencies group across 1 directory with 5 updates — cefege/humanchrome0 reactions · 1 comment
- Sep 7, 2026chore(deps): bump the production-dependencies group across 1 directory with 4 updates — cefege/humanchrome0 reactions · 1 comment
- Sep 7, 2026chore(deps): bump markstream-vue from 1.0.6 to 1.1.5 — cefege/humanchrome0 reactions
- Sep 1, 2026chore(deps): bump the frontend-major-dependencies group across 1 directory with 5 updates — TouchAI-org/TouchAI0 reactions · 2 comments
- Aug 25, 2026【开源自荐】markstream — 覆盖 Vue/React/Svelte/Angular/Vue2 的流式 Markdown 渲染库(2.x) — ruanyf/weekly0 reactions
- Aug 11, 2026build(deps): bump markstream-vue from 1.0.7 to 2.0.7 — ValMtp3/Bento-Grid-Portfolio0 reactions · 3 comments
- Jul 28, 2026[特性] 适合AI输出的markdown高性能渲染方式 — agegr/pi-web0 reactions · 1 comment
- Jul 26, 2026[Resource] Markstream — drbarzaga/ReactToolkit-VSCE0 reactions
- Jul 23, 2026【开源自荐】Markstream Family:面向 AI 场景的高性能多框架流式 Markdown 渲染器 — ruanyf/weekly0 reactions
- Jul 21, 2026推荐收录 Markstream:面向 AI 对话的流式 Markdown 组件库 — aidevtoolkit/uilibhub0 reactions
- Jul 21, 2026Suggestion: Add Markstream to the Markdown section — trendmicro-frontend/awesome0 reactions
- Jul 21, 2026feat: add markstream-svelte to Svelte packages — sveltejs/svelte.dev0 reactions · 1 comment
- Jul 21, 2026【开源推荐】Markstream React:面向 AI 流式输出的 Markdown 渲染组件 — huaize2020/awesome-react0 reactions
- Jul 21, 2026【开源自荐】Markstream Vue:面向 AI 对话流式输出的 Markdown 渲染组件 — rumengkai/awesome-vue0 reactions
- Jul 20, 2026【开源自荐】Markstream Vue:面向 AI 对话的流式 Markdown 渲染组件 — opendigg/awesome-github-vue0 reactions · 2 comments
- Jul 20, 2026Add Markstream Svelte resource — sharu725/sveltethemes0 reactions
- Jul 20, 2026Add project: Markstream React — lukasmasuch/best-of-react0 reactions
- Jul 20, 2026【开源自荐】Markstream Vue:面向 AI 对话的流式 Markdown 渲染组件 — wmyskxz/weekly0 reactions · 1 comment
- Jul 20, 2026Markstream Vue:面向 AI 对话的流式 Markdown 渲染组件 — opendigg/opendigg-share-projects0 reactions
- Jul 20, 2026Add Markstream Vue — mahseema/awesome-ai-tools0 reactions
- Jul 20, 2026Suggest project: Simon-He95/markstream-vue — Sofyan232/lists-opensource0 reactions · 1 comment
Other versions1 project uses a version of this.
Word for word · 1
- Simon-He95/vue-markdown-renderer★ 3k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- markstream-angularSkill
- markstream-custom-componentsSkill
- markstream-installSkill
- markstream-migrationSkill
- markstream-nuxtSkill
- markstream-reactSkill
- markstream-svelteSkill
- markstream-vue2-cliSkill
- markstream-vue2Skill
- markstream-vue2-viteSkill
- markstream-vueSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

