ZuploZuplo
LoginStart for Free
  • Documentation
  • API Reference
Getting Started
Concepts
API Management
AI Gateway
MCP Gateway
MCP Server
Developer Portal
    Overview
    Getting Started
      Updating VersionsNode Modules & CustomizationZuplo Branding
      Configuration
      Writing
      OpenAPI
      Authentication
      Integrations
      Guides
        Static FilesEnvironment VariablesCustom pagesMermaid DiagramsMultiple APIsNavigation RulesRedirectsTransforming Operation ExamplesSchema ProcessorsCustom API IdentitiesCreate API Key on AuthDocumenting MCP ServersServer-Side RenderingExample: Rick and Morty API
      Extending
      Components
    Development
    Deploying & Source Control
    Analytics
    Observability
    Networking & Infrastructure
    Account Management
    Programming API
    Build with AI
    Zuplo CLI
    Migration Guides
    Platform LimitsVersion Support PolicySecuritySupportTrust & ComplianceChangelog
    powered by Zuplo
    Guides

    Mermaid Diagrams

    Dev Portal supports rendering Mermaid diagrams in two ways:

    ApproachProsCons
    Build-Time (rehype-mermaid)• Faster page loads
    • No client-side JS needed
    • SEO friendly
    • Requires playwright
    • Slower builds
    • Static only
    Client-Side (<Mermaid />)• Fast builds
    • Can be dynamic
    • No build dependencies
    • Requires client-side JS
    • Slight render delay

    Client-Side Rendering

    For the <Mermaid /> component, install the peer dependency:

    TerminalCode
    npm install mermaid

    Then use in your MDX files (no import needed):

    Code
    <Mermaid chart={`graph TD; A-->B; A-->C;`} />

    Outside of MDX, import from zudoku/mermaid:

    Code
    import { Mermaid } from "zudoku/mermaid";

    See the Mermaid component documentation for full details.

    Build-Time Rendering

    1. Install dependencies:

      TerminalCode
      npm install rehype-mermaid npm install -D playwright npx playwright install
    2. Add to zudoku.build.ts:

      Code
      import rehypeMermaid from "rehype-mermaid"; export default { rehypePlugins: (plugins) => [[rehypeMermaid, { strategy: "inline-svg" }], ...plugins], };
    3. Use in markdown with code blocks:

      MDXCode
      ```mermaid graph TD; A-->B; ```
    Edit this page
    Last modified on October 1, 2026
    Custom pagesMultiple APIs
    On this page
    • Client-Side Rendering
    • Build-Time Rendering
      • Install dependencies:
      • Add to zudoku.build.ts:
      • Use in markdown with code blocks:
    React
    React
    React