datlechin/flarum-mermaid

Render Mermaid diagrams in Flarum posts.

Maintainers

Package info

github.com/datlechin/flarum-mermaid

Homepage

Forum

Language:TypeScript

Type:flarum-extension

pkg:composer/datlechin/flarum-mermaid

Transparency log

Statistics

Installs: 407

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

v1.1.0 2026-07-13 15:06 UTC

This package is auto-updated.

Last update: 2026-07-25 14:32:34 UTC


README

License Latest Stable Version Total Downloads Sponsor

A Flarum extension that renders Mermaid diagrams inside posts.

Mermaid diagram rendered inside a Flarum post

Example

```mermaid
flowchart LR
    A[User clicks login] --> B{Has passkey?}
    B -- yes --> C[Verify with WebAuthn]
    B -- no --> D[Password form]
    C --> E[Signed in]
    D --> E
```

Settings

Diagrams match your forum out of the box. They use the font your forum uses for post text, take their colours from your forum, and follow light and dark mode as the reader switches. Two settings change that:

Setting Default Description
Diagram theme Match forum theme Takes the diagram colours from your forum. Mermaid's own themes (default, dark, neutral, forest) can be picked instead.
Font family (empty) Any CSS font stack, such as "Inter", system-ui, sans-serif. Leave empty to use the forum's post font.

Installation

composer require datlechin/flarum-mermaid:"*"

Updating

composer update datlechin/flarum-mermaid:"*"
php flarum cache:clear

Sponsors

If this extension is useful to you, you can sponsor the work via GitHub Sponsors or Buy Me a Coffee.

Links