Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

PUML Viewer

andreykolyginandreykolygin221 downloads

Renders PlantUML from .puml files and markdown code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates19

A plugin for Obsidian that renders PlantUML/Mermaid from diagram files and from markdown code blocks.

Features

  • Custom diagram file view (.puml, .mermaid, .mmd, .marmaid) with two modes:
    • View (diagram)
    • Edit (source code with line numbers)
  • Diagram toolbar actions:
    • refresh
    • zoom in / reset / zoom out
    • export buttons (SVG icons) to save as:
      • .png
      • .svg
      • .txt (ASCII Art)
  • Drag-to-pan in diagram view when content is scrollable
  • Auto-fit diagram to viewer width on render
  • Auto-refresh on source file change
  • Startup recovery: reopen and render previously opened diagram file after Obsidian restart
  • Markdown embedded rendering for fenced blocks:
    • ```plantuml
    • ```mermaid
    • switch between View Code and diagram
    • Zoom overlay with drag-to-pan and zoom controls
    • save diagram with format chooser (Save as PNG / Save as SVG)
    • optional width hint in fence: ```plantuml |500
    • width hint limits only diagram area; code view uses full available block width
  • PlantUML code coloring in embedded View Code mode
  • Works with:
    • PlantUML server
    • Kroki (https://kroki.io)
    • Local server (for example http://localhost:8000)
  • Supports both SVG and PNG

Build

npm install
npm run build

Install into Obsidian

Copy these files into:

<YourVault>/.obsidian/plugins/puml-viewer/

Files:

  • main.js
  • manifest.json
  • styles.css
  • versions.json

Then enable the plugin in Settings → Community plugins.

Usage

Open diagram files

  • Open a supported diagram file (.puml, .mermaid, .mmd, .marmaid) and run command:
    • Open current diagram file in viewer
  • Switch between View and Edit modes in the toolbar.

The dedicated viewer gives you a diagram-first workspace for standalone files, with quick switching back to the editable source when you need to adjust the markup.

PUML file opened in Obsidian viewer

Source editing stays in the same view, so you can iterate on PlantUML without leaving the file context.

PUML source code editor inside Obsidian

Markdown blocks

Basic block:

```plantuml
@startuml
Bob -> Alice: hello
@enduml
```

Mermaid block:

```mermaid
flowchart LR
  A --> B
```

Block with width hint:

```plantuml |500
@startuml
Bob -> Alice: hello
@enduml
```
  • |500 means max diagram block width in pixels.
  • In rendered block, use:
    • View Code to toggle source/diagram
    • Zoom to open fullscreen overlay
    • save icon to choose PNG or SVG

Rendered markdown blocks stay inside the note preview, which makes them usable for documentation, specs, and presentation notes without opening a separate file.

Rendered PlantUML markdown block in note preview

For larger diagrams, the fullscreen zoom overlay adds navigation controls and drag-to-pan, so dense schemes remain readable.

Fullscreen zoom overlay for PlantUML diagram

Export actions are available directly from the rendered block when you need to reuse the diagram outside Obsidian.

Diagram export options in markdown block

Settings

  • Server type: PlantUML / Kroki / Local
  • Separate URLs:
    • PlantUML URL (example: https://www.plantuml.com/plantuml)
    • Kroki URL (example: https://kroki.io)
    • Local URL (example: http://localhost:8000)
  • Kroki diagram type: PlantUML / Mermaid
    • Used as default for Kroki requests when diagram type is not explicitly implied by code block language.
  • Image format: default render format for viewer (SVG or PNG)
  • Embedded block default view: show diagram or code first
  • Embedded diagram alignment: left / center / right (default center)
    • Applied immediately in markdown preview without Obsidian restart

Disclosures

  • Network usage: plugin sends diagram source to the configured render server (PlantUML, Kroki, or Local) to generate SVG/PNG/TXT output.
  • Accounts / payments: not required.
  • Telemetry / ads: none.
  • External file access: none outside Obsidian vault APIs.
98%
HealthExcellent
ReviewPassed
About
Render PlantUML diagrams from .puml files and fenced markdown blocks. Toggle between diagram View and code Edit with line numbers, zoom, drag-to-pan, auto-fit and auto-refresh; reopen last file on startup. Export diagrams as PNG, SVG or ASCII art and connect to PlantUML, Kroki, or local servers.
VisualizationCodeExport
Details
Current version
0.2.17
Last updated
2 days ago
Created
2 months ago
Updates
19 releases
Downloads
221
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
andreykolyginandreykolygin
GitHubandreykolygin
  1. Community
  2. Plugins
  3. Visualization
  4. PUML Viewer

Related plugins

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Kroki

Render Kroki diagrams.

Mermaid View

Handle Mermaid files as first-class citizens, rendering them fullscreen when opened.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Templater

Create and use dynamic templates.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Life Tracker

Capture and visualize the data that matters in your life.

PlantUML

Generate PlantUML diagrams.

Pandoc Plugin

Commands to export to Pandoc-supported formats like DOCX, ePub and PDF.