Skip to main content

Architecture Overview

The KNX Clarity platform is built on AWS using a modern, serverless-first architecture.

Technology Stack

LayerTechnologyPurpose
FrontendReact, TypeScript, TailwindCSSSingle-page web application
AuthAWS Cognito (Amplify Auth)User authentication and authorization
APIAWS AppSync (GraphQL)Primary API for the web app
REST APILambda + API GatewayPublic REST API for SDK/integrations
DatabaseAurora Serverless v2 (MySQL)Relational data storage
StorageAmazon S3ETS files, attachments, assets
IaCAmplify Gen2 + AWS CDKInfrastructure as Code
CI/CDGitHub ActionsAutomated testing and deployment
DocsDocusaurus (Vercel)Developer documentation

Repository Structure

knx-project-cloud/
├── amplify/ # Amplify Gen2 backend definitions
├── apps/
│ └── web/ # React frontend application
├── packages/
│ ├── core/ # Shared schema, types, constants
│ └── sdk/ # TypeScript SDK for the REST API
├── infra/ # Custom CDK stacks (monitoring, OIDC)
├── docs/
│ └── developer/ # Docusaurus developer docs
├── tests/ # E2E and load tests
└── .github/ # CI/CD workflows and templates

Data Flow

  1. Web App communicates with the backend via AppSync (GraphQL)
  2. External integrations use the REST API via the SDK
  3. ETS files are uploaded to S3 and parsed by Lambda functions
  4. All data is stored in Aurora Serverless v2 (MySQL)