Skip to content

[4.0]docs: replace architecture PNG with inline Mermaid diagram; update for 4.0 - #25475

Merged
antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:docs-architecture-mermaid
Jul 21, 2026
Merged

antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:docs-architecture-mermaid

Conversation

@antobinary

@antobinary antobinary commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

What

Replaces the high-level architecture diagram on the Architecture page
(docs/development/architecture.md) — previously a raster PNG exported from
diagrams.net — with an inline mermaid flowchart, then refreshes the topology
to reflect BigBlueButton 4.0 (the old PNG still depicted the earlier
"3.1"/3.x layout).

Also adds a short Diagrams section to docs/README.md documenting the
convention: inline Mermaid preferred; exported image (editable source + PNG
under one basename) for complex/hand-placed diagrams.

Reviewable in two commits:

  1. docs: replace architecture PNG with inline Mermaid diagram — the faithful
    1:1 PNG→Mermaid conversion (plus the README Diagrams note).
  2. docs: update architecture diagram for BigBlueButton 4.0 — the 4.0
    topology changes to that diagram.

4.0 topology updates (commit 2)

  • MongoDB removed — fully decommissioned in 4.0; bbb-html5 is now a
    static client fed by GraphQL → Hasura → PostgreSQL.
  • LiveKit is the default media server — adds LiveKit server
    (audio/video/screenshare) and LiveKit SIP (dial-in); bbb-webrtc-sfu is
    relabelled as the media controller (LiveKit token/webhook handling).
  • mediasoup / FreeSWITCH / akka-fsesl demoted to the alternative media
    bridge (opt-in via bridge config).
  • BlockNote is the default shared-notes editor — adds the new
    bbb-shared-notes-server (Hocuspocus/Yjs) and its separate blocknote_app
    Postgres store; Etherpad + bbb-pads kept but marked alternative.

Legend: blue = new/default in 4.0; grey-dashed = alternative/opt-in path.

Why

  • Diffable — a node/edge change is a one-line edit reviewable in the PR,
    not an opaque ~195 KB binary.
  • No round-trip — edit in place; no diagrams.net + re-export step.
  • Theme-aware — follows the docs site's light/dark theme.
  • Zero config — Mermaid is already enabled site-wide (markdown.mermaid +
    @docusaurus/theme-mermaid), and diagrams already ship in docs/plugins.md.

Notes

  • BBB30arch.drawio + BBB30arch.drawio.png are intentionally left in place:
    the 3.0 docs version still references the PNG, and the deployed multi-version
    site serves it from develop's global static/. The file can be removed
    later, once every built version that references it has been converted.
  • The 4.0 topology was derived from source + packaging (bbb-web properties,
    html5 bridge config, akka handlers, the in-tree bbb-shared-notes-server,
    bbb-livekit packaging). A few edge-level details for bbb-webrtc-sfu /
    bbb-webrtc-recorder (fetched at build time, not in-tree) were deliberately
    kept out of the diagram to avoid overstating.
  • Mermaid's auto-layout differs from the hand-placed drawio.

How to verify

cd docs && npm ci && npx docusaurus start, then open /development/architecture.

bbb40-architecture

antobinary and others added 2 commits July 20, 2026 20:13
Convert the high-level architecture diagram in
docs/development/architecture.md from a raster drawio PNG export
(BBB30arch.drawio.png) to an inline ```mermaid flowchart, transcribed
1:1 from the BBB30arch.drawio source (26 nodes, 36 edges). The diagram
is now diffable in review, follows the site's light/dark theme, and is
editable in place without a diagrams.net round-trip.

Also document the diagram conventions in docs/README.md: inline Mermaid
preferred, exported image (source + PNG under one basename) for complex
hand-placed diagrams.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Refresh the (now inline) Mermaid architecture diagram to match 4.0:

- Remove MongoDB (fully decommissioned; bbb-html5 is a static client fed
  by GraphQL/Hasura/PostgreSQL).
- Add LiveKit server + LiveKit SIP as the default media path
  (audio/video/screenshare + dial-in); relabel bbb-webrtc-sfu as the
  media controller and mark mediasoup/FreeSWITCH/akka-fsesl as the
  alternative bridge.
- Add BlockNote shared notes (new bbb-shared-notes-server, Hocuspocus/Yjs
  and its blocknote_app store) as the default; mark bbb-pads/Etherpad as
  the alternative editor.

Blue = new/default in 4.0; grey-dashed = alternative/opt-in path.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@antobinary antobinary added this to the Release 4.0 milestone Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Documentation now explains how to add inline Mermaid diagrams or exported image assets, including file conventions and missing-image behavior. The architecture documentation replaces its static image with an inline Mermaid flowchart covering proxies, application and data flows, media and notes backends, presentation conversion, recording, Redis consumers, and diagram styling.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: prlanzarin

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: replacing the architecture PNG with an inline Mermaid diagram and updating it for 4.0.
Description check ✅ Passed The description is directly related to the changeset and accurately explains the diagram conversion, documentation update, and 4.0 topology changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/docs/development/architecture.md`:
- Line 86: Update the blocknotedb diagram node label to explicitly identify
PostgreSQL alongside Yjs docs, preserving the existing blocknote_app label and
formatting.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c6322e7d-ec7a-4a12-a461-73d5ee0d6b2a

📥 Commits

Reviewing files that changed from the base of the PR and between 00b1831 and 7408d63.

📒 Files selected for processing (2)
  • docs/README.md
  • docs/docs/development/architecture.md


%% ── Shared notes: BlockNote (default) ────────────────
sharednotes["bbb-shared-notes-server<br/>(Hocuspocus / Yjs)"]:::neo
blocknotedb[("blocknote_app<br/>(Yjs docs)")]:::neo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Identify the BlockNote datastore as PostgreSQL.

The diagram labels this node only as blocknote_app (Yjs docs), so it does not communicate the separate PostgreSQL store described by the PR objective. Update the label to include PostgreSQL, for example blocknote_app<br/>(PostgreSQL / Yjs docs).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/docs/development/architecture.md` at line 86, Update the blocknotedb
diagram node label to explicitly identify PostgreSQL alongside Yjs docs,
preserving the existing blocknote_app label and formatting.

@antobinary
antobinary merged commit 098f23e into bigbluebutton:v4.0.x-develop Jul 21, 2026
7 checks passed
@antobinary
antobinary deleted the docs-architecture-mermaid branch July 21, 2026 19:12
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