# ominoustype/app-manager-test architecture

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

- Interactive diagram: https://gitdiagram.com/ominoustype/app-manager-test
- Repository: https://github.com/ominoustype/app-manager-test

## Overview

This tree contains the shared TypeScript bounded-context package from a DDD/hexagonal monorepo, not a concrete business application. Its reusable runtime capabilities are command/query dispatch, domain-event infrastructure, persistence adapters, and common domain primitives. The README describes applications as consumers of bounded-context packages; no concrete user-facing workflow or business stages appear in the supplied tree. Edges are limited to documented package use and calls visible in excerpts; other listed adapters are shown as capabilities without guessed wiring.

Main entry points: [`src/contexts/shared/src/infrastructure/persistence/ddbOneTable/ddbOneTableRepository.ts`](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/persistence/ddbOneTable/ddbOneTableRepository.ts) (OneTable Adapter), [`src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts`](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts) (Query Handler Registry), [`src/contexts/shared/src/infrastructure/persistence/dynamodb`](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/persistence/dynamodb) (DynamoDB Clients), [`src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts`](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts) (Command Handler Registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cqrs["Command and Query"]
  node_commandbus["In-Memory Command Bus"]
  node_commandregistry["Command Handler Registry"]
  node_commandcontracts["Command Contracts"]
  node_querybus["In-Memory Query Bus"]
  node_queryregistry["Query Handler Registry"]
  node_querycontracts["Query Contracts"]
end

subgraph group_events["Domain Events"]
  node_eventcontracts["Event Contracts"]
  node_eventadapters["Event Bus Adapters"]
  node_eventbridge["EventBridge Adapter"]
end

subgraph group_persistence["Persistence Adapters"]
  node_dynamodb["DynamoDB Clients"]
  node_onetabledb["OneTable Adapter"]
  node_mongoose["Mongoose Adapter"]
end

subgraph group_foundation["Domain Foundation"]
  node_shared["Shared Context Package"]
  node_aggregate["Aggregate Root<br/>[aggregateRoot.ts]"]
  node_valueobjects["Value Objects<br/>[valueObject.ts]"]
  node_time["Clock and DateTime<br/>[clock.ts]"]
  node_logging["Logging<br/>[logger.ts]"]
end

node_applications(("Context Applications"))

node_applications -->|"uses package"| node_shared
node_querybus -->|"looks up handler"| node_queryregistry
node_queryregistry -->|"indexes handlers"| node_querycontracts
node_commandregistry -->|"indexes handlers"| node_commandcontracts
node_onetabledb -->|"persists primitives"| node_aggregate
node_onetabledb -->|"uses table model"| node_dynamodb
node_dynamodb -->|"provides document client"| node_onetabledb

click node_shared "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared"
click node_commandbus "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/commandBus/inMemoryCommandBus.ts"
click node_commandregistry "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts"
click node_commandcontracts "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/commandBus"
click node_querybus "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/queryBus/inMemoryQueryBus.ts"
click node_queryregistry "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts"
click node_querycontracts "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/queryBus"
click node_eventcontracts "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/eventBus"
click node_eventadapters "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/eventBus"
click node_eventbridge "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/eventBus/eventBridge/eventBridgeEventBus.ts"
click node_dynamodb "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/persistence/dynamodb"
click node_onetabledb "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/persistence/ddbOneTable/ddbOneTableRepository.ts"
click node_mongoose "https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/mongoose"
click node_aggregate "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/aggregateRoot.ts"
click node_valueobjects "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/valueObject.ts"
click node_time "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/clock.ts"
click node_logging "https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/logger.ts"

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_commandbus,node_commandregistry,node_commandcontracts,node_querybus,node_queryregistry,node_querycontracts toneBlue
class node_eventcontracts,node_eventadapters,node_eventbridge toneAmber
class node_dynamodb,node_onetabledb,node_mongoose toneMint
class node_shared,node_aggregate,node_valueobjects,node_time,node_logging toneRose
class node_applications toneIndigo
```

## Components

### Command and Query

- [In-Memory Command Bus](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/commandBus/inMemoryCommandBus.ts): `src/contexts/shared/src/infrastructure/commandBus/inMemoryCommandBus.ts`
- [Command Handler Registry](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts): `src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts`
- [Command Contracts](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/commandBus): `src/contexts/shared/src/domain/commandBus`
- [In-Memory Query Bus](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/queryBus/inMemoryQueryBus.ts): `src/contexts/shared/src/infrastructure/queryBus/inMemoryQueryBus.ts`
- [Query Handler Registry](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts): `src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts`
- [Query Contracts](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/queryBus): `src/contexts/shared/src/domain/queryBus`

### Domain Events

- [Event Contracts](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/domain/eventBus): `src/contexts/shared/src/domain/eventBus`
- [Event Bus Adapters](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/eventBus): `src/contexts/shared/src/infrastructure/eventBus`
- [EventBridge Adapter](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/eventBus/eventBridge/eventBridgeEventBus.ts): `src/contexts/shared/src/infrastructure/eventBus/eventBridge/eventBridgeEventBus.ts`

### Persistence Adapters

- [DynamoDB Clients](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/persistence/dynamodb): `src/contexts/shared/src/infrastructure/persistence/dynamodb`
- [OneTable Adapter](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/infrastructure/persistence/ddbOneTable/ddbOneTableRepository.ts): `src/contexts/shared/src/infrastructure/persistence/ddbOneTable/ddbOneTableRepository.ts`
- [Mongoose Adapter](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared/src/infrastructure/mongoose): `src/contexts/shared/src/infrastructure/mongoose`

### Domain Foundation

- [Shared Context Package](https://github.com/ominoustype/app-manager-test/tree/main/src/contexts/shared): `src/contexts/shared`
- [Aggregate Root](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/aggregateRoot.ts): `src/contexts/shared/src/domain/aggregateRoot.ts`
- [Value Objects](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/valueObject.ts): `src/contexts/shared/src/domain/valueObject.ts`
- [Clock and DateTime](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/clock.ts): `src/contexts/shared/src/domain/clock.ts`
- [Logging](https://github.com/ominoustype/app-manager-test/blob/main/src/contexts/shared/src/domain/logger.ts): `src/contexts/shared/src/domain/logger.ts`

### Other components

- **Context Applications**

## Connections

- Context Applications → Shared Context Package: uses package
- In-Memory Query Bus → Query Handler Registry: looks up handler (evidence: `src/contexts/shared/src/infrastructure/queryBus/inMemoryQueryBus.ts`)
- Query Handler Registry → Query Contracts: indexes handlers (evidence: `src/contexts/shared/src/infrastructure/queryBus/queryHandlersInformation.ts`)
- Command Handler Registry → Command Contracts: indexes handlers (evidence: `src/contexts/shared/src/infrastructure/commandBus/commandHandlersInformation.ts`)
- OneTable Adapter → Aggregate Root: persists primitives
- OneTable Adapter → DynamoDB Clients: uses table model
- DynamoDB Clients → OneTable Adapter: provides document client
