bra1nDump / show-me-chatgpt-plugin

Create and edit diagrams in ChatGPT
https://showme.redstarplugin.com
674 stars 71 forks source link

feat: add support for more diagrams #10

Closed oscaramos closed 1 year ago

oscaramos commented 1 year ago

Related to #3

Description

This pull request enhances the functionality of the project by enabling the use of all languages supported by Kroki. While I observed that certain languages outperform others, I have instructed the model to prioritize the use of the mermaid language.

I have refactored the codebase to facilitate the addition of language-related functions for the newly supported languages in Kroki. Functions like diagram formatting, obtaining the editor link, and validating syntax.

In my opinion, most of the times, the diagrams look great even without prompt engineering them for each language.

Examples

Show me how a food critic can interact with a restaurant using plantuml

image

Illustrate a sequence diagram of an HTTP request and response involving a user, browser, and a server. Use plantuml.

image

Draw me a family tree of 3 generations, one child at the bottom and many grandparents at the top. Use the most popular names in the world, use graphviz.

image

Make a linked list of prime numbers from 5 to 29 with blockdiag and make each node a different color like a rainbow

image

Draw ascii art of three persons with names above their heads using svgbob

image

Create a database diagram of social media like twitter with 4 tables using dbml

image

bra1nDump commented 1 year ago

🙌🙌