@agilewallaby/c4-model
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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")

Readme

Keywords

none

Package Sidebar

Install

npm i @agilewallaby/c4-model

Weekly Downloads

3

Version

1.0.3

License

none

Unpacked Size

63.4 kB

Total Files

35

Last publish

Collaborators

  • jimmcslim