@generative-dom/preset-all
v0.4.0
Published
Generative DOM preset — every zero-config plugin bundled together (CommonMark, highlight, custom elements, interactive, events, companion, cursor, code-actions, rich-table)
Maintainers
Readme
@generative-dom/preset-all
The everything-included preset for Generative DOM. Bundles every zero-config plugin shipped under @generative-dom/* so you get one install and one import.
Installation
pnpm add @generative-dom/core @generative-dom/preset-allUsage
import { GenerativeDom } from '@generative-dom/core';
import { allPreset } from '@generative-dom/preset-all';
const md = new GenerativeDom(container, { plugins: allPreset() });
md.push(streamedMarkdown);What's inside
Everything from @generative-dom/preset-llm (CommonMark + highlight + custom-elements + interactive + events) plus:
| Plugin | Covers |
|---|---|
| @generative-dom/plugin-companion | Companion-tag layer for side panels and metadata |
| @generative-dom/plugin-cursor | Streaming-cursor caret on the in-flight token |
| @generative-dom/plugin-code-actions | Copy / run / open buttons on code blocks |
| @generative-dom/plugin-rich-table | Sortable, typed tables with column specs |
What's not inside
@generative-dom/plugin-external-renderer — it requires caller-supplied adapters and can't be zero-config. If you want it, install it separately and pass it alongside the preset:
import { allPreset } from '@generative-dom/preset-all';
import { externalRenderer } from '@generative-dom/plugin-external-renderer';
const plugins = [...allPreset(), externalRenderer({ adapters: { /* … */ } })];When to use
@generative-dom/preset-markdown— pure CommonMark, smallest install@generative-dom/preset-llm— chat UIs@generative-dom/preset-all— everything (this package)
License
MIT
