# borkdominik/biger architecture

> Architecture diagram of the GitHub repository borkdominik/biger, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/borkdominik/biger
- Repository: https://github.com/borkdominik/biger

## Overview

##### Project Overview and Main Components
- The project is an open-source ER modeling tool for Visual Studio Code that supports both textual and graphical editing. It is built as a hybrid modeling solution using the Language Server Protocol (LSP). The core components include:
a. The VS Code extension (client side) which contains two main parts:
- The “extension” directory, which houses the client commands, language configurations, and integration code for VS Code.

##### Detailed Structure and Interactions
- Client Side (VS Code Integration):
- Server Side (Language Server):
- This module (in the “language-server” directory) is built using Java/Gradle and contains several submodules. One segment (under org.big.erd.ide) focuses on IDE integration, offering code actions, hover support, and validation.

##### Architectural Patterns and Key Principles
- Hybrid Architecture: The design distinguishes clearly between the client (extension and webview) and the server (language server) layers.

##### Final Checklist
- Relevant frameworks (Xtext, Xtend, Sprotty, LSP protocol) within or near the respective components.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Layer"
        ext["VS Code Extension"]
        web["Diagram Webview"]
    end

    subgraph "Server Layer"
        ls["Language Server / ER Model Processor"]
        lf["Language Features"]
        dg["Diagram Generation"]
        cg["Code Generation Modules"]
    end

    ext -->|"LSP Communication"| ls
    ext -->|"Command Trigger"| ls
    ls -->|"Diagram Update"| web

    ls --> lf
    ls --> dg
    ls --> cg

    click ext "https://github.com/borkdominik/biger/tree/main/extension/"
    click web "https://github.com/borkdominik/biger/tree/main/webview/"
    click ls "https://github.com/borkdominik/biger/tree/main/language-server/"
    click cg "https://github.com/borkdominik/biger/tree/main/language-server/org.big.erd/src/main/java/org/big/erd/generator"

    class ext,web client
    class ls,lf,dg,cg server

    classDef client fill:#AED6F1,stroke:#2471A3,stroke-width:2px;
    classDef server fill:#ABEBC6,stroke:#229954,stroke-width:2px;
```
