1.0.3 • Published 2 years ago

@agilewallaby/c4-model v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

@agilewallaby/c4-model

This is an opinionated Typescript library for generating C4 models in code, and then exporting the model to one or more supported formats for consumption by a rendering mechanism.

Currently supported output formats are:

  • Structurizr DSL: only the static views are supported, e.g. system landscape, system context, container, and component diagrams. Deployment and dynamic diagrams may be supported in the future.

Other formats that may be supported in the future:

Usage

The core of this library is the Model class. From here you can 'define' instances of SoftwareSystem and Person. They can also be defined through a Group;

import { Model } from '@agilewallaby/c4-model'

const model = new Model("myModel")
const system1 = model.defineSoftwareSystem("system1")
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago