open-index/open-npm huggingface dataset:
npm package: @preferred-markdown-stream/core
Description: Framework-agnostic utilities for streaming Markdown UIs.
Latest version: 0.2.1

# @preferred-markdown-stream/core

Framework-agnostic utilities for streaming Markdown UIs.

## Installation

```bash
pnpm add @preferred-markdown-stream/core
```

## Usage

```ts
import { splitContent } from '@preferred-markdown-stream/core'
```

```ts
import '@preferred-markdown-stream/core/styles.css'
```

## Public API

- `splitContent(message)`
- `addFadeInClassToTreeNodes(children, loading, options?)`
- `StreamingTextNode`
- `FadeInClassOptions`

## Notes

- The current implementation keeps the existing behavior from the app.
- The core package no longer depends on Vue types.
- Vue-specific node adaptation lives in `@preferred-markdown-stream/vue`.
- Default animation styles are published via `@preferred-markdown-stream/core/styles.css`.
- Animation duration and timing can be overridden with CSS variables.
npm package: @preferred-markdown-stream/vue
Description: Vue bindings and runtime helpers for streaming Markdown rendering.
Latest version: 0.2.1

# @preferred-markdown-stream/vue

Vue bindings and runtime helpers for streaming Markdown rendering.

## Installation

```bash
pnpm add @preferred-markdown-stream/vue vue
```

## Usage

```ts
import {
  createStreamingMarkdownVNodes,
  createVNodeRendererComponent,
  splitContent,
} from '@preferred-markdown-stream/vue'
import '@preferred-markdown-stream/vue/styles.css'
```

## Public API

- `addFadeInToVNodes(children, loading, options?)`
- `createStreamingMarkdownVNodes(content, loading)`
- `createVNodeRendererComponent(vnodes)`
- `setCodeBlockComponent(component)`
- `splitContent(message)`

## Notes

- The package currently preserves the app's existing runtime behavior.
- `fadeIn.ts` adapts the framework-agnostic tree animation helper for Vue VNodes.
- `runtime.ts` stays internal and owns the Markdown renderer instance plus lazy capability loading.
- `useStreamingMarkdown.ts` contains the repeated Vue wiring that was previously duplicated inside app components.
- Default animation styles are published via `@preferred-markdown-stream/vue/styles.css`.