Export Mind Map as Image
Guide for exporting mind maps as images using the built-in SCST engine from `@mind-elixir/export-mindmap`.
How do I install this agent skill?
npx skills add https://github.com/ssshooter/mind-elixir-core --skill export-mind-map-as-imageIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides documentation and code examples for exporting mind maps as images using a legitimate NPM package. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
Export Mind Map as Image
Mind Elixir exports images through the built-in SCST engine from @mind-elixir/export-mindmap. SCST is a lightweight, high-performance DOM-to-image library based on SVG <foreignObject> + Canvas, with zero third-party screenshot dependencies.
1. Installation
Install @mind-elixir/export-mindmap as a dependency.
npm install @mind-elixir/export-mindmap
2. Usage
Use the downloadImage / exportImage functions to capture the mind map nodes and download them.
import { downloadImage, exportImage } from '@mind-elixir/export-mindmap'
// Assuming `mind` is your MindElixir instance
// Download as PNG / JPEG / WEBP
await downloadImage(mind, 'png') // format: 'png' | 'jpeg' | 'webp'
// Or get the URL for preview / custom handling instead of downloading
const url = await exportImage(mind, 'png')
3. Using SCST directly
SCST is also exported from the package and can be used to screenshot any DOM element.
import { domToBlob, domToDataURL, domToObjectURL } from '@mind-elixir/export-mindmap'
const blob = await domToBlob(element, 'png', options)
const dataUrl = await domToDataURL(element, 'jpeg', options)
const objectUrl = await domToObjectURL(element, 'webp', options) // most memory-efficient for downloads
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ssshooter/mind-elixir-core/export-mind-map-as-image">View Export Mind Map as Image on skillZs</a>