@ai-composer/core
v0.1.1
Published
The framework-independent engine behind AI Composer. It manages the editor document, state, commands, triggers, plugins, undo/redo history, and serialization. Use it directly for a custom UI, or pair it with a framework adapter.
Readme
@ai-composer/core
The framework-independent engine behind AI Composer. It manages the editor document, state, commands, triggers, plugins, undo/redo history, and serialization. Use it directly for a custom UI, or pair it with a framework adapter.
npm install @ai-composer/coreimport { createAIComposer } from '@ai-composer/core';
const editor = createAIComposer({
mode: 'chat',
placeholder: 'Ask anything…',
});
editor.insertText('Hello');
const message = editor.serialize('text');
editor.destroy();Documentation
- Core engine API reference
- Document and serialization API
- Plugins, commands, and events
- Quick start and live examples
Source: GitHub
