Giter VIP home page Giter VIP logo

Architecture as a code

Visualize, collaborate, and evolve the software architecture with always actual and live diagrams from your code

docs | playground | demo

vscode extension

What is LikeC4? Why "like"?

LikeC4 is a modeling language for describing software architecture and tools to generate diagrams from the model.

LikeC4 is inspired by C4 Model and Structurizr DSL, but provides some flexibility. You customize or define your own notation, element types, and any number of nested levels in architecture model.
Perfectly tailored to your needs.

What does LikeC4 look like?

LikeC4 source:

Run CLI to preview:

npx likec4 start

And result:

Template repository - likec4/template
Deployed - https://template.likec4.dev

Open in StackBlitz

StackBlitz does not support extensions, so no validation, syntax highlighting and etc.
You can try with github.dev and suggested extension.

Check the Tutorial - a bit better overview of LikeC4.

About this repository

Top-level layout

This repository's contents is divided across four primary sections:

  • /docs contains the content for our docs site at likec4.dev
  • /examples our local development / examples project
  • /integration integration tests (not yet implemented)
  • /packages contains the source for packages

Packages

  • core: model and type definitions
  • create-likec4: scaffolding tool
  • diagrams: react components rendering diagrams
  • generators: LikeC4 -> Other formats
  • graph: Operations over architecture model, like compute views
  • language-server: parser and language server
  • layouts: layout algorithms for views
  • likec4: CLI, published to npm as likec4
  • tsconfig: typescript configuration
  • vscode: vscode extension
  • vscode-preview: preview panel in vscode extension

Local development

Development tasks:

  • yarn typecheck: TypeScript compilation
  • yarn build: Build packages
  • yarn test: Test packages
  • yarn vitest:ui: Opens Vitest UI

For VSCode:

  • Task Run Extension to start a new VSCode instance with the extension loaded.

License

This project is released under the MIT License

LikeC4's Projects

actions icon actions

A Github Action for various operations and automation over LikeC4 projects

likec4 icon likec4

Visualize, collaborate, and evolve the software architecture with always actual and live diagrams from your code

template icon template

Example project and template repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.