Skip to content

Readme update with architecture diagram#6

Merged
zees-dev merged 1 commit intomainfrom
upd/architecture
Apr 4, 2025
Merged

Readme update with architecture diagram#6
zees-dev merged 1 commit intomainfrom
upd/architecture

Conversation

@zees-dev
Copy link
Copy Markdown
Contributor

@zees-dev zees-dev commented Apr 3, 2025

Diagram in readme:

flowchart TD
    subgraph "Rust Source Code"
        BC["BlessCrypto"]:::source
        BF["BlessFetch"]:::source
        BL["BlessLLM"]:::source
    end

    subgraph "Build Pipeline"
        CBP["Cargo Build Process"]:::build
        IWP["Initial Wasm Plugin (bless_plugins.wasm)"]:::build
        JI["javy init-plugin"]:::build
        JB["javy build"]:::build
        FWP["Final Wasm Plugin (bless-llm.wasm)"]:::output
        EJS["Example JS"]:::js
    end

    subgraph "Deployment"
        BROWSER["Browser Runtime"]:::deploy
        NATIVE["Native Runtime"]:::deploy
    end

    subgraph "Build Tools"
        MF["Makefile"]:::automation
        GHA["GitHub Actions (.github/workflows)"]:::automation
    end

    %% Connections: Rust Modules to Build Pipeline
    BC -->|"compile"| CBP
    BF -->|"compile"| CBP
    BL -->|"compile"| CBP

    %% Build Pipeline Flow
    CBP -->|"wasm_build"| IWP
    IWP -->|"plugin_wrap"| JI
    JI -->|"js_integration"| JB
    EJS -->|"supplies_js"| JB
    JB -->|"produce"| FWP

    %% Deployment Connections
    FWP -->|"deploy"| BROWSER
    FWP -->|"deploy"| NATIVE

    %% Build Tools Automating Build Process
    MF ---|"automates"| CBP
    GHA ---|"automates"| CBP

    %% Click Events
    click BC "https://github.com/blessnetwork/javy-bless-plugins/tree/main/src/crypto"
    click BF "https://github.com/blessnetwork/javy-bless-plugins/tree/main/src/fetch"
    click BL "https://github.com/blessnetwork/javy-bless-plugins/tree/main/src/llm"
    click EJS "https://github.com/blessnetwork/javy-bless-plugins/blob/main/examples/llm.js"
    click CBP "https://github.com/blessnetwork/javy-bless-plugins/blob/main/Cargo.toml"
    click MF "https://github.com/blessnetwork/javy-bless-plugins/tree/main/Makefile"
    click GHA "https://github.com/blessnetwork/javy-bless-plugins/tree/main/.github/workflows"

    %% Styles
    classDef source fill:#AED6F1,stroke:#1B4F72,stroke-width:2px;
    classDef build fill:#A3E4D7,stroke:#1D8348,stroke-width:2px;
    classDef output fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef deploy fill:#F5B7B1,stroke:#943126,stroke-width:2px;
    classDef automation fill:#D2B4DE,stroke:#6C3483,stroke-width:2px;
    classDef js fill:#E8DAEF,stroke:#8E44AD,stroke-width:2px;
Loading

@zees-dev zees-dev merged commit ac38726 into main Apr 4, 2025
1 check passed
@zees-dev zees-dev deleted the upd/architecture branch April 4, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants