Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

plantuml

> 编程语言
Open source

Generate diagrams from textual description

13.2K stars0 likes1 views
WebsiteGitHub

About

Generate diagrams from textual description

[!TIP] 🧩 New! Render PlantUML diagrams directly inside GitHub with our official browser extension — No server. No tokens. No tracking. Zero permissions but clipboard.

💬 Want native PlantUML support in GitHub? Upvote and join the discussion: Support for PlantUML diagrams

[!TIP] 🤖 New! Give your AI assistant the power to render and check PlantUML diagrams with @plantuml/mcp-js — a pure Node.js MCP server. No Java. No server. Just npx @plantuml/mcp-js.

🌱 PlantUML

Generate UML diagrams from textual descriptions.

ℹ️ About

PlantUML is a component that allows you to create various UML diagrams through simple textual descriptions. From sequence diagrams to deployment diagrams and beyond, PlantUML provides an easy way to create visual representations of complex systems.

🗃️ Supported Diagram Types

  • 🧩 UML Diagrams
    • Sequence diagram
    • Use case diagram
    • Class diagram
    • Object diagram
    • Activity diagram
      • Legacy syntax
    • Component diagram
    • Deployment diagram
    • State diagram
    • Timing diagram
  • 📈 Non-UML Diagrams
    • JSON (JavaScript Object Notation) data
    • YAML (YAML Ain't Markup Language) data
    • EBNF (Extended Backus-Naur Form)
    • Regex (Regular Expression)
    • Network diagram (nwdiag)
    • Salt (Wireframe graphical interface or UI Mockups)
    • Archimate diagram
    • SDL (Specification and Description Language)
    • Ditaa diagram
    • Gantt diagram
    • Chronology diagram
    • MindMap diagram
    • WBS (Work Breakdown Structure)
    • Mathematical Notations (AsciiMath, JLaTeXMath)
    • Entity Relationship (ER) diagram
      • Information Engineering (IE) diagram
      • Entity Relationship (ER) diagram (Chen's notation)
    • Chart diagram
    • Files (files tree) diagram

📣 Additional Features

  • Hyperlinks and tooltips
  • Rich text (Creole) with emoticons, unicode, and icons
  • OpenIconic icons
  • Sprite icons

📖 Learn More

For a more detailed overview, visit PlantUML Official Website.

🛡 Security

See Security Policy and Security overview.

[!IMPORTANT] PlantUML is not affected by the log4j vulnerability.

🚀 Getting Started

Whether you're looking to use PlantUML as a standalone application or as a component in your own project, getting started is simple. Check out the official PlantUML setup guide for instructions on how to set up PlantUML on your system.

⚙️ Building from Source

To build PlantUML from source, you have two options:

  1. Using Gradle: ./gradlew jar
  2. Using Ant: ant

For prerequisites and detailed build instructions, see our BUILDING.md guide.

🌐 Building for the Browser (TeaVM)

PlantUML can be compiled to JavaScript with TeaVM to run entirely client-side in the browser, with no server required. To produce the JavaScript artifacts and use them in your own project:

bash
git clone https://github.com/plantuml/plantuml.git
cd plantuml
chmod +x ./gradlew
./gradlew clean teavm -Pfast
cp ./build/generated/teavm/js/plantuml.js $YOUR_PROJECT/plantuml.js
cp ./build/generated/teavm/js/viz-global.js $YOUR_PROJECT/viz-global.js

The -Pfast flag skips the slow parts of a regular build (tests, Javadoc, JaCoCo) so you only get the TeaVM output. The viz-global.js file provides Viz.js (Graphviz) support for diagrams that rely on Dot layout.

The teavm task also copies the PlantUML stdlib bundles and a ready-to-use index.html demo into ./build/generated/teavm/js/.

For a live example of client-side rendering, see the JavaScript PlantUML Demo.

🧱 Contributing

PlantUML is an open-source project, and we welcome contributions of all kinds. Whether you're helping us fix bugs, improve the docs, or spread the word, we appreciate your support. See our contributing guide for more information on how to get started.

The language guide on plantuml.com is updated through alphadoc. Edit a page there (pick a language and wiki syntax), save, and maintainers publish it after review. Details are in CONTRIBUTING.md.

For comprehensive and detailed documentation on using PlantUML, refer to the official Javadoc, available here. Please note that this documentation is a work in progress and may not be complete.

🧑‍🤝‍🧑 Support and Community

  • GitHub issues
  • Community Forum

📃 License

PlantUML is licensed under several licenses; you can choose the one that suits you best:

  • GPL license
  • LGPL license
  • Apache license
  • Eclipse Public license
  • MIT license

For more information, please refer to the PlantUML license FAQ to help determine which license is appropriate for your use case.

Issues· 587 open

View all issuesOpen on GitHub
  • #2870

    [TeaVM] Folder to put all `stdlib`

    enhancementjsplantumlUpdated Sep 27, 2026
  • #2907

    [js-plantuml] Improve `js-plantuml` editor (to be similar to `editor.plantuml.com`)

    enhancementgood first issuejavascriptjsplantumlfor-claudeUpdated Sep 27, 2026
  • #2888

    [State] Transition from a nested state to its enclosing superstate does not touch the superstate border

    triagefor-claudeUpdated Sep 27, 2026
  • #2632

    [Chart] Wanted features

    enhancementgood first issueUpdated Sep 25, 2026
  • #2355

    How can I use <style> to set a linetype

    triageUpdated Sep 18, 2026
  • #2896

    Allow import with zip input on v1.2026.0 to v1.2026.8

    triageUpdated Sep 18, 2026
  • #2892

    [Alpha-doc] Request for some modifications

    documentationongoingUpdated Sep 17, 2026
  • #2119

    Support horziontal diagram in activity-diagram-beta new syntax.

    enhancementUpdated Sep 11, 2026
  • #2622

    Cannot add padding through CSS

    triageongoingfor-claudeUpdated Sep 7, 2026
  • #2845

    ArchiMate junction colours are flipped in the documentation example

    documentationUpdated Sep 2, 2026

> Tags

Javadiagramdiagram-as-codediagramsdiagrams-as-code

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言