markstream-install

sickn33/agentic-awesome-skills

Установка и настройка потоковых рендереров Markdown Markstream для Vue, React, Svelte, Angular, Nuxt, Next.js и Vue 2.

Звёзды49 917
Авторsickn33

Установка

SKILL.md

Markstream Install

Overview

Integrate the correct Markstream streaming Markdown renderer into an existing frontend application. This skill selects the framework package, installs only requested optional peers, preserves safe HTML and Mermaid defaults, and handles CSS, streaming state, and SSR boundaries.

Read references/scenarios.md before selecting packages or optional peers.

When to Use

Use this skill when the user asks to:

  • add streaming Markdown rendering to an AI chat or document interface;
  • install Markstream in Vue, Nuxt, React, Next.js, Svelte, Angular, or Vue 2;
  • repair missing Markstream styles, an incorrect framework package, or an SSR failure;
  • replace another Markdown renderer with Markstream;
  • choose between static content, built-in smooth streaming, or externally parsed AST input.

How It Works

1. Inspect the host application

Before changing dependencies, inspect:

  • the framework and version in package.json;
  • the existing package-manager lockfile;
  • whether the application uses SSR;
  • reset, Tailwind, UnoCSS, or design-system styles;
  • required optional features such as highlighted code, Monaco, Mermaid, D2, or KaTeX.

Do not select markstream-vue merely because the source repository has Vue in its name. Choose the framework-specific package from the scenario table.

2. Install the smallest dependency set

Before installing or changing source files, preview the exact dependency and code changes and obtain explicit user approval. Do not switch package managers or replace an existing renderer implicitly.

Install exactly one framework package and preserve the repository's package manager. Add optional peers only when the requested UI uses their feature.

Examples:

npm install markstream-vue
npm install markstream-react
npm install markstream-svelte
npm install markstream-angular
npm install markstream-vue2

For Vue 2.6, also install and register @vue/composition-api. Vue 2.7 has a built-in Composition API and must not install that plugin.

3. Wire styles in the correct order

Import application resets before Markstream styles. Import package CSS explicitly instead of relying on component imports to inject it.

For Tailwind or UnoCSS, put the matching package stylesheet in a component layer:

@import 'markstream-vue/index.css' layer(components);

When math rendering is enabled, also import:

@import 'katex/dist/katex.min.css';

Vue CLI 4 and other Webpack 4-based Vue 2 projects do not understand package export maps. Use the published file path in those projects:

import 'markstream-vue2/dist/index.css'

4. Add the smallest working renderer

Prefer content for static documents and most streaming chat interfaces. Markstream's built-in smooth streaming can pace irregular token delivery without requiring the host application to maintain an AST.

Use nodes plus final only when a worker, shared AST store, custom transform, or another application layer already owns parsing.

5. Handle framework boundaries

  • In Nuxt, keep browser-only optional peers behind client boundaries.
  • In Next.js, use root markstream-react inside a 'use client' component for live SSE or WebSocket streams.
  • Use markstream-react/next for SSR-first HTML with hydration and markstream-react/server for server-only rendering.
  • Use markstream-svelte only with Svelte 5.
  • Confirm the host meets the current markstream-angular version requirement.
  • In Vue 3, use mode="chat" for AI chat, mode="docs" for rich documents, and mode="minimal" for lightweight non-chat surfaces.

6. Preserve safe defaults

HTML policy defaults to safe, and Mermaid uses strict mode. Do not broaden either setting unless the user explicitly identifies a trusted legacy surface that requires it. Scope any exception to that surface.

7. Validate

Run the smallest relevant build, typecheck, or test command. Confirm:

  1. the selected package matches the framework;
  2. only requested optional peers were added;
  3. styles load after resets;
  4. SSR pages do not evaluate browser-only peers on the server;
  5. static content and at least one incremental update render correctly.

Report the selected package, added peers, CSS location, streaming input choice, and validation command.

