# it-nilesh/slice-platform-starter architecture

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

- Interactive diagram: https://gitdiagram.com/it-nilesh/slice-platform-starter
- Repository: https://github.com/it-nilesh/slice-platform-starter

## Overview

This is a microfrontend/microservice proof of concept: users enter through a same-origin gateway, the shell discovers and routes to independently deployed frontends, and each frontend calls its capability API. The graph also preserves the documented slice-generation capability. Gateway and deployment files are absent from the supplied tree, and several endpoint implementations were not excerpted, so those relationships are limited to README evidence or marked unverified.

Main entry points: [`frontend/apps/shell/src/App.tsx`](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/App.tsx) (Shell app), [`backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs`](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs) (Catalog API), [`frontend/apps/shell/src/components/RemoteOutlet.tsx`](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/components/RemoteOutlet.tsx) (Remote outlet), [`backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs`](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs) (Orders API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform entry"]
  node_gateway["NGINX gateway"]
end

subgraph group_shell["Dynamic shell"]
  node_shell_app["Shell app<br/>[App.tsx]"]
  node_shell_layout["Navigation layout<br/>[Layout.tsx]"]
  node_remote_outlet["Remote outlet<br/>[RemoteOutlet.tsx]"]
  node_manifest_load["Manifest loading<br/>[load.ts]"]
  node_manifest_validate["Manifest validation<br/>[validate.ts]"]
  node_federation["Remote federation<br/>[federation.ts]"]
  node_telemetry["Shell telemetry<br/>[telemetry.ts]"]
end

subgraph group_frontend["Capability frontends"]
  node_catalog_mfe["Catalog MFE<br/>[App.tsx]"]
  node_catalog_api_client["Catalog API client<br/>[api.ts]"]
  node_orders_mfe["Orders MFE<br/>[App.tsx]"]
  node_orders_api_client["Orders API client<br/>[api.ts]"]
  node_profile_mfe["Profile MFE<br/>[App.tsx]"]
  node_profile_api_client["Profile API client<br/>[api.ts]"]
end

subgraph group_backend["Capability APIs"]
  node_catalog_service["Catalog API"]
  node_catalog_repository[("Product repository")]
  node_product_model["Product model<br/>[Product.cs]"]
  node_orders_service["Orders API<br/>[OrderEndpoints.cs]"]
  node_orders_repository[("Order repository")]
  node_order_model["Order model<br/>[Order.cs]"]
  node_catalog_client["Catalog service client"]
  node_profile_service["Profile API"]
  node_profile_store[("Profile store")]
  node_profile_model["User profile model<br/>[UserProfile.cs]"]
end

subgraph group_framework["Slice framework"]
  node_slice_cli["Slice generator CLI<br/>[slice.mjs]"]
end

node_browser(("Browser"))

node_browser -->|"requests"| node_gateway
node_gateway -->|"serves shell"| node_shell_app
node_gateway -->|"routes MFE"| node_catalog_mfe
node_gateway -->|"routes MFE"| node_orders_mfe
node_gateway -->|"routes MFE"| node_profile_mfe
node_gateway -->|"routes API"| node_catalog_service
node_gateway -->|"routes API"| node_orders_service
node_gateway -->|"routes API"| node_profile_service
node_shell_app -->|"renders"| node_shell_layout
node_shell_app -->|"routes to"| node_remote_outlet
node_shell_app -->|"loads manifest"| node_manifest_load
node_manifest_load -->|"validates"| node_manifest_validate
node_shell_app -->|"registers remotes"| node_federation
node_remote_outlet -->|"loads remote"| node_federation
node_remote_outlet -->|"reports errors"| node_telemetry
node_catalog_mfe -->|"requests products"| node_catalog_api_client
node_orders_mfe -->|"places and lists"| node_orders_api_client
node_profile_mfe -->|"loads and saves"| node_profile_api_client
node_catalog_api_client -.->|"calls catalog API"| node_gateway
node_orders_api_client -.->|"calls orders API"| node_gateway
node_profile_api_client -.->|"calls profile API"| node_gateway
node_catalog_service -.->|"uses repository"| node_catalog_repository
node_catalog_repository -->|"stores products"| node_product_model
node_orders_service -.->|"uses repository"| node_orders_repository
node_orders_service -->|"confirms prices"| node_catalog_client
node_orders_repository -->|"stores orders"| node_order_model
node_catalog_client -->|"fetches prices"| node_catalog_service
node_profile_service -.->|"uses store"| node_profile_store
node_profile_store -->|"stores profile"| node_profile_model
node_slice_cli -.->|"generates slices"| node_catalog_service

click node_shell_app "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/App.tsx"
click node_shell_layout "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/components/Layout.tsx"
click node_remote_outlet "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/components/RemoteOutlet.tsx"
click node_manifest_load "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/manifest/load.ts"
click node_manifest_validate "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/manifest/validate.ts"
click node_federation "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/remotes/federation.ts"
click node_telemetry "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/telemetry.ts"
click node_catalog_mfe "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-catalog/src/App.tsx"
click node_catalog_api_client "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-catalog/src/api.ts"
click node_orders_mfe "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-orders/src/App.tsx"
click node_orders_api_client "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-orders/src/api.ts"
click node_profile_mfe "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-profile/src/App.tsx"
click node_profile_api_client "https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-profile/src/api.ts"
click node_catalog_service "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs"
click node_catalog_repository "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs"
click node_product_model "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/Product.cs"
click node_orders_service "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs"
click node_orders_repository "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs"
click node_order_model "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/Order.cs"
click node_catalog_client "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Catalog/HttpCatalogClient.cs"
click node_profile_service "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/ProfileEndpoints.cs"
click node_profile_store "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs"
click node_profile_model "https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/UserProfile.cs"
click node_slice_cli "https://github.com/it-nilesh/slice-platform-starter/blob/main/tools/slice/slice.mjs"

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_gateway,node_browser toneBlue
class node_shell_app,node_shell_layout,node_remote_outlet,node_manifest_load,node_manifest_validate,node_federation,node_telemetry toneAmber
class node_catalog_mfe,node_catalog_api_client,node_orders_mfe,node_orders_api_client,node_profile_mfe,node_profile_api_client toneMint
class node_catalog_service,node_catalog_repository,node_product_model,node_orders_service,node_orders_repository,node_order_model,node_catalog_client,node_profile_service,node_profile_store,node_profile_model toneRose
class node_slice_cli toneIndigo
```

## Components

### Platform entry

- **NGINX gateway**

### Dynamic shell

- [Shell app](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/App.tsx): `frontend/apps/shell/src/App.tsx`
- [Navigation layout](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/components/Layout.tsx): `frontend/apps/shell/src/components/Layout.tsx`
- [Remote outlet](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/components/RemoteOutlet.tsx): `frontend/apps/shell/src/components/RemoteOutlet.tsx`
- [Manifest loading](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/manifest/load.ts): `frontend/apps/shell/src/manifest/load.ts`
- [Manifest validation](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/manifest/validate.ts): `frontend/apps/shell/src/manifest/validate.ts`
- [Remote federation](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/remotes/federation.ts): `frontend/apps/shell/src/remotes/federation.ts`
- [Shell telemetry](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/shell/src/telemetry.ts): `frontend/apps/shell/src/telemetry.ts`

### Capability frontends

- [Catalog MFE](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-catalog/src/App.tsx): `frontend/apps/mfe-catalog/src/App.tsx`
- [Catalog API client](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-catalog/src/api.ts): `frontend/apps/mfe-catalog/src/api.ts`
- [Orders MFE](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-orders/src/App.tsx): `frontend/apps/mfe-orders/src/App.tsx`
- [Orders API client](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-orders/src/api.ts): `frontend/apps/mfe-orders/src/api.ts`
- [Profile MFE](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-profile/src/App.tsx): `frontend/apps/mfe-profile/src/App.tsx`
- [Profile API client](https://github.com/it-nilesh/slice-platform-starter/blob/main/frontend/apps/mfe-profile/src/api.ts): `frontend/apps/mfe-profile/src/api.ts`

### Capability APIs

- [Catalog API](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs): `backend/src/Services/Catalog/Catalog.Api/Products/ProductEndpoints.cs`
- [Product repository](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs): `backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs`
- [Product model](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Catalog/Catalog.Api/Products/Product.cs): `backend/src/Services/Catalog/Catalog.Api/Products/Product.cs`
- [Orders API](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs): `backend/src/Services/Orders/Orders.Api/Orders/OrderEndpoints.cs`
- [Order repository](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs): `backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs`
- [Order model](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Orders/Order.cs): `backend/src/Services/Orders/Orders.Api/Orders/Order.cs`
- [Catalog service client](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Orders/Orders.Api/Catalog/HttpCatalogClient.cs): `backend/src/Services/Orders/Orders.Api/Catalog/HttpCatalogClient.cs`
- [Profile API](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/ProfileEndpoints.cs): `backend/src/Services/Profile/Profile.Api/Profiles/ProfileEndpoints.cs`
- [Profile store](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs): `backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs`
- [User profile model](https://github.com/it-nilesh/slice-platform-starter/blob/main/backend/src/Services/Profile/Profile.Api/Profiles/UserProfile.cs): `backend/src/Services/Profile/Profile.Api/Profiles/UserProfile.cs`

### Slice framework

- [Slice generator CLI](https://github.com/it-nilesh/slice-platform-starter/blob/main/tools/slice/slice.mjs): `tools/slice/slice.mjs`

### Other components

- **Browser**

## Connections

- Browser → NGINX gateway: requests (evidence: `README.md`)
- NGINX gateway → Shell app: serves shell (evidence: `README.md`)
- NGINX gateway → Catalog MFE: routes MFE (evidence: `README.md`)
- NGINX gateway → Orders MFE: routes MFE (evidence: `README.md`)
- NGINX gateway → Profile MFE: routes MFE (evidence: `README.md`)
- NGINX gateway → Catalog API: routes API (evidence: `README.md`)
- NGINX gateway → Orders API: routes API (evidence: `README.md`)
- NGINX gateway → Profile API: routes API (evidence: `README.md`)
- Shell app → Navigation layout: renders (evidence: `frontend/apps/shell/src/App.tsx`)
- Shell app → Remote outlet: routes to (evidence: `frontend/apps/shell/src/App.tsx`)
- Shell app → Manifest loading: loads manifest (evidence: `frontend/apps/shell/src/main.tsx`)
- Manifest loading → Manifest validation: validates (evidence: `frontend/apps/shell/src/manifest/load.ts`)
- Shell app → Remote federation: registers remotes (evidence: `frontend/apps/shell/src/main.tsx`)
- Remote outlet → Remote federation: loads remote (evidence: `frontend/apps/shell/src/components/RemoteOutlet.tsx`)
- Remote outlet → Shell telemetry: reports errors (evidence: `frontend/apps/shell/src/components/RemoteOutlet.tsx`)
- Catalog MFE → Catalog API client: requests products (evidence: `frontend/apps/mfe-catalog/src/App.tsx`)
- Orders MFE → Orders API client: places and lists (evidence: `frontend/apps/mfe-orders/src/App.tsx`)
- Profile MFE → Profile API client: loads and saves (evidence: `frontend/apps/mfe-profile/src/App.tsx`)
- Catalog API client → NGINX gateway: calls catalog API
- Orders API client → NGINX gateway: calls orders API
- Profile API client → NGINX gateway: calls profile API
- Catalog API → Product repository: uses repository
- Product repository → Product model: stores products (evidence: `backend/src/Services/Catalog/Catalog.Api/Products/InMemoryProductRepository.cs`)
- Orders API → Order repository: uses repository
- Orders API → Catalog service client: confirms prices (evidence: `README.md`)
- Order repository → Order model: stores orders (evidence: `backend/src/Services/Orders/Orders.Api/Orders/InMemoryOrderRepository.cs`)
- Catalog service client → Catalog API: fetches prices (evidence: `README.md`)
- Profile API → Profile store: uses store
- Profile store → User profile model: stores profile (evidence: `backend/src/Services/Profile/Profile.Api/Profiles/InMemoryProfileStore.cs`)
- Slice generator CLI → Catalog API: generates slices (evidence: `README.md`)
