# inikoo-ltd/aiku architecture

> Architecture diagram of the GitHub repository inikoo-ltd/aiku, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/inikoo-ltd/aiku
- Repository: https://github.com/inikoo-ltd/aiku

## Overview

aiku is a multi-entity commerce operating system spanning wholesale and retail sales, warehouse operations, fulfilment, and business administration. A representative workflow starts with catalogue and channel setup, proceeds through customer orders and warehouse dispatch, and is reconciled through billing and accounting. The README also documents procurement, 3PL, CRM, storefronts, production, analytics, and AI tools as substantial product areas. Some subsystem paths below are directory-level because the supplied tree does not expose their implementation files; relationships are limited to documented capabilities and sampled evidence.

Main entry points: [`app/Actions/Ordering`](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Ordering) (Ordering), [`app/Models/Inventory/Warehouse.php`](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Inventory/Warehouse.php) (Warehouse & dispatch), [`app/Models/Catalogue/Shop.php`](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Catalogue/Shop.php) (Shops & storefronts), [`app/Actions`](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions) (Marketplace channels)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commerce["Commerce"]
  node_catalogue[("Masters &amp; catalogue<br/>[Product.php]")]
  node_shop["Shops &amp; storefronts<br/>[Shop.php]"]
  node_orders["Ordering"]
  node_channels["Marketplace channels"]
end

subgraph group_operations["Operations"]
  node_warehouse[("Warehouse &amp; dispatch<br/>[Warehouse.php]")]
  node_procurement["Procurement"]
  node_fulfilment["3PL fulfilment<br/>[storage.php]"]
  node_production[("Production<br/>[Production.php]")]
  node_mobile["Warehouse handheld"]
end

subgraph group_finance["Finance"]
  node_invoices[("Invoices &amp; billing<br/>[Invoice.php]")]
  node_payments["Payments"]
  node_accounting["Accounting &amp; reports"]
end

subgraph group_engagement["Customer &amp; channels"]
  node_crm["CRM &amp; communications"]
  node_customer_portal["Customer portal"]
end

subgraph group_insight["Insights &amp; workforce"]
  node_analytics["Analytics &amp; search<br/>[AikuSection.php]"]
  node_mcp["MCP tools<br/>[SqlQueryTool.php]"]
  node_hr[("HR &amp; timekeeping")]
end

node_staff(("Staff"))
node_customer(("Customers"))

node_staff -->|"manage catalog"| node_catalogue
node_staff -->|"manage sales"| node_orders
node_customer -->|"shop online"| node_shop
node_catalogue -->|"publish products"| node_shop
node_shop -->|"accept orders"| node_orders
node_orders -->|"flow to dispatch"| node_warehouse
node_warehouse -->|"ship orders"| node_customer
node_staff -->|"manage purchasing"| node_procurement
node_procurement -->|"receive goods"| node_warehouse
node_staff -->|"manage storage"| node_fulfilment
node_customer -->|"self-service"| node_customer_portal
node_channels -->|"sync products"| node_shop
node_channels -->|"sync orders"| node_orders
node_orders -->|"bill sales"| node_invoices
node_invoices -->|"collect payment"| node_payments
node_payments -->|"report finances"| node_accounting
node_staff -->|"manage production"| node_production
node_staff -->|"manage relationships"| node_crm
node_warehouse -->|"support floor work"| node_mobile
node_staff -->|"review metrics"| node_analytics
node_staff -->|"query business"| node_mcp
node_staff -->|"manage workforce"| node_hr