Examples

Vue 3 streaming chat

<MarkdownRender
  mode="chat"
  :content="markdown"
  :final="false"
  smooth-streaming="auto"
  :fade="false"
  typewriter
/>

Vue 3 completed chat history

<MarkdownRender
  mode="chat"
  :content="markdown"
  :final="true"
  :smooth-streaming="false"
  :fade="true"
  :typewriter="false"
/>

Setting final=true tells the parser that the document is complete; disabling pacing alone does not finalize trailing constructs.

Best Practices

  • Install the minimal peer set instead of every optional integration.
  • Keep the renderer mode stable when a chat message transitions from streaming to history.
  • Let an existing outer message virtualizer own mounted rows; coordinate Markstream height metrics instead of adding a competing virtualizer.
  • Scope component overrides with customId or custom-id when multiple render surfaces coexist.
  • Test SSR and incremental client updates separately.

Limitations

  • This skill does not choose application-specific visual styling or chat architecture.
  • Optional browser-heavy peers can require framework-specific client boundaries and bundler configuration.
  • Vue 2.6 and legacy Webpack projects require the compatibility steps documented above.
  • Current package and framework requirements must be checked against the host lockfile and Markstream documentation before installation.

Security & Safety Notes

  • Package installation changes the dependency manifest and lockfile. Review the proposed package set before running the install command.
  • Do not enable trusted HTML or non-strict Mermaid rendering for untrusted model output.
  • Keep optional browser runtimes out of server-only execution paths.
  • Run installs only inside the intended project directory and use its existing package manager.

Common Pitfalls

  • Problem: Styles appear missing or are overwritten. Solution: Load resets first, then the matching Markstream stylesheet explicitly.
  • Problem: A completed response still looks incomplete. Solution: Set final=true when the stream finishes, not only smoothStreaming=false.
  • Problem: Next.js evaluates browser-only code on the server. Solution: Select the root, /next, or /server entry according to the render boundary.
  • Problem: Lightweight highlighting does not activate after installing stream-markdown. Solution: On Vue, Vue 2, or React, configure MarkdownCodeBlockNode as the code_block override.

Additional Resources

  • Installation
  • AI chat and streaming
  • Performance
  • Troubleshooting
  • Component overrides

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: markstream-install](https://darkplay.ru/ai/skills/sickn33-agentic-awesome-skills-markstream-install)

Описание

Установка и настройка потоковых рендереров Markdown Markstream для приложений на Vue, React, Svelte, Angular, Nuxt, Next.js и Vue 2.

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
core-skillsheygen-com · Базовый набор HyperFrames — устанавливайте именно его: роутер /hyperframes, доменные…
27 комп.
hyperframesheygen-com · Все навыки HyperFrames в одном статическом наборе. В большинстве случаев лучше…
27 комп.
ruflo-federationruvnet · Федерация агентов между установками с безопасностью zero-trust, потоком данных с…
240 комп.
ppt-masterhugohe3 · Генерирует нативно редактируемый PPTX из PDF / DOCX / URL / Markdown: настоящие фигуры…
78 033 ★
bmad-analysisbmad-code-org · Пакет мышления BMad — структурированный брейншторминг, стресс-тестирование идей и…
39 комп.
agentic-bundle-aas-accessibility-inclusive-uxsickn33 · Установите набор редакционных навыков "AAS Accessibility & Inclusive UX" для Claude Code.
49 917 ★
agentic-bundle-aas-agent-mcp-buildersickn33 · Установите набор редакционных навыков "AAS Agent & MCP Builder" для Claude Code.
49 917 ★
agentic-bundle-aas-ai-product-evaluation-opssickn33 · Установите набор редакционных навыков «AAS AI Product & Evaluation Ops» для Claude Code.
49 917 ★
agentic-bundle-aas-api-platform-buildersickn33 · Установите набор редакционных навыков «AAS API Platform Builder» для Claude Code.
49 917 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8