# grandnode/grandnode2 architecture

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

- Interactive diagram: https://gitdiagram.com/grandnode/grandnode2
- Repository: https://github.com/grandnode/grandnode2

## Overview

GrandNode is a self-hosted ASP.NET Core commerce platform for multi-store shops and multi-vendor marketplaces. The principal customer journey is browsing a catalog, managing a cart, and placing and fulfilling an order; the README also documents API access, CMS, marketing, localization, and extensible payment/shipping/tax integrations. The tree and excerpts support the named subsystems, but do not show most runtime wiring, so unverified links are dashed rather than asserted as calls.

Main entry points: [`src/Web/Grand.Web.Store`](https://github.com/grandnode/grandnode2/tree/develop/src/Web/Grand.Web.Store) (Storefront), [`src/Business/Grand.Business.Checkout/Commands/Handlers/Orders`](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders) (Order lifecycle), [`src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs`](https://github.com/grandnode/grandnode2/blob/develop/src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs) (Catalog search), [`src/Business/Grand.Business.Customers`](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Customers) (Customer accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront experience"]
  node_storefront_app["Storefront<br/>[Grand.Web.Store]"]
  node_cms["CMS and content<br/>[Services]"]
end

subgraph group_commerce["Commerce operations"]
  node_catalog["Product catalog<br/>[Products]"]
  node_catalog_search["Catalog search"]
  node_cart["Shopping cart"]
  node_checkout["Checkout and totals<br/>[Orders]"]
  node_orders["Order lifecycle<br/>[Orders]"]
  node_payments["Payment processing<br/>[Payments]"]
  node_shipping["Shipping and pickup<br/>[Shipping]"]
  node_marketing["Discounts and loyalty<br/>[Discounts]"]
end

subgraph group_platform["Platform services"]
  node_customer_accounts["Customer accounts"]
  node_authentication["Authentication<br/>[Services]"]
  node_localization["Localization and currency<br/>[Localization]"]
  node_data[("Persistence layer<br/>[Grand.Data]")]
  node_mediator["Request dispatch<br/>[Mediator.cs]"]
end

subgraph group_extensions["Integrations and API"]
  node_api["REST API<br/>[Grand.Module.Api]"]
  node_plugins{{"Commerce plugins"}}
end

node_customer(("Shopper"))

node_customer -.->|"browses and buys"| node_storefront_app
node_storefront_app -.->|"shows products"| node_catalog
node_catalog -.->|"searches catalog"| node_catalog_search
node_storefront_app -.->|"manages cart"| node_cart
node_storefront_app -.->|"starts checkout"| node_checkout
node_checkout -.->|"places order"| node_orders
node_orders -.->|"processes payment"| node_payments
node_orders -.->|"coordinates delivery"| node_shipping
node_storefront_app -.->|"serves customers"| node_customer_accounts
node_storefront_app -.->|"renders content"| node_cms
node_catalog_search -->|"queries products"| node_data
node_mediator -.->|"dispatches request"| node_catalog_search
node_api -->|"exposes customer data"| node_customer_accounts
node_storefront_app -.->|"extends commerce"| node_plugins
node_storefront_app -.->|"applies promotions"| node_marketing
node_storefront_app -.->|"localizes experience"| node_localization
node_authentication -.->|"authenticates users"| node_customer_accounts

click node_storefront_app "https://github.com/grandnode/grandnode2/tree/develop/src/Web/Grand.Web.Store"
click node_catalog "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Catalog/Services/Products"
click node_catalog_search "https://github.com/grandnode/grandnode2/blob/develop/src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs"
click node_cart "https://github.com/grandnode/grandnode2/blob/develop/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs"
click node_checkout "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Orders"
click node_orders "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders"
click node_payments "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Payments"
click node_shipping "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Shipping"
click node_customer_accounts "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Customers"
click node_authentication "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Authentication/Services"
click node_cms "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Cms/Services"
click node_marketing "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Catalog/Services/Discounts"
click node_localization "https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Common/Services/Localization"
click node_data "https://github.com/grandnode/grandnode2/tree/develop/src/Core/Grand.Data"
click node_api "https://github.com/grandnode/grandnode2/tree/develop/src/Modules/Grand.Module.Api"
click node_plugins "https://github.com/grandnode/grandnode2/tree/develop/src/Plugins"
click node_mediator "https://github.com/grandnode/grandnode2/blob/develop/src/Core/Grand.Mediator/Mediator.cs"

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_storefront_app,node_cms toneBlue
class node_catalog,node_catalog_search,node_cart,node_checkout,node_orders,node_payments,node_shipping,node_marketing toneAmber
class node_customer_accounts,node_authentication,node_localization,node_data,node_mediator toneMint
class node_api,node_plugins toneRose
class node_customer toneIndigo
```

## Components

### Storefront experience

- [Storefront](https://github.com/grandnode/grandnode2/tree/develop/src/Web/Grand.Web.Store): `src/Web/Grand.Web.Store`
- [CMS and content](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Cms/Services): `src/Business/Grand.Business.Cms/Services`

### Commerce operations

- [Product catalog](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Catalog/Services/Products): `src/Business/Grand.Business.Catalog/Services/Products`
- [Catalog search](https://github.com/grandnode/grandnode2/blob/develop/src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs): `src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs`
- [Shopping cart](https://github.com/grandnode/grandnode2/blob/develop/src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs): `src/Business/Grand.Business.Checkout/Services/Orders/ShoppingCartService.cs`
- [Checkout and totals](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Orders): `src/Business/Grand.Business.Checkout/Services/Orders`
- [Order lifecycle](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders): `src/Business/Grand.Business.Checkout/Commands/Handlers/Orders`
- [Payment processing](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Payments): `src/Business/Grand.Business.Checkout/Services/Payments`
- [Shipping and pickup](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Checkout/Services/Shipping): `src/Business/Grand.Business.Checkout/Services/Shipping`
- [Discounts and loyalty](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Catalog/Services/Discounts): `src/Business/Grand.Business.Catalog/Services/Discounts`

### Platform services

- [Customer accounts](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Customers): `src/Business/Grand.Business.Customers`
- [Authentication](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Authentication/Services): `src/Business/Grand.Business.Authentication/Services`
- [Localization and currency](https://github.com/grandnode/grandnode2/tree/develop/src/Business/Grand.Business.Common/Services/Localization): `src/Business/Grand.Business.Common/Services/Localization`
- [Persistence layer](https://github.com/grandnode/grandnode2/tree/develop/src/Core/Grand.Data): `src/Core/Grand.Data`
- [Request dispatch](https://github.com/grandnode/grandnode2/blob/develop/src/Core/Grand.Mediator/Mediator.cs): `src/Core/Grand.Mediator/Mediator.cs`

### Integrations and API

- [REST API](https://github.com/grandnode/grandnode2/tree/develop/src/Modules/Grand.Module.Api): `src/Modules/Grand.Module.Api`
- [Commerce plugins](https://github.com/grandnode/grandnode2/tree/develop/src/Plugins): `src/Plugins`

### Other components

- **Shopper**

## Connections

- Shopper → Storefront: browses and buys (evidence: `README.md`)
- Storefront → Product catalog: shows products
- Product catalog → Catalog search: searches catalog
- Storefront → Shopping cart: manages cart (evidence: `README.md`)
- Storefront → Checkout and totals: starts checkout (evidence: `README.md`)
- Checkout and totals → Order lifecycle: places order (evidence: `README.md`)
- Order lifecycle → Payment processing: processes payment (evidence: `README.md`)
- Order lifecycle → Shipping and pickup: coordinates delivery (evidence: `README.md`)
- Storefront → Customer accounts: serves customers (evidence: `README.md`)
- Storefront → CMS and content: renders content (evidence: `README.md`)
- Catalog search → Persistence layer: queries products (evidence: `src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs`)
- Request dispatch → Catalog search: dispatches request (evidence: `src/Business/Grand.Business.Catalog/Queries/Handlers/GetSearchProductsQueryHandler.cs`)
- REST API → Customer accounts: exposes customer data (evidence: `src/Modules/Grand.Module.Api/Queries/Handlers/Customers/GetCustomerQueryHandler.cs`)
- Storefront → Commerce plugins: extends commerce (evidence: `README.md`)
- Storefront → Discounts and loyalty: applies promotions (evidence: `README.md`)
- Storefront → Localization and currency: localizes experience (evidence: `README.md`)
- Authentication → Customer accounts: authenticates users
