Skip to content

Viewpoint Mapping

This page cross-references the four architectural viewpoints — Context, Functional, Sources/Development, and Artifacts — and connects them to the Runtime. It is the primary navigation aid for a developer who wants to move from a functional concept to the code that implements it, or from a running component back to its source and design.

For definitions of the viewpoints themselves, see Design Framework.


Each row identifies a functional domain and module, the repository that owns the implementation, and the relevant source path within that repository. Paths follow the Kotlin package convention src/main/kotlin/cards/arda/….

Functional DomainModuleRepositorySource Path
System — Identity and AccessUser Account, Tenant, Invitationaccounts-componentsrc/main/kotlin/cards/arda/accounts/system/
System — Identity and AccessDomain model (cross-repo)accounts-componentsrc/main/kotlin/cards/arda/domain/
Reference DataItemsoperationssrc/main/kotlin/cards/arda/operations/reference/item/
Reference DataBusiness Affiliatesoperationssrc/main/kotlin/cards/arda/operations/reference/businessaffiliates/
ResourcesKanban Cardsoperationssrc/main/kotlin/cards/arda/operations/resources/kanban/
ResourcesFacilitiesoperationssrc/main/kotlin/cards/arda/operations/resources/facility/
ResourcesStationsoperationssrc/main/kotlin/cards/arda/operations/resources/station/
ProcurementPurchase Ordersoperationssrc/main/kotlin/cards/arda/operations/procurement/orders/
System — Batch OperationsCSV Uploadoperationssrc/main/kotlin/cards/arda/operations/system/batch/
System — Shop AccessPDF / Label Renderingoperationssrc/main/kotlin/cards/arda/operations/shopaccess/pdfrender/
Application — Frontend ShellNext.js App Router pagesarda-frontend-appsrc/app/
General — UI ComponentsStorybook component libraryux-prototypesrc/components/
Shared Kotlin librarycommon-modulelib/src/main/kotlin/cards/arda/common/lib/
Cloud infrastructure (CDK)infrastructuresrc/main/cdk/
Protobuf schema contractssystem-protoSee repository README
Database initializationpostgres-database-initializerSee repository README
  • The operations repository is a monolithic Ktor service. Its internal package structure mirrors the functional decomposition: reference/, resources/, procurement/, system/, and shopaccess/.
  • The accounts-component repository separates runtime entry points (accounts/runtime/) from domain logic (accounts/system/) and a cross-cutting domain model (domain/).
  • The common-module library is not a functional domain. It provides the shared implementation substrate — bitemporal persistence, service layer, API layer, error handling — that all backend services depend on.

RepositoryLanguage / Build ToolArtifact TypeRegistry
operationsKotlin / GradleDocker image + Helm chartGitHub Packages (GHCR + Helm OCI)
accounts-componentKotlin / GradleDocker image + Helm chartGitHub Packages (GHCR + Helm OCI)
postgres-database-initializerSQL / DockerDocker imageGitHub Packages (GHCR)
common-moduleKotlin / GradleGradle library (jar)GitHub Packages (Maven)
arda-frontend-appTypeScript / Next.jsNext.js applicationAWS Amplify (deployed directly)
ux-prototypeTypeScript / Vitenpm package (@arda-cards/ui-components)GitHub Packages (npm)
infrastructureTypeScript / AWS CDK v2CDK applicationDeployed via cdk deploy (no registry)
system-protoProtobufGenerated stubs (jar / npm)GitHub Packages (Maven / npm)
api-testTypeScript / BrunoTest collectionsNot published; run locally or in CI

The Runtime Platform uses a five-level containment hierarchy: Root Services, Infrastructure, Partition, Component, Resource. See Platform Structure for definitions.

ArtifactRuntime LevelComponent / PartitionInfrastructureNotes
operations Docker imageComponent (Helm chart)operations componentAlpha002 (dev/stage/demo), Alpha001 (prod)Deployed as an EKS pod via Helm
accounts-component Docker imageComponent (Helm chart)accounts componentAlpha002 / Alpha001Deployed as an EKS pod via Helm
postgres-database-initializer Docker imageComponent (init job)Per-partition DB initializationAlpha002 / Alpha001Run as a Kubernetes Job on deploy
arda-frontend-app Next.js appComponentAmplify hostingAWS Amplify (per partition URL)Deployed via amplify publish; no EKS involvement
CDK stacks (infrastructure)Infrastructure + Partition + RootVPC, EKS, RDS, S3, Cognito, API Gateway, AmplifyAlpha002 / Alpha001cdk deploy synthesizes CloudFormation and applies it

Following the FQN convention from Platform Structure: {Infrastructure}-{Partition}. Examples:

  • Alpha002-dev — active development and integration testing
  • Alpha002-staging — pre-production validation
  • Alpha002-demo — customer demonstrations
  • Alpha001-prod — live production (revenue-generating)

The table below shows the entry point in each viewpoint for the main system capabilities.

CapabilityContext viewpointFunctional viewpointSource viewpointArtifact viewpointRuntime viewpoint
Identity and accessPersonasSystem domainaccounts-componentGHCR image + Helm chartaccounts component
Reference data (items, affiliates)Tenant data APIReference Data domainoperations reference/GHCR image + Helm chartoperations component
Kanban card lifecycleShop operator flowsResources domainoperations resources/kanban/GHCR image + Helm chartoperations component
Purchase ordersProcurement APIProcurement domainoperations procurement/orders/GHCR image + Helm chartoperations component
Frontend applicationBrowser / mobilearda-frontend-app src/app/Amplify deploymentAWS Amplify
UI component libraryux-prototype src/components/npm packagearda-frontend-app dependency
Cloud infrastructureAWSinfrastructure src/main/cdk/CDK applicationCloudFormation stacks