BrightDesk Apps

Mermaid diagrams in Bubble apps

Text Diagrams (Mermaid) adds one Bubble element that turns text into a diagram in the visitor's browser. It works with typed text, database values, multiline input, or an AI reply.

Live on the Bubble plugin marketplace since 18 November 2026. Install Text Diagrams (Mermaid) from Bubble: US$29 one time, or US$5 a month. Questions: support@brightdeskapps.com.

A Bubble page with a pasted AI answer on the left and the flowchart the plugin drew from it on the right
The demo app running on Bubble: a whole AI answer pasted in, the diagram drawn beside it.

1. Install the plugin

In the Bubble editor, open Plugins, then Add plugins, then search for Text Diagrams (Mermaid) after it has been approved in the marketplace.

2. Place the element

Add the Text Diagram element to a page. You can add several diagrams on one page, and each one can use its own theme.

3. Connect the text

Set the Diagram text field to typed text, a database field, a Multiline Input value, or text from an AI/OpenAI call. The element redraws when the text changes.

4. Connect the AI answer

If the AI reply includes a Mermaid block in triple backticks, feed the whole answer to the element. It will draw just the diagram inside the fence.

5. Download and workflows

Use the Download diagram action to save PNG at 2x or SVG, with an optional file name. You can also use Diagram drawn and Diagram failed in your workflows.

New: Gantt Chart & Timeline (Text) draws Gantt charts from a pasted plan or AI answer, with no outside library.

Example request for your AI call

Reply only with a Mermaid flowchart of these steps, inside a mermaid code block: <your steps>

Fields, states, events and actions

  • Fields: Diagram text, Theme (default, neutral, dark, forest), Fit to width, Show errors, Background colour.
  • States: SVG (the drawn picture as text), Error (a readable message), Is drawn (yes or no).
  • Events: Diagram drawn, Diagram failed.
  • Action: Download diagram, as PNG (2x) or SVG, with an optional file name.

Before you install

What does it cost?

On the Bubble marketplace, it is US$29 one time or US$5 a month. Bubble handles payment.

Can I pass the whole AI answer?

Yes. If the diagram is inside a mermaid code fence, only that part is drawn and the rest of the answer is ignored. Without a fence, the whole text must be Mermaid.

Does it work on mobile?

It works in web apps in Bubble. It does not work in Bubble native mobile apps.

What about privacy?

Nothing is sent to BrightDesk. The Mermaid library is open source and loads from the jsDelivr network. The plugin has no account, sign-in or analytics.

Last updated 18 November 2026.