Git Product home page Git Product logo

grapho's Introduction

grapho

Build Status

A copycat of gravizo.com by Go

Only support Graphviz and Plant UML now.

Graphviz Diagram

<img src='http://g.gongshw.com/g?
 digraph G {
   main -> parse -> execute;
   main -> init;
   main -> cleanup;
   execute -> make_string;
   execute -> printf
   init -> make_string;
   main -> printf;
 }
'>

Plant UML Class Diagram

<img src='http://g.gongshw.com/g?
@startuml;
class Object << general >>;
Object <|--- ArrayList;
note top of Object : In java, every class\nextends this one.;
note "This is a floating note" as N1;
note "This note is connected\nto several objects." as N2;
Object .. N2;
N2 .. ArrayList;
class Foo;
note left: On last defined class;
@enduml;
'>

Plant UML Sequnce Diagram

<img src='http://g.gongshw.com/g?
@startuml;
Alice -> Bob: Authentication Request;
alt successful case;
    Bob -> Alice: Authentication Accepted;
else some kind of failure;
    Bob -> Alice: Authentication Failure;
    group My own label;
    	Alice -> Log : Log attack start;
        loop 1000 times;
            Alice -> Bob: DNS Attack;
        end;
    	Alice -> Log : Log attack end;
    end;
else Another type of failure;
   Bob -> Alice: Please repeat;
end;
@enduml;
'>

Plant UML Use Case Diagram

<img src='http://g.gongshw.com/g?
@startuml;
:Main Admin: as Admin;
(Use the application) as (Use);
User -> (Start);
User --> (Use);
Admin ---> (Use);
note right of Admin : This is an example.;
note right of (Use);
  A note can also;
  be on several lines;
end note;
note "This note is connected\nto several objects." as N2;
(Start) .. N2;
N2 .. (Use);
@enduml;
'>

grapho's People

Contributors

gongshw avatar

Stargazers

Benjamin Saller avatar Bret Marzolf avatar  avatar

Watchers

 avatar

grapho's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.