omp packages

@adexaja/pi-extra-mermaid0.0.4

Render Mermaid diagrams as inline images in Pi conversations.

adexaja Published 9 hours ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@adexaja/pi-extra-mermaid

Render Mermaid diagrams as inline images in the conversation.

Install

pi install npm:@adexaja/pi-extra-mermaid

Usage

Ask Pi to create and show a Mermaid diagram; the render_mermaid tool returns the image inline in the conversation. You can also run /mermaid in the interactive TUI to enter Mermaid source, or /mermaid path/to/diagram.mmd to open a rendered file.

Requirements

Mermaid CLI (@mermaid-js/mermaid-cli) uses Puppeteer to render diagrams. Install a Puppeteer browser, or set PUPPETEER_EXECUTABLE_PATH to a Chrome/Chromium executable. The /mermaid command requires Pi's interactive TUI.