🚀 Features
-
LikeC4 Model API
Access and traverse your architecture model programmatically using the LikeC4 Model API.import { LikeC4 } from "likec4" const likec4 = await LikeC4.fromWorkspace(`....`) // Validation errors console.log(likec4.getErrors()) // Traverse the model const model = likec4.model() model .element('cloud.backend.api') .incoming() // relationships incoming to the element .filter(r => r.tags.includes('http')) // filter by tags .map(r => r.source) // get source elements // Layouted views const diagrams = await likec4.diagrams()
-
Custom colors
specification { color custom #6BD731 element customer { notation "Person, Customer" style { shape person color custom } } }
Thanks to @pavelpykhtin , resolves #916