markstream-svelte

Integrates the beta markstream-svelte streaming Markdown renderer into Svelte 5 and SvelteKit apps.

3.0k|181|Updated May 22, 2025
One-click install
npx skills add https://github.com/Simon-He95/markstream-vue --skill markstream-svelte
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: markstream-svelte
Source: https://github.com/Simon-He95/markstream-vue/tree/main/.agents/skills/markstream-svelte
Command: npx skills add https://github.com/Simon-He95/markstream-vue --skill markstream-svelte

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markstream-svelte.

What problem does it solve?

Setting up a streaming Markdown renderer for AI chat output in Svelte 5 or SvelteKit involves tricky decisions around CSS ordering, optional peer dependencies, web workers for KaTeX and Mermaid, custom component scoping, and SSR safety. This Skill guides an AI agent through a correct integration of the beta markstream-svelte package.

Core Features & Use Cases

  • Streaming configuration: Sets up smooth streaming, typewriter cursor, and fade animations, including dynamic switching between live streaming and recovered history states.
  • Worker and peer setup: Configures KaTeX and Mermaid web workers and installs only the optional peers the app actually needs.
  • Custom components: Chooses between renderer-local customComponents props and scoped setCustomComponents registration with customId and customHtmlTags.
  • Use Case: A developer building a SvelteKit AI chat app asks the agent to render LLM token streams with math and diagrams; the Skill installs markstream-svelte, wires the workers, and configures streaming props with SSR-safe client boundaries.

Quick Start

Use the markstream-svelte skill to integrate the beta markstream-svelte package into this Svelte 5 app with CSS, workers, and streaming configured.

Frequently Asked Questions about markstream-svelte

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Is markstream-svelte stable for production use?▼

The package is currently in beta, so its API may change. Confirm the application accepts that maturity level before adopting it, and verify integrations with svelte-check, builds, or e2e tests.