/text_sequence_diagram

Cross platform tool which convert text into beautiful sequence diagram. Online version: http://echoma.github.io/text_sequence_diagram/

Primary LanguageJavaScript

Text Sequence Diagram

A cross platform tool for drawing UML sequence diagram in simple text.

Snapshot

main_ui

render_ui

Pre-built Executables

Download page: Download

Online Version

You can also goto http://echoma.github.io/text_sequence_diagram/ for an online web-app.

Features

  • Simple pure text syntax to draw beautiful sequence diagram.
  • Cross platform, given by nw.js and HTML5.
  • Adjust the diagram view size and zoom ratio as you wish.
  • You can integrate the "text to diagram" library to your own application. See example_integeration.html for an very simple example.

Syntax

  • Title and Author and so on
Title @ v1.0 @ 20160415 @ Author
Title @ @ @ Author
  • Message
From Object -> To Object : Message Content
  • Return Message
From Object --> To Object : Message Content
  • Self Message
Object : Message Content
  • Bottom Description
[ Bottom Description Line 1 ]
[ Bottom Description Line 2 ]
  • Comment
# Comment Line
# Another Comment Line
  • Example:
Conn Server -> Safe Domain GW : single order request
Safe Domain GW -> Trade Gateway : authenticated
Trade Gateway -> Logic Control : internal protocol
Logic Control --> Trade Gateway : success response
Trade Gateway --> Safe Domain GW : success response
Safe Domain GW --> Conn Server : response