All Projects → dyatko → Arkit

dyatko / Arkit

Licence: mit
JavaScript architecture diagrams and dependency graphs

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
js
455 projects
flow
126 projects
ts
41 projects

Projects that are alternatives of or similar to Arkit

Azure Plantuml
PlantUML sprites, macros, and other includes for Azure services
Stars: ✭ 247 (-63.19%)
Mutual labels:  plantuml, architecture, uml, diagram
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 (+424.89%)
Mutual labels:  plantuml, architecture, uml, diagram
plantuml-libs
A set of PlantUML libraries and a NPM cli tool to design diagrams which focus on several technologies/approaches: Amazon Web Services (AWS), Azure, Google Cloud Platform (GCP), C4 Model or even EventStorming and more.
Stars: ✭ 75 (-88.82%)
Mutual labels:  diagram, architecture, plantuml
Asciidoctor Kroki
Asciidoctor.js extension to convert diagrams to images using Kroki!
Stars: ✭ 55 (-91.8%)
Mutual labels:  plantuml, uml, diagram
PlantUml-Language-Service
PlantUml Language Service extension for Visual Studio 2017 and 2019
Stars: ✭ 24 (-96.42%)
Mutual labels:  diagram, uml, plantuml
Umldoclet
Automatically generate PlantUML diagrams in javadoc
Stars: ✭ 138 (-79.43%)
Mutual labels:  plantuml, uml, diagram
Aws Plantuml
PlantUML sprites, macros, and other includes for AWS components.
Stars: ✭ 565 (-15.8%)
Mutual labels:  plantuml, uml, diagram
idle
parse source code(objective-c, java) generate uml(class diagram)
Stars: ✭ 44 (-93.44%)
Mutual labels:  diagram, uml, plantuml
Plantuml Icon Font Sprites
plantuml-font-icon-sprites
Stars: ✭ 242 (-63.93%)
Mutual labels:  plantuml, uml, diagram
Go Plantuml
Generate plantuml diagrams from go source files or directories
Stars: ✭ 167 (-75.11%)
Mutual labels:  generate, plantuml, diagram
C4-PlantumlSkin
This library provides skinning to create C4 diagrams using PlantUml
Stars: ✭ 74 (-88.97%)
Mutual labels:  diagram, uml, plantuml
wapiml
An OpenAPI round-trip tool that leverages model-driven techniques to create, visualize, manage, and generate OpenAPI definitions.
Stars: ✭ 61 (-90.91%)
Mutual labels:  diagram, uml
erdiagram
Entity-Relationship diagram code generator library
Stars: ✭ 28 (-95.83%)
Mutual labels:  diagram, plantuml
cloudgram
Generate diagrams for your cloud architecture using code
Stars: ✭ 68 (-89.87%)
Mutual labels:  diagram, architecture
PlantUML-colors
This script is to show all named color suggested by PlantUML
Stars: ✭ 52 (-92.25%)
Mutual labels:  uml, plantuml
dcdg.dart
Dart Class Diagram Generator
Stars: ✭ 98 (-85.39%)
Mutual labels:  uml, plantuml
bian
The Banking Industry Architecture Network e.V. (BIAN) model in Archimate 3
Stars: ✭ 48 (-92.85%)
Mutual labels:  diagram, architecture
Plantuml Editor
PlantUML online demo client
Stars: ✭ 313 (-53.35%)
Mutual labels:  plantuml, uml
fc4-framework
A Docs as Code tool that helps software creators and documentarians author software architecture diagrams using the C4 model for visualising software architecture.
Stars: ✭ 121 (-81.97%)
Mutual labels:  diagram, architecture
Jetuml
A desktop application for fast UML diagramming.
Stars: ✭ 346 (-48.44%)
Mutual labels:  uml, diagram

arkit
🇸🇪arkitektur

Arkit NPM package Download arkit Dependents Build status Test coverage Technical debt

Visualises JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams

  • Associates source files with configured architectural components
  • Renders grouped components and dependency graph including Node.js modules
  • Supports JavaScript, TypeScript and Flow source code and Vue/Nuxt
  • Exports codebase architecture visualisation as SVG, PNG or Plant UML diagram
  • Integrates into development flow, so your CI, VCS, README and PRs are happy

Usage

# Run arkit straight away
npx arkit

# Or add it to your project as a dev dependency
npm install arkit --save-dev
yarn add arkit --dev
# Run arkit against your source folder and save result as SVG
npx arkit src/ -o arkit.svg

# You can also specify source files to start from and output format
npx arkit -f src/main.js -o puml

# And get some more with debugging and file exclusions
LEVEL=info npx arkit -e "node_modules,test,dist,coverage" -o puml

⚠️ Arkit is using a web service to convert PlantUML to SVG/PNG. It's hosted at arkit.pro and does not store any data. If you want to use Arkit at work make sure this is fine with your company tools policy.

If your project is huge and first diagrams look messy, it's better to generate them per feature, architectural layer, etc.

Once you satisfied with results, add arkit command to your build script, so it will keep your architecture diagrams up-to-date.

Configuration

Arkit can be configured using basic CLI arguments or advanced JSON, JS module or package.json configuration.

Basic CLI arguments

[email protected]:~$ npx arkit --help
arkit [directory]

Options:
  -d, --directory  Working directory                              [default: "."]
  -c, --config     Config file path (json or js)         [default: "arkit.json"]
  -o, --output     Output path or type (svg, png or puml) [default: "arkit.svg"]
  -f, --first      File patterns to be first in the graph               [string]
  -e, --exclude    File patterns to exclude from the graph
        [default: "test,tests,dist,coverage,**/*.test.*,**/*.spec.*,**/*.min.*"]
  -h, --help       Show help                                           [boolean]
  -v, --version    Show version number                                 [boolean]

Advanced arkit.json with JSON schema for autocomplete and validation

{
  "$schema": "https://arkit.pro/schema.json",
  "excludePatterns": ["test/**", "tests/**", "**/*.test.*", "**/*.spec.*"],
  "components": [
    {
      "type": "Dependency",
      "patterns": ["node_modules/*"]
    },
    {
      "type": "Component",
      "patterns": ["**/*.ts", "**/*.tsx"]
    }
  ],
  "output": [
    {
      "path": "arkit.svg",
      "groups": [
        {
          "first": true,
          "components": ["Component"]
        },
        {
          "type": "Dependencies",
          "components": ["Dependency"]
        }
      ]
    }
  ]
}

See more possible JSON configuration options in the examples below

Real-world examples

Express.js using npx arkit

Express architecture graph

Arkit itself using npx arkit and config in package.json

Arkit dependency graph

ReactDOM using npx arkit and config in arkit.json

ReactDOM architecture graph

Vue/Nuxt TodoMVC using yarn arkit -o arkit.svg

Vue and Nuxt dependency graph

Contribution

The tool is under active development, so please feel free to contribute with suggestions and pull requests. Your feedback is priceless.

Relevant projects

  • Dependency cruiser validates and visualizes dependencies
  • Madge generates a visual graph of module dependencies
  • dependo visualizes CommonJS, AMD, or ES6 module dependencies
  • JSCity visualizes JavaScript source code as navigable 3D cities
  • colony in-browser graphs representing the links between your Node.js code and its dependencies
  • TsUML generates UML diagrams from TypeScript source code

Fun stats, stargazers map by worldstar

GitHub stargazer map
Give a Github star to get on the map.

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].