@stream-mdx/core
v0.1.1
Published
Core types, snapshot utilities, and perf helpers for the Streaming Markdown V2 stack
Downloads
930
Readme
@stream-mdx/core
Core types + utilities shared across the StreamMDX stack.
This package is intentionally React-free. It contains structured-clone-safe types and helpers used by both the worker and the renderer.
Most consumers should install stream-mdx and follow the main docs. Use @stream-mdx/core directly if you’re building tooling or customizing lower-level behavior.
Install
npm install @stream-mdx/coreEntry points
@stream-mdx/core(root)@stream-mdx/core/types@stream-mdx/core/utils@stream-mdx/core/code-highlighting@stream-mdx/core/inline-parser@stream-mdx/core/mixed-content@stream-mdx/core/worker-html-sanitizer@stream-mdx/core/security@stream-mdx/core/perf/backpressure@stream-mdx/core/perf/patch-batching@stream-mdx/core/perf/patch-coalescing@stream-mdx/core/streaming/custom-matcher
Example
import { DEFAULT_BACKPRESSURE_CONFIG } from "@stream-mdx/core/perf/backpressure";
export function makeConfig(overrides?: Partial<typeof DEFAULT_BACKPRESSURE_CONFIG>) {
return { ...DEFAULT_BACKPRESSURE_CONFIG, ...overrides };
}Docs
- API reference:
docs/PUBLIC_API.md - Security model:
docs/SECURITY_MODEL.md
Related packages
@stream-mdx/reactfor the React renderer@stream-mdx/workerfor hosted worker bundles@stream-mdx/mermaidfor Mermaid diagram rendering (optional)