click node_catalogue "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Catalogue/Product.php"
click node_shop "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Catalogue/Shop.php"
click node_orders "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Ordering"
click node_channels "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions"
click node_warehouse "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Inventory/Warehouse.php"
click node_procurement "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Procurement"
click node_fulfilment "https://github.com/inikoo-ltd/aiku/blob/main/routes/retina/web/fulfilment/storage.php"
click node_production "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Production/Production.php"
click node_invoices "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Accounting/Invoice.php"
click node_payments "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Accounting/Payment"
click node_accounting "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Accounting"
click node_crm "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/CRM"
click node_customer_portal "https://github.com/inikoo-ltd/aiku/tree/main/app/Actions"
click node_mobile "https://github.com/inikoo-ltd/aiku/blob/main/app/Actions/Api/Group/Offline/MobileOfflineEngine.php"
click node_analytics "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Analytics/AikuSection.php"
click node_mcp "https://github.com/inikoo-ltd/aiku/blob/main/app/Mcp/Tools/SqlQueryTool.php"
click node_hr "https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Production/ManufactureTaskSession.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_catalogue,node_shop,node_orders,node_channels toneBlue
class node_warehouse,node_procurement,node_fulfilment,node_production,node_mobile toneAmber
class node_invoices,node_payments,node_accounting toneMint
class node_crm,node_customer_portal toneRose
class node_analytics,node_mcp,node_hr,node_staff,node_customer toneIndigo
```

## Components

### Commerce

- [Masters & catalogue](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Catalogue/Product.php): `app/Models/Catalogue/Product.php`
- [Shops & storefronts](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Catalogue/Shop.php): `app/Models/Catalogue/Shop.php`
- [Ordering](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Ordering): `app/Actions/Ordering`
- [Marketplace channels](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions): `app/Actions`

### Operations

- [Warehouse & dispatch](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Inventory/Warehouse.php): `app/Models/Inventory/Warehouse.php`
- [Procurement](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Procurement): `app/Actions/Procurement`
- [3PL fulfilment](https://github.com/inikoo-ltd/aiku/blob/main/routes/retina/web/fulfilment/storage.php): `routes/retina/web/fulfilment/storage.php`
- [Production](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Production/Production.php): `app/Models/Production/Production.php`
- [Warehouse handheld](https://github.com/inikoo-ltd/aiku/blob/main/app/Actions/Api/Group/Offline/MobileOfflineEngine.php): `app/Actions/Api/Group/Offline/MobileOfflineEngine.php`

### Finance

- [Invoices & billing](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Accounting/Invoice.php): `app/Models/Accounting/Invoice.php`
- [Payments](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Accounting/Payment): `app/Actions/Accounting/Payment`
- [Accounting & reports](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/Accounting): `app/Actions/Accounting`

### Customer & channels

- [CRM & communications](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions/CRM): `app/Actions/CRM`
- [Customer portal](https://github.com/inikoo-ltd/aiku/tree/main/app/Actions): `app/Actions`

### Insights & workforce

- [Analytics & search](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Analytics/AikuSection.php): `app/Models/Analytics/AikuSection.php`
- [MCP tools](https://github.com/inikoo-ltd/aiku/blob/main/app/Mcp/Tools/SqlQueryTool.php): `app/Mcp/Tools/SqlQueryTool.php`
- [HR & timekeeping](https://github.com/inikoo-ltd/aiku/blob/main/app/Models/Production/ManufactureTaskSession.php): `app/Models/Production/ManufactureTaskSession.php`

### Other components

- **Staff**
- **Customers**

## Connections

- Staff → Masters & catalogue: manage catalog
- Staff → Ordering: manage sales
- Customers → Shops & storefronts: shop online
- Masters & catalogue → Shops & storefronts: publish products
- Shops & storefronts → Ordering: accept orders
- Ordering → Warehouse & dispatch: flow to dispatch
- Warehouse & dispatch → Customers: ship orders
- Staff → Procurement: manage purchasing
- Procurement → Warehouse & dispatch: receive goods
- Staff → 3PL fulfilment: manage storage
- Customers → Customer portal: self-service
- Marketplace channels → Shops & storefronts: sync products (evidence: `app/Actions/CRM/ShoppingAssistant/StoreShoppingAssistantEngineerTicket.php`)
- Marketplace channels → Ordering: sync orders
- Ordering → Invoices & billing: bill sales
- Invoices & billing → Payments: collect payment
- Payments → Accounting & reports: report finances
- Staff → Production: manage production
- Staff → CRM & communications: manage relationships
- Warehouse & dispatch → Warehouse handheld: support floor work (evidence: `app/Actions/Api/Group/Offline/MobileOfflineEngine.php`)
- Staff → Analytics & search: review metrics
- Staff → MCP tools: query business
- Staff → HR & timekeeping: manage workforce
