ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
    IntroductionLocal DevelopmentUpdating VersionsNode Modules & Customization
    Configuration
    Writing
    OpenAPI
    Authentication
    Integrations
    Guides
      Static FilesEnvironment VariablesCustom pagesMermaid DiagramsMultiple APIsNavigation RulesRedirectsTransforming Operation ExamplesSchema ProcessorsCustom API IdentitiesCreate API Key on AuthDocumenting MCP ServersExample: Rick and Morty API
    Extending
    Components
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
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:

    zudoku.build.ts
    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 May 29, 2026
Custom pagesMultiple APIs
On this page
  • Client-Side Rendering
  • Build-Time Rendering
React
React
React