Skip to content

Conversation

zmx
Copy link

@zmx zmx commented Sep 7, 2025

Description

Send Mermaid diagram to Kroki Diagram Generator https://kroki.io/

Type of change

  • [V] New script command

Screenshot

It copy Mermaid code in clipboard and send to https://kroki.io/

image

Dependencies / Requirements

No, https://kroki.io/ is a public API endpoint

Checklist

Copy link
Contributor

@grzegorzkrukowski grzegorzkrukowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - thank you for your contribution

The script doesn't work as it is:

  1. Type in mode:
    # @raycast.mode sildent
    should be:
    # @raycast.mode silent

  2. When copying samples from Kroki to PasteBoard, I am getting an error:
    No diagram type detected matching given configuration for text
    Probably something with encoding?

  3. User experience
    It would be a better user experience to check if user has python3 installed. If not thowing a readable error so users can figure out what they need to do to make this script work.
    Also checking if pbpaste is empty or not before sending it to the kroki.io would be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants