All Projects → capitalone → architecture-viewer

capitalone / architecture-viewer

Licence: Apache-2.0 license
Visualize your PlantUML sequence diagrams as interactive architecture diagrams!

Programming Languages

javascript
184084 projects - #8 most used programming language
Less
1899 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to architecture-viewer

Plantumlclassdiagramgenerator
This is a generator to create a class-diagram of PlantUML from the C# source code.
Stars: ✭ 213 (+273.68%)
Mutual labels:  plantuml
c4sharp
C4Sharp (C4S) is a .net library for building C4 Model diagrams.
Stars: ✭ 159 (+178.95%)
Mutual labels:  plantuml
swagger2puml
Generate Class Diagrams (UML) for Given Swagger Definition
Stars: ✭ 43 (-24.56%)
Mutual labels:  plantuml
Plantuml Icon Font Sprites
plantuml-font-icon-sprites
Stars: ✭ 242 (+324.56%)
Mutual labels:  plantuml
C4-PlantumlSkin
This library provides skinning to create C4 diagrams using PlantUml
Stars: ✭ 74 (+29.82%)
Mutual labels:  plantuml
plantuml2mysql
This utility parses PlantUML class diagram and generates SQL DDL for MySQL
Stars: ✭ 110 (+92.98%)
Mutual labels:  plantuml
Hands On Devops
A hands-on DevOps course covering the culture, methods and repeated practices of modern software development involving Packer, Vagrant, VirtualBox, Ansible, Kubernetes, K3s, MetalLB, Traefik, Docker-Compose, Docker, Taiga, GitLab, Drone CI, SonarQube, Selenium, InSpec, Alpine 3.10, Ubuntu-bionic, CentOS 7...
Stars: ✭ 196 (+243.86%)
Mutual labels:  plantuml
SysML-v2-Pilot-Implementation
Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
Stars: ✭ 55 (-3.51%)
Mutual labels:  plantuml
makeitpdf
A close-to-code documentation helper
Stars: ✭ 15 (-73.68%)
Mutual labels:  plantuml
puml2code
PlantUML code generator
Stars: ✭ 66 (+15.79%)
Mutual labels:  plantuml
Azure Plantuml
PlantUML sprites, macros, and other includes for Azure services
Stars: ✭ 247 (+333.33%)
Mutual labels:  plantuml
ecto erd
A mix task for generating Entity Relationship Diagram from Ecto schemas available in your project.
Stars: ✭ 173 (+203.51%)
Mutual labels:  plantuml
IPlantUML
A Python package which defines a PlantUML cell magic for IPython.
Stars: ✭ 85 (+49.12%)
Mutual labels:  plantuml
C4 Plantuml
C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
Stars: ✭ 3,522 (+6078.95%)
Mutual labels:  plantuml
PlantUml.Net
a .Net wrapper for PlantUml
Stars: ✭ 35 (-38.6%)
Mutual labels:  plantuml
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+243.86%)
Mutual labels:  plantuml
typeorm-uml
Generate Entity Relationship diagrams for Typeorm powered projects.
Stars: ✭ 207 (+263.16%)
Mutual labels:  plantuml
PlantUml-Language-Service
PlantUml Language Service extension for Visual Studio 2017 and 2019
Stars: ✭ 24 (-57.89%)
Mutual labels:  plantuml
plantuml
No description or website provided.
Stars: ✭ 87 (+52.63%)
Mutual labels:  plantuml
plugins
Collection of builtin GNU TeXmacs plugins
Stars: ✭ 33 (-42.11%)
Mutual labels:  plantuml

Due to changes in the priorities, this project is currently not being supported. The project is archived as of 9/17/21 and will be available in a read-only state. Please note, since archival, the project is not maintained or reviewed.

Table of Contents generated with DocToc

Architecture Diagram Web App

Start building and analyzing technical flows in seconds!

PlantUML sequence diagrams are very useful for documenting API flows. However, they can often overwhelm you with detail, which obscures the high level architecture.

The architecture-viewer converts PlantUML sequence diagrams into interactive HTML architecture diagrams, which make it easier to step through the sequence, without losing the high level context.

Demo

the application demo

The PlantUML source for this demo is here.

Usage

  1. Open a JSON or PlantUML file directly in the webpage.

  2. Launch the webpage directly with a ?url= query parameter linking to the JSON or PlantUML file to display, e.g.

https://capitalone.github.io/architecture-viewer/?url=https://raw.githubusercontent.com/capitalone/architecture-viewer/master/sample_json_data/large_web.json

The same can be done with a plantUML file, as seen here

https://capitalone.github.io/architecture-viewer/?url=https://raw.githubusercontent.com/capitalone/architecture-viewer/master/sample_plantuml_data/example.adoc

Features

  • Each node is clickable. Once clicked, a popup with details about them will appear.
  • Each step from the sequence diagram is listed in the sidebar.
  • Step through each part of the flow and see it visualized in an easy to digest graph.
  • Notes can be added to steps for clarity.

Supported File Formats

PlantUML

The architecture-viewer supports a subset of the PlantUML sequence diagrams syntax. This repository also includes this example which was used to generate the demo above.

The following PlantUML sequence diagram features are supported:

  • @startuml and @enduml to indicate diagrams
  • title << title text here >> to declare a title
  • autonumber is ignored and starts the indices at 0 (but the table of contents starts at 1)
  • participants are able to be created using the participant and actor keyword, and the following syntax is valid
    • participant A
    • participant "AAA" as A
    • participant "A"
  • stereotypes (<< (X, zone_color) zone_name >>) can be used with participants to provide colors, and to group participants into zones
    • participant A << (X, #000000) zoneA >>
    • participant "AAA" as A << (X, #000000) zoneA >>
    • participant "A" << (X, #000000) zoneA >>
  • steps
    • the following syntax for steps (and their backwards form) are supported
      • ->
      • -\
      • -/
      • ->>
      • -\\
      • -//
      • -->
      • --\\
      • --//
      • -->>
    • the following syntax for arrows is NOT supported
      • -[#red]>
  • grouping
    • The following grouping keywords are supported
      • loops
      loop [x times]
          <<steps here>>
      end
      
      • groups
      group <<text to be displayed>>
          <<steps here>>
      end
      
    • Nested loops are supported
  • notes
    • The following syntax is supported - single line notes: note [left|right]: <<text to be displayed>>
      - multiline notes

        note [left|right]
        <<text to be displayed>>
        end note
      
    • Notes over steps, and notes over participants (notes over participants translate to clickable tooltips on nodes) are supported

  • any other line included will be ignored
  • WARNING: using any other blocked feature (such as alt) may break the renderer. Make sure the .adoc file uploaded does not contain any unsupported features

To change the default diagram, edit src/assets/data.json and redeploy.

JSON

The architecture-viewer uses a custom JSON format as input. PlantUML files are converted into this format for rendering. You may also import files directly if they are in this format.

You need to define the following JSON fields:

  • title
  • graphData
  • nodes
    • id (shorthand id, ex. FBI)
    • fname (longhand name, ex. Federal Bureau of Investigation)
    • zone (optional)
    • info (optional)
  • edges
    • id
    • source
    • target
  • stepData (optional)

note: the graphData in the JSON is compatible with cytoscape

Example (JSON):

{
    "title": "some_title",
    "graphData": {
        "nodes": [
            {
                "data": {
                    "id": "s_id",
                    "fname": "some_id",
                    "zone": "#ffb2b2",
                    "info": "info about some_id"
                }
            },
            {
                "data": {
                    "id": "s_id_2",
                    "fname": "some_id_2",
                    "zone": "#b2b2ff",
                    "info": "info about some_id_2"
                }
            }
        ],
        "edges": [
            {
                "data": {
                    "id": "some_edge_id",
                    "source": "s_id",
                    "target": "s_id_2"
                }
            }
        ]
    },
    "stepData": [
        {
            "id": "0",
            "type": "single",
            "nodes": [
                "some_id",
                "some_id_2"
            ],
            "steps": [],
            "description": "an example step",
            "note": ""
        }
    ]
}

Embedding in Wikis and Webpages

You can embed the interactive architecture-viewer using an <iframe> tag, e.g.

<iframe height="600" src="https://capitalone.github.io/architecture-viewer/?url=https://github.com/raw/capitalone/architecture-viewer/master/sample_plantuml_data/example.adoc" width="100%"> </iframe>

Some content management/collaboration software (e.g. Confluence) will block external sites, so you may need to add your architecture-viewer domain to a whitelist before it will display.

Deployment (for developers)

Build Requirements

  • node (ideally v7 or later)
  • npm (if you meet the node requirements you SHOULD meet the npm requirements)

Build steps

# Install dependencies
npm install

# This will run a dev server on http://localhost:8080
npm run dev

# This will run all the tests located in __tests__/
npm run test

# This will build the app and place the built files in build/
npm run build

# This will deploy the contents of build/ to the gh-pages branch
npm run deploy

The build directory is a static website so it can be deployed to any static hosting platform.

If you need to customize the base resource paths used by this web application, you can edit the provided preact.config.js.

Contributing

We welcome Your interest in Capital One’s Open Source Projects (the “Project”). Any Contributor to the Project must accept and sign an Agreement indicating agreement to the license terms below. Except for the license granted in this Agreement to Capital One and to recipients of software distributed by Capital One, You reserve all right, title, and interest in and to Your Contributions; this Agreement does not impact Your rights to use Your own Contributions for any other purpose.

Sign the Individual Agreement

Sign the Corporate Agreement

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].