{
  "schemaVersion": 1,
  "slug": "eshop",
  "repository": "dotnet/eShop",
  "title": "A distributed application",
  "description": "Explore the project graph, service entry points, and data contexts of a distributed .NET sample.",
  "sourceUrl": "https://github.com/dotnet/eShop",
  "commitUrl": "https://github.com/dotnet/eShop/tree/913acea66708a59595351174cee9b29f37179d29",
  "commitSha": "913acea66708a59595351174cee9b29f37179d29",
  "branch": "main",
  "generatedAt": "2026-11-06T12:58:23.927Z",
  "generator": "Codebase Map production fetcher, scanner, preview builder, and Markdown exporter",
  "mode": "ai",
  "limits": {
    "maxTreeEntries": 20000,
    "maxFetchedFiles": 10000,
    "maxFileBytes": 180000,
    "maxTotalBytes": 16000000
  },
  "coverage": {
    "fetched": 760,
    "skipped": 385,
    "treeEntries": 1430,
    "textBytesFetched": 1623999,
    "skippedByReason": {
      "unsupported-text-type": 363,
      "ignored-path": 3,
      "file-too-large": 19
    }
  },
  "summary": {
    "isDotNet": true,
    "solutionCount": 3,
    "projectCount": 28,
    "endpointCount": 50,
    "dbContextCount": 3,
    "entityCount": 9,
    "migrationCount": 22,
    "testProjectCount": 9,
    "warningCount": 2
  },
  "limitations": [
    "Static text inspection only. Repository code was not built or executed.",
    "Findings and relationships are inferred; review the source before making changes. This is not a security audit.",
    "Only eligible text files within the recorded scan budgets were inspected; skipped files are not analyzed.",
    "The report contains a selected architecture diagram, up to 10 deduplicated API routes, 5 data contexts, and a project shortlist. The full detected project list is included with up to 3 package names per project.",
    "The AI explanation, diagram, and onboarding guide use structured scanner evidence and can be incomplete or inaccurate."
  ],
  "preview": {
    "repository": "dotnet/eShop",
    "branch": "main",
    "summary": "This repo is an Aspire-hosted eShop composed of multiple HTTP APIs, workers, and MAUI clients. Services share ServiceDefaults, PostgreSQL EF Core contexts, and a RabbitMQ-based event bus for integration.",
    "mermaidDiagram": "flowchart LR\nsubgraph HostLayer[\"Host\"]\nAppHost[\"eShop.AppHost\"]\nServiceDefaults[\"eShop.ServiceDefaults\"]\nend\nsubgraph Clients[\"Clients\"]\nWebApp[\"WebApp\"]\nWebhookClient[\"WebhookClient\"]\nHybridApp[\"HybridApp\"]\nClientApp[\"ClientApp\"]\nWebAppComponents[\"WebAppComponents\"]\nend\nsubgraph ApiServices[\"API services\"]\nCatalogApi[\"Catalog.API\"]\nBasketApi[\"Basket.API\"]\nOrderingApi[\"Ordering.API\"]\nIdentityApi[\"Identity.API\"]\nWebhooksApi[\"Webhooks.API\"]\nPaymentProcessor[\"PaymentProcessor\"]\nWebhookClientApi[\"WebhookClient (host)\"]\nend\nsubgraph Workers[\"Workers\"]\nOrderProcessor[\"OrderProcessor\"]\nend\nsubgraph DomainData[\"Domain Data\"]\nOrderingDomain[\"Ordering.Domain\"]\nOrderingInfrastructure[\"Ordering.Infrastructure\"]\nIntegrationEventLogEF[\"IntegrationEventLogEF\"]\nCatalogContext[\"CatalogContext\"]\nOrderingContext[\"OrderingContext\"]\nWebhooksContext[\"WebhooksContext\"]\nend\nsubgraph SharedInfrastructure[\"Shared infrastructure\"]\nEventBus[\"EventBus\"]\nEventBusRabbitMQ[\"EventBusRabbitMQ\"]\nTests[\"Application and service tests\"]\nend\nsubgraph ExternalResources[\"External resources\"]\nPostgreSql[\"PostgreSQL databases\"]\nRedisCache[\"Redis cache\"]\nRabbitMqBroker[\"RabbitMQ broker\"]\nIdentityStore[\"Identity EF store\"]\nOpenAi[\"Azure OpenAI and Ollama\"]\nend\nAppHost --> CatalogApi\nAppHost --> BasketApi\nAppHost --> OrderingApi\nAppHost --> IdentityApi\nAppHost --> WebhooksApi\nAppHost --> PaymentProcessor\nAppHost --> OrderProcessor\nAppHost --> WebApp\nAppHost --> WebhookClientApi\nAppHost --> HybridApp\nAppHost --> ClientApp\nCatalogApi --> ServiceDefaults\nBasketApi --> ServiceDefaults\nOrderingApi --> ServiceDefaults\nIdentityApi --> ServiceDefaults\nWebhooksApi --> ServiceDefaults\nPaymentProcessor --> ServiceDefaults\nOrderProcessor --> ServiceDefaults\nWebApp --> ServiceDefaults\nWebhookClientApi --> ServiceDefaults\nHybridApp --> WebAppComponents\nWebApp --> WebAppComponents\nCatalogApi --> CatalogContext\nOrderingApi --> OrderingInfrastructure\nOrderingInfrastructure --> OrderingContext\nWebhooksApi --> WebhooksContext\nIdentityApi --> IdentityStore\nCatalogContext --> PostgreSql\nOrderingContext --> PostgreSql\nWebhooksContext --> PostgreSql\nBasketApi --> RedisCache\nEventBusRabbitMQ --> EventBus\nCatalogApi --> EventBusRabbitMQ\nBasketApi --> EventBusRabbitMQ\nOrderingApi --> EventBusRabbitMQ\nWebhooksApi --> EventBusRabbitMQ\nOrderProcessor --> EventBusRabbitMQ\nPaymentProcessor --> EventBusRabbitMQ\nWebApp --> CatalogApi\nWebApp --> BasketApi\nWebApp --> OrderingApi\nWebApp --> IdentityApi\nWebhookClientApi --> WebhooksApi\nClientApp --> WebApp\nCatalogApi --> OpenAi\nWebApp --> OpenAi\nTests --> CatalogApi\nTests --> BasketApi\nTests --> OrderingApi\nTests --> IdentityApi\nTests --> WebhooksApi\nTests --> OrderProcessor\nTests --> PaymentProcessor\nTests --> WebhookClientApi",
    "aiGenerated": true,
    "scanScope": "760 text files scanned; 28 projects; 50 endpoints; 3 DbContexts",
    "startHere": "eShop.slnx - main solution wiring host, services, and tests",
    "architectureStyle": "Microservices",
    "readouts": [
      {
        "label": "Shape",
        "value": "Microservices",
        "detail": "Primary solution: eShop",
        "tone": "cyan"
      },
      {
        "label": "Start",
        "value": "eShop",
        "detail": "eShop.slnx - main solution wiring host, services, and tests",
        "tone": "green"
      },
      {
        "label": "Data",
        "value": "CatalogContext",
        "detail": "9 entities across EF Core contexts.",
        "tone": "cyan"
      },
      {
        "label": "Runtime",
        "value": "4 services",
        "detail": "PostgreSQL, Redis, RabbitMQ, Config detected. Tests: Application.UnitTests.",
        "tone": "amber"
      }
    ],
    "signals": [
      {
        "label": "Solutions",
        "value": "3",
        "tone": "cyan"
      },
      {
        "label": "Projects",
        "value": "28",
        "tone": "green"
      },
      {
        "label": "Endpoints",
        "value": "50",
        "tone": "cyan"
      },
      {
        "label": "Warnings",
        "value": "2",
        "tone": "amber"
      }
    ],
    "projects": [
      {
        "path": "src/eShop.AppHost/eShop.AppHost.csproj",
        "name": "eShop.AppHost",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Aspire.Hosting.Dotnet",
          "Aspire.Hosting.Azure.AppContainers",
          "Aspire.Hosting.RabbitMQ"
        ]
      },
      {
        "path": "src/WebApp/WebApp.csproj",
        "name": "WebApp",
        "framework": "net10.0",
        "kind": "Client",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Aspire.Azure.AI.OpenAI",
          "CommunityToolkit.Aspire.OllamaSharp"
        ]
      },
      {
        "path": "src/Catalog.API/Catalog.API.csproj",
        "name": "Catalog.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http",
          "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL",
          "CommunityToolkit.Aspire.OllamaSharp"
        ]
      },
      {
        "path": "src/Ordering.API/Ordering.API.csproj",
        "name": "Ordering.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http",
          "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL",
          "FluentValidation"
        ]
      },
      {
        "path": "src/Identity.API/Identity.API.csproj",
        "name": "Identity.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Duende.IdentityServer.AspNetIdentity",
          "Duende.IdentityServer.EntityFramework",
          "Duende.IdentityServer.Storage"
        ]
      },
      {
        "path": "src/Basket.API/Basket.API.csproj",
        "name": "Basket.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Aspire.StackExchange.Redis",
          "Grpc.AspNetCore"
        ]
      }
    ],
    "allProjects": [
      {
        "path": "src/HybridApp/HybridApp.csproj",
        "name": "HybridApp",
        "framework": "net10.0-android +2",
        "kind": "Client",
        "packages": [
          "Microsoft.AspNetCore.Components.WebView.Maui",
          "Microsoft.Maui.Controls",
          "Microsoft.Maui.Controls.Compatibility"
        ]
      },
      {
        "path": "src/ClientApp/ClientApp.csproj",
        "name": "ClientApp",
        "framework": "net10.0-android +3",
        "kind": "Client",
        "packages": [
          "Google.Protobuf",
          "Grpc.Net.Client",
          "IdentityModel.OidcClient"
        ]
      },
      {
        "path": "src/eShop.AppHost/eShop.AppHost.csproj",
        "name": "eShop.AppHost",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Aspire.Hosting.Dotnet",
          "Aspire.Hosting.Azure.AppContainers",
          "Aspire.Hosting.RabbitMQ"
        ]
      },
      {
        "path": "src/EventBusRabbitMQ/EventBusRabbitMQ.csproj",
        "name": "EventBusRabbitMQ",
        "framework": "net10.0",
        "kind": "Shared",
        "packages": [
          "Aspire.RabbitMQ.Client"
        ]
      },
      {
        "path": "src/eShop.ServiceDefaults/eShop.ServiceDefaults.csproj",
        "name": "eShop.ServiceDefaults",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Mvc.ApiExplorer",
          "Asp.Versioning.OpenApi",
          "Microsoft.AspNetCore.OpenApi"
        ]
      },
      {
        "path": "src/IntegrationEventLogEF/IntegrationEventLogEF.csproj",
        "name": "IntegrationEventLogEF",
        "framework": "net10.0",
        "kind": "Data",
        "packages": [
          "Npgsql.EntityFrameworkCore.PostgreSQL"
        ]
      },
      {
        "path": "src/WebAppComponents/WebAppComponents.csproj",
        "name": "WebAppComponents",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Microsoft.AspNetCore.Components.Web"
        ]
      },
      {
        "path": "src/Ordering.Domain/Ordering.Domain.csproj",
        "name": "Ordering.Domain",
        "framework": "net10.0",
        "kind": "Shared",
        "packages": [
          "MediatR",
          "System.Reflection.TypeExtensions"
        ]
      },
      {
        "path": "src/Basket.API/Basket.API.csproj",
        "name": "Basket.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Aspire.StackExchange.Redis",
          "Grpc.AspNetCore"
        ]
      },
      {
        "path": "src/EventBus/EventBus.csproj",
        "name": "EventBus",
        "framework": "net10.0",
        "kind": "Shared",
        "packages": [
          "Microsoft.Extensions.Options"
        ]
      },
      {
        "path": "src/Catalog.API/Catalog.API.csproj",
        "name": "Catalog.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http",
          "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL",
          "CommunityToolkit.Aspire.OllamaSharp"
        ]
      },
      {
        "path": "src/Ordering.Infrastructure/Ordering.Infrastructure.csproj",
        "name": "Ordering.Infrastructure",
        "framework": "net10.0",
        "kind": "Data",
        "packages": [
          "Npgsql.EntityFrameworkCore.PostgreSQL"
        ]
      },
      {
        "path": "src/Identity.API/Identity.API.csproj",
        "name": "Identity.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Duende.IdentityServer.AspNetIdentity",
          "Duende.IdentityServer.EntityFramework",
          "Duende.IdentityServer.Storage"
        ]
      },
      {
        "path": "src/Ordering.API/Ordering.API.csproj",
        "name": "Ordering.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http",
          "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL",
          "FluentValidation"
        ]
      },
      {
        "path": "src/Webhooks.API/Webhooks.API.csproj",
        "name": "Webhooks.API",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http",
          "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL"
        ]
      },
      {
        "path": "src/OrderProcessor/OrderProcessor.csproj",
        "name": "OrderProcessor",
        "framework": "net10.0",
        "kind": "Worker",
        "packages": [
          "Aspire.Npgsql"
        ]
      },
      {
        "path": "src/PaymentProcessor/PaymentProcessor.csproj",
        "name": "PaymentProcessor",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": []
      },
      {
        "path": "src/WebhookClient/WebhookClient.csproj",
        "name": "WebhookClient",
        "framework": "net10.0",
        "kind": "Web API",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Microsoft.AspNetCore.Authentication.OpenIdConnect",
          "Microsoft.AspNetCore.Components.QuickGrid"
        ]
      },
      {
        "path": "src/WebApp/WebApp.csproj",
        "name": "WebApp",
        "framework": "net10.0",
        "kind": "Client",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Aspire.Azure.AI.OpenAI",
          "CommunityToolkit.Aspire.OllamaSharp"
        ]
      },
      {
        "path": "tests/Application.UnitTests/Application.UnitTests.csproj",
        "name": "Application.UnitTests",
        "framework": "net10.0",
        "kind": "Tests",
        "packages": [
          "NSubstitute",
          "Microsoft.AspNetCore.TestHost"
        ]
      },
      {
        "path": "tests/Basket.FunctionalTests/Basket.FunctionalTests.csproj",
        "name": "Basket.FunctionalTests",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Aspire.Hosting.Redis",
          "xunit.v3.mtp-v2"
        ]
      },
      {
        "path": "tests/Basket.UnitTests/Basket.UnitTests.csproj",
        "name": "Basket.UnitTests",
        "framework": "net10.0",
        "kind": "Tests",
        "packages": [
          "Microsoft.AspNetCore.Mvc.Testing",
          "Microsoft.Extensions.Identity.Stores",
          "NSubstitute"
        ]
      },
      {
        "path": "tests/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj",
        "name": "Catalog.FunctionalTests",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Aspire.Hosting.PostgreSQL",
          "Microsoft.AspNetCore.Mvc.Testing"
        ]
      },
      {
        "path": "tests/ClientApp.UnitTests/ClientApp.UnitTests.csproj",
        "name": "ClientApp.UnitTests",
        "framework": "net10.0",
        "kind": "Client",
        "packages": [
          "Microsoft.Maui.Controls",
          "Microsoft.Maui.Controls.Compatibility",
          "Microsoft.Maui.Controls.Maps"
        ]
      },
      {
        "path": "tests/Ordering.FunctionalTests/Ordering.FunctionalTests.csproj",
        "name": "Ordering.FunctionalTests",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Aspire.Hosting.PostgreSQL",
          "Microsoft.AspNetCore.Mvc.Testing"
        ]
      },
      {
        "path": "tests/Ordering.UnitTests/Ordering.UnitTests.csproj",
        "name": "Ordering.UnitTests",
        "framework": "net10.0",
        "kind": "Tests",
        "packages": [
          "NSubstitute"
        ]
      },
      {
        "path": "tests/Webhooks.FunctionalTests/Webhooks.FunctionalTests.csproj",
        "name": "Webhooks.FunctionalTests",
        "framework": "net10.0",
        "kind": "App host",
        "packages": [
          "Asp.Versioning.Http.Client",
          "Aspire.Hosting.PostgreSQL",
          "Aspire.Hosting.RabbitMQ"
        ]
      },
      {
        "path": "tests/eShop.AppHost.UnitTests/eShop.AppHost.UnitTests.csproj",
        "name": "eShop.AppHost.UnitTests",
        "framework": "net10.0",
        "kind": "App host",
        "packages": []
      }
    ],
    "endpoints": [
      {
        "method": "GROUP",
        "route": "/api/catalog",
        "source": "CatalogApi.cs:17"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items",
        "source": "CatalogApi.cs:22"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/by",
        "source": "CatalogApi.cs:32"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/{id:int}",
        "source": "CatalogApi.cs:37"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/by/{name:minlength(1)}",
        "source": "CatalogApi.cs:42"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/{id:int}/pic",
        "source": "CatalogApi.cs:47"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/facets",
        "source": "CatalogApi.cs:53"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/withsemanticrelevance/{text:minlength(1)}",
        "source": "CatalogApi.cs:60"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/withsemanticrelevance",
        "source": "CatalogApi.cs:67"
      },
      {
        "method": "GET",
        "route": "/api/catalog/items/type/{typeId}/brand/{brandId?}",
        "source": "CatalogApi.cs:74"
      }
    ],
    "data": [
      {
        "context": "CatalogContext",
        "entities": [
          "CatalogItem",
          "CatalogBrand",
          "CatalogType"
        ]
      },
      {
        "context": "OrderingContext",
        "entities": [
          "Order",
          "OrderItem",
          "PaymentMethod",
          "Buyer",
          "CardType"
        ]
      },
      {
        "context": "WebhooksContext",
        "entities": [
          "WebhookSubscription"
        ]
      }
    ],
    "issues": [
      {
        "severity": "medium",
        "title": "Secrets-like content",
        "detail": "Scanner flagged a secrets-like literal in SKILL.md documentation.",
        "action": "Review SKILL.md for accidental credentials"
      },
      {
        "severity": "medium",
        "title": "Complex service graph",
        "detail": "Many microservices, workers, and clients increase onboarding and operational complexity.",
        "action": "Document service boundaries and key call flows"
      },
      {
        "severity": "low",
        "title": "Event bus coupling",
        "detail": "Multiple services depend on RabbitMQ event bus abstractions.",
        "action": "Map critical integration events and failure handling paths"
      }
    ],
    "onboarding": [
      "Open eShop.slnx and skim eShop.AppHost to see how services are composed and configured.",
      "Inspect eShop.ServiceDefaults for shared API versioning, auth, resilience, and telemetry setup.",
      "Review Catalog.API, Ordering.API, Basket.API, Identity.API, and Webhooks.API for core endpoints and responsibilities.",
      "Explore Ordering.Domain and Ordering.Infrastructure to understand domain model and PostgreSQL persistence.",
      "Run the functional test projects to see end-to-end behavior and environment expectations."
    ]
  }
}
