@gui-chat-plugin/html
v0.1.0
Published
Render HTML plugin for GUIChat
Readme
@gui-chat-plugin/html
A render HTML plugin for MulmoChat.
Overview
This plugin renders HTML content in an isolated iframe. It supports various libraries including Tailwind CSS, D3.js, Three.js, p5.js, and Mermaid for diagrams.
Installation
yarn add @gui-chat-plugin/htmlUsage
Vue Implementation (for MulmoChat)
// In src/tools/index.ts
import HtmlPlugin from "@gui-chat-plugin/html/vue";
const pluginList = [
// ... other plugins
HtmlPlugin,
];
// In src/main.ts
import "@gui-chat-plugin/html/style.css";Core Only (Framework-agnostic)
import { pluginCore, TOOL_NAME, HTML_LIBRARIES } from "@gui-chat-plugin/html";Package Exports
| Export | Description |
|--------|-------------|
| @gui-chat-plugin/html | Core (framework-agnostic) |
| @gui-chat-plugin/html/vue | Vue implementation |
| @gui-chat-plugin/html/style.css | Tailwind CSS styles |
Supported Libraries
tailwind- Tailwind CSS for utility-first stylingd3.js- D3.js for data-driven visualizationsthree.js- Three.js for 3D graphics and WebGLp5.js- p5.js for creative coding and generative artmermaid- Mermaid for diagrams and flowcharts
Test Prompts
- "Create a bar chart using D3.js"
- "Make a 3D rotating cube with Three.js"
- "Draw a flowchart with Mermaid showing a login process"
- "Create an animated pattern using p5.js"
Development
yarn install
yarn dev # Start dev server
yarn build # Build
yarn typecheck # Type check
yarn lint # LintLicense
MIT
