npm likec4 1.9.0
v1.9.0

latest releases: 1.40.0, 1.39.5, 1.39.4...
12 months ago

🚀 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()

    Documentation

  • Custom colors

    specification {
      color custom #6BD731
    
      element customer {
        notation "Person, Customer"
        style {
          shape person
          color custom
        }
      }
    }

    Thanks to @pavelpykhtin , resolves #916

Bug Fixes

  • vite-plugin: fail-safe virtual:likec4/overview-graph (ed85e5f), closes #959

Don't miss a new likec4 release

NewReleases is sending notifications on new releases.