# rowyio/buildship architecture

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

- Interactive diagram: https://gitdiagram.com/rowyio/buildship
- Repository: https://github.com/rowyio/buildship

## Overview

##### Project Type and Purpose
- The README tells us that BuildShip is a low-code visual backend builder. Its purpose is to enable users to create scalable APIs, scheduled jobs, and backend workflows. It’s built to support integration with various third-party apps and services (such as GitHub, Framer, Webflow, and WordPress) and gives dedicated control to deploy workflows on user-specific cloud environments.
- The project is open-source, currently in a “work-in-progress” state, and includes cloneable templates, nodes, and workflow examples (i.e., “nodes” here are modular backend pieces).

##### Key Observations from the File Tree
- The top-level directories include:
– framer: Contains HTML files (e.g., chat-button-with-style.html) which might serve as UI widgets or demos.
– integration: Has subdirectories for integrations (e.g., GitHub) with further subdivisions (e.g., octo-kit-add-label and octo-kit-clone-repo) that include TypeScript and configuration files. These represent example integrations or connectors.
– snippets: Shows example snippets tailored for specific platforms (like Framer), providing a way for users to copy and insert pre-built code blocks.
– utilities: Provides helper functions or microservices (such as API calls), indicating reusable utility modules.
– webflow & wordpress: Contain specific integration files including HTML/JS for demo or connector purposes.
- The structure indicates that the project is organized into components that serve as distinct integrations or code samples for various front-end/back-end workflows.

##### Main Components
a. BuildShip Platform Core:
– This is the central engine that provides the visual builder for constructing backend workflows. It’s responsible for handling the orchestration of jobs, API calls, and scheduling.
b. Connector/Integration Modules:
– GitHub Subsystem: Represent the GitHub integration nodes (e.g., "octo-kit-add-label," "octo-kit-clone-repo") as individual microservices/components that connect to GitHub’s API.
– Framer, Webflow, and WordPress: These integration directories hint at pre-built widgets and code snippets. They should be represented as specialized connectors or UI integration modules designed for specific platforms.
c. Snippets:
– List the snippets directory (particularly under Framer) as a collection of reusable low-code/JavaScript/JSX examples intended to be used within various front-end frameworks.
d. Utilities:
– Illustrate utilities (like API call modules) as helper services providing core functionalities to the workflow, such as making external HTTP requests.
e. External Systems and Cloud Infrastructure:
– Show that the BuildShip backend connects with external databases, third-party APIs, and cloud-hosted resources (as mentioned in the README regarding cloud deployment and dedicated tenant projects).

##### Relationships and Interactions Between Components
- That snippets and utilities support and enhance the functionality of these integrations by handling tasks like API calls or custom widget behavior.
- Bidirectional data flows where necessary, for example:
- The Core dispatches workflows to external APIs.
- Integration modules send data or trigger workflows based on external events.

##### Architectural Patterns and Key Technologies
- Modular/microservices approach. Each integration (GitHub, Framer, etc.) can be seen as loosely coupled components that can be independently updated.
- “node” or “connector” pattern that the backend adopts, where each node corresponds to backend tasks or integrations.
- Use of TypeScript (and in some cases, plain JavaScript/JSX for snippets) and build/deployment scripts within configuration files, indicating a mix of modern web technologies and scripting.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% BuildShip Platform Core
    subgraph "BuildShip Platform"
        Core("BuildShip Core Engine"):::core
    end

    %% Integration Modules
    subgraph "Integrations"
        Ghal("GitHub Integration - Add Label"):::integration
        Ghcr("GitHub Integration - Clone Repo"):::integration
        FUI("Framer UI Widgets"):::integration
        WF("Webflow Integration"):::integration
        WP("WordPress Integration"):::integration
    end

    %% Support Modules
    subgraph "Support Modules"
        FSnip("Framer Snippets"):::snippet
        APIUtil("API Utility Service"):::utility
    end

    %% External Systems
    subgraph "External Systems"
        External("External Services/Cloud APIs"):::external
    end

    %% Connections from Core to Integrations and Support Modules
    Core -->|"dispatches"| Ghal
    Core -->|"dispatches"| Ghcr
    Core -->|"dispatches"| FUI
    Core -->|"dispatches"| WF
    Core -->|"dispatches"| WP
    Core -->|"calls"| APIUtil

    %% Support Modules connections
    FSnip -->|"enhances"| FUI
    APIUtil -->|"calls"| External

    %% Integrations connecting to External Systems
    Ghal -->|"integrates"| External
    Ghcr -->|"integrates"| External
    FUI -->|"integrates"| External
    WF -->|"integrates"| External
    WP -->|"integrates"| External

    %% Click Events
    click Core "https://github.com/rowyio/buildship/blob/main/README.md"
    click Ghal "https://github.com/rowyio/buildship/tree/main/integration/github/octo-kit-add-label"
    click Ghcr "https://github.com/rowyio/buildship/tree/main/integration/github/octo-kit-clone-repo"
    click FUI "https://github.com/rowyio/buildship/blob/main/framer/chat-button-with-style.html"
    click FSnip "https://github.com/rowyio/buildship/blob/main/snippets/framer/custom-framer-form-email-signup.tsx"
    click APIUtil "https://github.com/rowyio/buildship/tree/main/utilities/api-call"
    click WF "https://github.com/rowyio/buildship/tree/main/webflow"
    click WP "https://github.com/rowyio/buildship/tree/main/wordpress"

    %% Styles
    classDef core fill:#ffe6e6,stroke:#b30000,stroke-width:2px;
    classDef integration fill:#e6f9ff,stroke:#0066cc,stroke-width:2px;
    classDef snippet fill:#e6ffe6,stroke:#009933,stroke-width:2px;
    classDef utility fill:#fff0e6,stroke:#cc6600,stroke-width:2px;
    classDef external fill:#f0e6ff,stroke:#6600cc,stroke-width:2px;
```
