@gui-chat-plugin/mulmocast
v0.0.3
Published
Mulmocast presentation plugin for GUI Chat applications
Readme
@gui-chat-plugin/mulmocast
Mulmocast presentation plugin for GUI Chat applications. Create presentations with AI-generated images and optional video output.
Features
- Create presentations from MulmoScript
- AI-powered image generation for each beat
- Video generation support (requires server-side implementation)
- MulmoViewer integration for playback
- Download MulmoScript and generated videos
- Inline script editing
Installation
yarn add @gui-chat-plugin/mulmocastUsage
Vue Integration
// In src/tools/index.ts
import MulmocastPlugin from "@gui-chat-plugin/mulmocast/vue";
const pluginList = [
// ... other plugins
MulmocastPlugin,
];
// In src/main.ts
import "@gui-chat-plugin/mulmocast/style.css";Core-only Usage
import { executeMulmocast, TOOL_DEFINITION } from "@gui-chat-plugin/mulmocast";
// Create a presentation
const result = await executeMulmocast(context, {
title: "Introduction to AI",
lang: "en",
beats: [
{
text: "Welcome to this presentation about artificial intelligence.",
imagePrompt: "A futuristic AI robot in a modern office",
},
{
text: "Let's explore how AI is transforming our world.",
},
],
});API
MulmocastArgs
interface MulmocastArgs {
title: string;
lang: string;
beats: MulmocastBeat[];
}
interface MulmocastBeat {
text: string; // Text spoken by presenter
imagePrompt?: string; // Optional image generation prompt
}MulmocastToolData
interface MulmocastToolData {
mulmoScript: MulmoScript;
images?: Record<string, string>;
moviePath?: string;
viewerJsonPath?: string;
}Requirements
This plugin requires:
mulmocastnpm package for MulmoScript typesmulmocast-viewernpm package for playback- Host application to provide
generateImageWithBackendfunction - Optional: Server endpoints for video generation (
/api/generate-movie,/api/viewer-json,/api/download-movie)
Development
# Install dependencies
yarn install
# Run demo
yarn dev
# Build
yarn build
# Lint
yarn lintTest Prompts
Try these prompts to test the plugin:
- "Create a short presentation about the history of the internet with 3 slides"
- "Make a presentation explaining how photosynthesis works"
- "Generate a presentation introducing the solar system to children"
License
MIT
