Skip to content

receptron/GUIChatPluginMulmocast

Repository files navigation

@gui-chat-plugin/mulmocast

npm version

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/mulmocast

Usage

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:

  • mulmocast npm package for MulmoScript types
  • mulmocast-viewer npm package for playback
  • Host application to provide generateImageWithBackend function
  • 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 lint

Test Prompts

Try these prompts to test the plugin:

  1. "Create a short presentation about the history of the internet with 3 slides"
  2. "Make a presentation explaining how photosynthesis works"
  3. "Generate a presentation introducing the solar system to children"

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors