RAIA™ Specification
1.5 Portal Incumbent vs RAIA™ (Real estate Artificial Intelligence Agent) Sovereign Model (Comparison)
A side-by-side comparison of two approaches for rendering diagrams in the RAIA portal.
Option A — Inline SVG
Hand-coded vector graphics
Embedded directly in the HTML. No JS, no library, no network request. Renders at page load instantly.
~4–8KB per diagram0ms render time0 dependencies
Option B — Mermaid.js
Text-definition diagrams
Write plain text, JS library renders to SVG at load time. Self-hosted. No CDN.
~200 bytes per diagram~50ms render time1 shared JS file
Side-by-side verdict
| Criterion | SVG | Mermaid.js |
|---|---|---|
| Tokens to generate | High — AI writes pixel coordinates | Low — AI writes plain text |
| Render speed | Instant — no JS needed | ~50ms — JS renders on load |
| Works offline (Tailscale) | Yes — self-contained | Yes — JS file on our server |
| CDN dependency | None | None (self-hosted) |
| Visual quality | Full control, pixel-perfect | Good, less control over layout |
| Editable by humans | Hard — XML coordinates | Easy — plain text |
| Diagram types | Any (manual coding) | Flow, sequence, Gantt, mindmap, ERD |
| Consistency | Varies by subagent quality | Always consistent output |
| Complex swim lanes | Better control | Supported but less flexible |
Repository Code
The live codebase implementation for this textbook logic sits within the following repository folder: