2025-12-20 12:34:49 +08:00
# Smart Mind Map - Mind Mapping Generation Plugin
Smart Mind Map is a powerful OpenWebUI action plugin that intelligently analyzes long-form text content and automatically generates interactive mind maps, helping users structure and visualize knowledge.
2026-02-21 17:50:44 +08:00
**Author:** [Fu-Jie ](https://github.com/Fu-Jie ) | **Version: ** 1.0.0 | **Project: ** [OpenWebUI Extensions ](https://github.com/Fu-Jie/openwebui-extensions ) | **License: ** MIT
2025-12-20 12:34:49 +08:00
2026-02-21 17:50:44 +08:00
## What's New in v1.0.0
2026-01-06 21:39:42 +08:00
2026-02-21 17:50:44 +08:00
### Direct Embed & UI Refinements
2026-01-06 21:39:42 +08:00
2026-02-21 17:50:44 +08:00
- **Native Multi-language UI (i18n)**: The plugin interface (buttons, settings, status) now automatically adapts to your browser's language setting for a seamless global experience.
- **Direct Embed Mode**: Introduced a native-like inline display mode for Open WebUI 0.8.0+, enabling a seamless full-width canvas.
- **Adaptive Auto-Sizing**: Mind map now dynamically scales its height and perfectly refits to the window to eliminate scrollbar artifacts.
- **Subdued & Compact UI**: Completely redesigned the header tooling bar to a slender, single-line configuration to maximize visual rendering space.
- **Configurable Experience**: Added `ENABLE_DIRECT_EMBED_MODE` valve to explicitly toggle the new inline rendering behavior.
2026-01-06 21:39:42 +08:00
2026-01-17 16:26:43 +08:00
## Key Features 🔑
2025-12-20 12:34:49 +08:00
2026-01-17 16:26:43 +08:00
- ✅ **Intelligent Text Analysis ** : Automatically identifies core themes, key concepts, and hierarchical structures.
2026-02-21 17:50:44 +08:00
- ✅ **Native Multi-language UI ** : Automatic interface translation (i18n) based on system language for a native feel.
2026-01-17 16:26:43 +08:00
- ✅ **Interactive Visualization ** : Generates beautiful interactive mind maps based on Markmap.js.
2026-02-21 17:50:44 +08:00
- ✅ **Direct Embed Mode ** : (Optional) For Open WebUI 0.8.0+, render natively inline to fill entire UI width.
2026-01-17 16:26:43 +08:00
- ✅ **High-Resolution PNG Export ** : Export mind maps as high-quality PNG images (9x scale).
2026-02-21 17:50:44 +08:00
- ✅ **Complete Control Panel ** : Zoom controls, expand level selection, and fullscreen mode within a compact toolbar.
2026-01-17 16:26:43 +08:00
- ✅ **Theme Switching ** : Manual theme toggle button with automatic theme detection.
- ✅ **Image Output Mode ** : Generate static SVG images embedded directly in Markdown for cleaner history.
2025-12-20 12:34:49 +08:00
2026-01-17 16:26:43 +08:00
## How to Use 🛠️
2025-12-20 12:34:49 +08:00
2026-01-17 16:26:43 +08:00
1. **Install ** : Upload the `smart_mind_map.py` file in OpenWebUI Admin Settings -> Plugins -> Actions.
2. **Configure ** : Ensure you have an LLM model configured (e.g., `gemini-2.5-flash` ).
3. **Trigger ** : Enable the "Smart Mind Map" action in chat settings and send text (at least 100 characters).
4. **Result ** : The mind map will be rendered directly in the chat interface.
2025-12-20 12:34:49 +08:00
2026-01-17 16:26:43 +08:00
## Configuration (Valves) ⚙️
2025-12-20 12:34:49 +08:00
| Parameter | Default | Description |
| :--- | :--- | :--- |
2026-01-17 16:26:43 +08:00
| `show_status` | `true` | Whether to display operation status updates. |
| `LLM_MODEL_ID` | `gemini-2.5-flash` | LLM model ID for text analysis. |
| `MIN_TEXT_LENGTH` | `100` | Minimum text length required for analysis. |
| `CLEAR_PREVIOUS_HTML` | `false` | Whether to clear previous plugin-generated HTML content. |
| `MESSAGE_COUNT` | `1` | Number of recent messages to use for generation (1-5). |
| `OUTPUT_MODE` | `html` | Output mode: `html` (interactive) or `image` (static). |
2026-02-21 17:50:44 +08:00
| `ENABLE_DIRECT_EMBED_MODE` | `false` | Enable Direct Embed Mode (Open WebUI 0.8.0+ native layout) instead of Legacy Mode. |
2025-12-20 12:34:49 +08:00
2026-01-29 03:22:21 +08:00
## ⭐ Support
2026-02-13 03:31:06 +00:00
If this plugin has been useful, a star on [OpenWebUI Extensions ](https://github.com/Fu-Jie/openwebui-extensions ) is a big motivation for me. Thank you for the support.
2026-01-29 03:22:21 +08:00
2026-01-17 16:26:43 +08:00
## Troubleshooting ❓
2025-12-20 12:34:49 +08:00
2026-01-17 16:26:43 +08:00
- **Plugin not working?**: Check if the action is enabled in the chat settings.
- **Text too short**: Ensure input text contains at least 100 characters.
- **Rendering failed**: Check browser console for errors related to Markmap.js or D3.js.
2026-02-13 03:31:06 +00:00
- **Submit an Issue**: If you encounter any problems, please submit an issue on GitHub: [OpenWebUI Extensions Issues ](https://github.com/Fu-Jie/openwebui-extensions/issues )
2025-12-20 12:34:49 +08:00
---
## Technical Architecture
2026-01-17 16:26:43 +08:00
- **Markmap.js**: Open-source mind mapping rendering engine.
- **PNG Export**: 9x scale factor for print-quality output (~1-2MB file size).
- **Theme Detection**: 4-level priority detection (Manual > Meta > Class > System).
- **Security**: XSS protection and input validation.
2025-12-20 12:34:49 +08:00
## Best Practices
2026-01-17 16:26:43 +08:00
1. **Text Preparation ** : Provide text with clear structure and distinct hierarchies.
2. **Model Selection ** : Use fast models like `gemini-2.5-flash` for daily use.
3. **Export Quality ** : Use PNG for presentations and SVG for further editing.
2026-01-29 03:22:21 +08:00
## Changelog
2026-02-13 03:31:06 +00:00
See the full history on GitHub: [OpenWebUI Extensions ](https://github.com/Fu-Jie/openwebui-extensions )