# eliabay100-del/gebere-os architecture

> Architecture diagram of the GitHub repository eliabay100-del/gebere-os, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eliabay100-del/gebere-os
- Repository: https://github.com/eliabay100-del/gebere-os

## Overview

farmOS is a web-based farm management, planning, and record-keeping application. Users record farm entities and activities, organize them, and review or exchange that information through application features such as quick forms, maps, reports, and APIs. The tree and excerpts show a Drupal-based domain model with assets, logs, quantities, and data streams; they also show sensor ingestion and quick-form support. Some feature relationships are documented only by module names or broad README descriptions, so those are represented as separate capabilities without inferred call chains.

Main entry points: [`modules/core/asset/src/Entity/Asset.php`](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/asset/src/Entity/Asset.php) (Assets), [`modules/core/quick/src/Controller/QuickFormController.php`](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/quick/src/Controller/QuickFormController.php) (Quick forms), [`modules/quick/planting/src/Plugin/QuickForm/Planting.php`](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/planting/src/Plugin/QuickForm/Planting.php) (Planting workflow), [`modules/quick/inventory/src/Plugin/QuickForm/Inventory.php`](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/inventory/src/Plugin/QuickForm/Inventory.php) (Inventory workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Farm records"]
  node_assets[("Assets<br/>[Asset.php]")]
  node_asset_types["Asset types<br/>[FarmAssetType.php]"]
  node_groups["Asset groups"]
  node_organizations["Organizations"]
  node_logs[("Logs<br/>[AssetLogs.php]")]
  node_quantities[("Quantities<br/>[Quantity.php]")]
  node_inventory["Inventory<br/>[AssetInventory.php]"]
end

subgraph group_workflow["Workflows"]
  node_quickforms["Quick forms"]
  node_planting["Planting workflow<br/>[Planting.php]"]
  node_inventory_form["Inventory workflow<br/>[Inventory.php]"]
  node_notifications["Stream notifications"]
end

subgraph group_data["Data exchange"]
  node_data_streams[("Data streams<br/>[DataStream.php]")]
  node_sensor_api["Sensor endpoint"]
  node_api["Farm API<br/>[FarmEntryPoint.php]"]
  node_csv_import["CSV import"]
  node_csv_export["CSV export<br/>[EntityCsv.php]"]
  node_kml_export["KML export<br/>[EntityKml.php]"]
end

subgraph group_insight["Maps and insight"]
  node_map["Maps<br/>[FarmMap.php]"]
  node_reports["Reports"]
  node_views["Views integration"]
end

subgraph group_platform["Access and extensions"]
  node_access["Managed permissions"]
end

node_farmer(("Farm user"))
node_external_system(("External client"))

node_farmer -->|"uses"| node_quickforms
node_farmer -->|"records"| node_assets
node_quickforms -.->|"offers"| node_planting
node_quickforms -.->|"offers"| node_inventory_form
node_assets -->|"bundled as"| node_asset_types
node_assets -.->|"organized by"| node_groups
node_assets -.->|"tracks"| node_inventory
node_planting -->|"creates"| node_assets
node_planting -->|"generates"| node_logs
node_inventory_form -.->|"creates"| node_logs
node_inventory_form -.->|"records"| node_quantities
node_sensor_api -->|"loads"| node_assets
node_sensor_api -->|"reads and writes"| node_data_streams
node_external_system -.->|"submits readings"| node_sensor_api
node_api -.->|"exposes"| node_assets
node_csv_import -.->|"imports records"| node_assets
node_assets -.->|"exports as CSV"| node_csv_export
node_assets -.->|"exports as KML"| node_kml_export
node_assets -.->|"visualized on"| node_map
node_assets -.->|"reviewed in"| node_reports
node_assets -.->|"indexed for views"| node_views
node_data_streams -.->|"triggers"| node_notifications

click node_assets "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/asset/src/Entity/Asset.php"
click node_asset_types "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/src/Plugin/Asset/AssetType/FarmAssetType.php"
click node_groups "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/asset/group/src/GroupAssetLocation.php"
click node_organizations "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/src/OrganizationTypeManager.php"
click node_logs "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/log/src/AssetLogs.php"
click node_quantities "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/quantity/src/Entity/Quantity.php"
click node_inventory "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/inventory/src/AssetInventory.php"
click node_quickforms "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/quick/src/Controller/QuickFormController.php"
click node_planting "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/planting/src/Plugin/QuickForm/Planting.php"
click node_inventory_form "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/inventory/src/Plugin/QuickForm/Inventory.php"
click node_data_streams "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/data_stream/src/Entity/DataStream.php"
click node_sensor_api "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/asset/sensor/src/Controller/SensorDataController.php"
click node_api "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/api/src/Controller/FarmEntryPoint.php"
click node_csv_import "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/import/modules/csv/src/Controller/CsvImportController.php"
click node_csv_export "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/export/modules/csv/src/Plugin/Action/EntityCsv.php"
click node_kml_export "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/export/modules/kml/src/Plugin/Action/EntityKml.php"
click node_map "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/map/src/Element/FarmMap.php"
click node_reports "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/report/src/Controller/ReportController.php"
click node_views "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/modules/views/src/FarmEntityViewsData.php"
click node_notifications "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/data_stream/modules/notification/src/EventSubscriber/DataStreamEventSubscriber.php"
click node_access "https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/role/src/ManagedRolePermissionsManager.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_assets,node_asset_types,node_groups,node_organizations,node_logs,node_quantities,node_inventory,node_farmer,node_external_system toneBlue
class node_quickforms,node_planting,node_inventory_form,node_notifications toneAmber
class node_data_streams,node_sensor_api,node_api,node_csv_import,node_csv_export,node_kml_export toneMint
class node_map,node_reports,node_views toneRose
class node_access toneIndigo
```

## Components

### Farm records

- [Assets](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/asset/src/Entity/Asset.php): `modules/core/asset/src/Entity/Asset.php`
- [Asset types](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/src/Plugin/Asset/AssetType/FarmAssetType.php): `modules/core/entity/src/Plugin/Asset/AssetType/FarmAssetType.php`
- [Asset groups](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/asset/group/src/GroupAssetLocation.php): `modules/asset/group/src/GroupAssetLocation.php`
- [Organizations](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/src/OrganizationTypeManager.php): `modules/core/entity/src/OrganizationTypeManager.php`
- [Logs](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/log/src/AssetLogs.php): `modules/core/log/src/AssetLogs.php`
- [Quantities](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/quantity/src/Entity/Quantity.php): `modules/core/quantity/src/Entity/Quantity.php`
- [Inventory](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/inventory/src/AssetInventory.php): `modules/core/inventory/src/AssetInventory.php`

### Workflows

- [Quick forms](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/quick/src/Controller/QuickFormController.php): `modules/core/quick/src/Controller/QuickFormController.php`
- [Planting workflow](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/planting/src/Plugin/QuickForm/Planting.php): `modules/quick/planting/src/Plugin/QuickForm/Planting.php`
- [Inventory workflow](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/quick/inventory/src/Plugin/QuickForm/Inventory.php): `modules/quick/inventory/src/Plugin/QuickForm/Inventory.php`
- [Stream notifications](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/data_stream/modules/notification/src/EventSubscriber/DataStreamEventSubscriber.php): `modules/core/data_stream/modules/notification/src/EventSubscriber/DataStreamEventSubscriber.php`

### Data exchange

- [Data streams](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/data_stream/src/Entity/DataStream.php): `modules/core/data_stream/src/Entity/DataStream.php`
- [Sensor endpoint](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/asset/sensor/src/Controller/SensorDataController.php): `modules/asset/sensor/src/Controller/SensorDataController.php`
- [Farm API](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/api/src/Controller/FarmEntryPoint.php): `modules/core/api/src/Controller/FarmEntryPoint.php`
- [CSV import](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/import/modules/csv/src/Controller/CsvImportController.php): `modules/core/import/modules/csv/src/Controller/CsvImportController.php`
- [CSV export](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/export/modules/csv/src/Plugin/Action/EntityCsv.php): `modules/core/export/modules/csv/src/Plugin/Action/EntityCsv.php`
- [KML export](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/export/modules/kml/src/Plugin/Action/EntityKml.php): `modules/core/export/modules/kml/src/Plugin/Action/EntityKml.php`

### Maps and insight

- [Maps](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/map/src/Element/FarmMap.php): `modules/core/map/src/Element/FarmMap.php`
- [Reports](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/report/src/Controller/ReportController.php): `modules/core/report/src/Controller/ReportController.php`
- [Views integration](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/entity/modules/views/src/FarmEntityViewsData.php): `modules/core/entity/modules/views/src/FarmEntityViewsData.php`

### Access and extensions

- [Managed permissions](https://github.com/eliabay100-del/gebere-os/blob/4.x/modules/core/role/src/ManagedRolePermissionsManager.php): `modules/core/role/src/ManagedRolePermissionsManager.php`

### Other components

- **Farm user**
- **External client**

## Connections

- Farm user → Quick forms: uses (evidence: `README.md`)
- Farm user → Assets: records (evidence: `README.md`)
- Quick forms → Planting workflow: offers
- Quick forms → Inventory workflow: offers
- Assets → Asset types: bundled as (evidence: `modules/core/asset/src/Entity/Asset.php`)
- Assets → Asset groups: organized by
- Assets → Inventory: tracks
- Planting workflow → Assets: creates (evidence: `modules/quick/planting/src/Plugin/QuickForm/Planting.php`)
- Planting workflow → Logs: generates (evidence: `modules/quick/planting/src/Plugin/QuickForm/Planting.php`)
- Inventory workflow → Logs: creates
- Inventory workflow → Quantities: records (evidence: `modules/quick/inventory/src/Plugin/QuickForm/Inventory.php`)
- Sensor endpoint → Assets: loads (evidence: `modules/asset/sensor/src/Controller/SensorDataController.php`)
- Sensor endpoint → Data streams: reads and writes (evidence: `modules/asset/sensor/src/Controller/SensorDataController.php`)
- External client → Sensor endpoint: submits readings
- Farm API → Assets: exposes
- CSV import → Assets: imports records
- Assets → CSV export: exports as CSV
- Assets → KML export: exports as KML
- Assets → Maps: visualized on
- Assets → Reports: reviewed in
- Assets → Views integration: indexed for views
- Data streams → Stream notifications: triggers
