# flohoeller/affectui architecture

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

- Interactive diagram: https://gitdiagram.com/flohoeller/affectui
- Repository: https://github.com/flohoeller/affectui

## Overview

affectUI is a source-owned React component library for AI-agent interfaces and general application UI. The principal workflow is a developer selecting components and adding them through the shadcn CLI or an AI coding tool using the MCP server. Its runtime product is the components themselves, with additional blocks, illustrations, and motion effects. The tree and excerpts show self-contained TSX modules; they do not show registry or MCP implementation, so those remain external. Capability groupings follow the README and paths; no internal call graph is inferred.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Agent UI"]
  node_toolcall["Tool Call Card<br/>[tool-call-card.tsx]"]
  node_toolcall_clean["Tool Call Card Clean"]
  node_decision["Decision Inbox<br/>[decision-inbox.tsx]"]
  node_message_actions["Message Actions"]
  node_message_actions_clean["Message Actions Clean"]
  node_email_draft["Email Draft<br/>[email-draft.tsx]"]
end

subgraph group_app["App Components"]
  node_color_picker["Color Picker<br/>[color-picker.tsx]"]
  node_color_picker_clean["Color Picker Clean"]
  node_context_menu["Context Menu<br/>[context-menu.tsx]"]
  node_context_menu_clean["Context Menu Clean"]
  node_date_picker["Date Picker<br/>[date-picker.tsx]"]
  node_date_picker_clean["Date Picker Clean"]
  node_dropdown["Dropdown Menu<br/>[dropdown-menu.tsx]"]
  node_dropdown_clean["Dropdown Menu Clean"]
  node_otp["OTP Input<br/>[otp-input.tsx]"]
  node_otp_clean["OTP Input Clean"]
end

subgraph group_blocks["Page Blocks"]
  node_logo_marquee["Logo Marquee<br/>[logo-marquee.tsx]"]
  node_logo_marquee_clean["Logo Marquee Clean"]
  node_testimonial_wall["Testimonial Wall"]
  node_testimonial_wall_clean["Testimonial Wall Clean"]
end

subgraph group_visuals["Visual Assets"]
  node_integration_beam["Integration Beam"]
  node_region_dach["Region DACH<br/>[region-dach.tsx]"]
  node_number_ticker["Number Ticker<br/>[number-ticker.tsx]"]
  node_grid_background["Grid Background"]
  node_text_reveal["Text Reveal<br/>[text-reveal.tsx]"]
end

node_developer(("Developer"))
node_shadcn["shadcn CLI"]
node_mcp["AI coding tools / MCP"]

node_developer -->|"installs with"| node_shadcn
node_developer -->|"adds via"| node_mcp

click node_toolcall "https://github.com/flohoeller/affectui/blob/main/components/tool-call-card.tsx"
click node_toolcall_clean "https://github.com/flohoeller/affectui/blob/main/components/tool-call-card-clean.tsx"
click node_decision "https://github.com/flohoeller/affectui/blob/main/components/decision-inbox.tsx"
click node_message_actions "https://github.com/flohoeller/affectui/blob/main/components/message-actions.tsx"
click node_message_actions_clean "https://github.com/flohoeller/affectui/blob/main/components/message-actions-clean.tsx"
click node_email_draft "https://github.com/flohoeller/affectui/blob/main/components/email-draft.tsx"
click node_color_picker "https://github.com/flohoeller/affectui/blob/main/components/color-picker.tsx"
click node_color_picker_clean "https://github.com/flohoeller/affectui/blob/main/components/color-picker-clean.tsx"
click node_context_menu "https://github.com/flohoeller/affectui/blob/main/components/context-menu.tsx"
click node_context_menu_clean "https://github.com/flohoeller/affectui/blob/main/components/context-menu-clean.tsx"
click node_date_picker "https://github.com/flohoeller/affectui/blob/main/components/date-picker.tsx"
click node_date_picker_clean "https://github.com/flohoeller/affectui/blob/main/components/date-picker-clean.tsx"
click node_dropdown "https://github.com/flohoeller/affectui/blob/main/components/dropdown-menu.tsx"
click node_dropdown_clean "https://github.com/flohoeller/affectui/blob/main/components/dropdown-menu-clean.tsx"
click node_otp "https://github.com/flohoeller/affectui/blob/main/components/otp-input.tsx"
click node_otp_clean "https://github.com/flohoeller/affectui/blob/main/components/otp-input-clean.tsx"
click node_logo_marquee "https://github.com/flohoeller/affectui/blob/main/blocks/logo-marquee.tsx"
click node_logo_marquee_clean "https://github.com/flohoeller/affectui/blob/main/blocks/logo-marquee-clean.tsx"
click node_testimonial_wall "https://github.com/flohoeller/affectui/blob/main/blocks/testimonial-wall.tsx"
click node_testimonial_wall_clean "https://github.com/flohoeller/affectui/blob/main/blocks/testimonial-wall-clean.tsx"
click node_integration_beam "https://github.com/flohoeller/affectui/blob/main/illustrations/integration-beam.tsx"
click node_region_dach "https://github.com/flohoeller/affectui/blob/main/illustrations/region-dach.tsx"
click node_number_ticker "https://github.com/flohoeller/affectui/blob/main/motion/number-ticker.tsx"
click node_grid_background "https://github.com/flohoeller/affectui/blob/main/motion/grid-background.tsx"
click node_text_reveal "https://github.com/flohoeller/affectui/blob/main/motion/text-reveal.tsx"

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_toolcall,node_toolcall_clean,node_decision,node_message_actions,node_message_actions_clean,node_email_draft toneBlue
class node_color_picker,node_color_picker_clean,node_context_menu,node_context_menu_clean,node_date_picker,node_date_picker_clean,node_dropdown,node_dropdown_clean,node_otp,node_otp_clean toneAmber
class node_logo_marquee,node_logo_marquee_clean,node_testimonial_wall,node_testimonial_wall_clean toneMint
class node_integration_beam,node_region_dach,node_number_ticker,node_grid_background,node_text_reveal toneRose
class node_developer,node_shadcn,node_mcp toneIndigo
```

## Components

### Agent UI

- [Tool Call Card](https://github.com/flohoeller/affectui/blob/main/components/tool-call-card.tsx): `components/tool-call-card.tsx`
- [Tool Call Card Clean](https://github.com/flohoeller/affectui/blob/main/components/tool-call-card-clean.tsx): `components/tool-call-card-clean.tsx`
- [Decision Inbox](https://github.com/flohoeller/affectui/blob/main/components/decision-inbox.tsx): `components/decision-inbox.tsx`
- [Message Actions](https://github.com/flohoeller/affectui/blob/main/components/message-actions.tsx): `components/message-actions.tsx`
- [Message Actions Clean](https://github.com/flohoeller/affectui/blob/main/components/message-actions-clean.tsx): `components/message-actions-clean.tsx`
- [Email Draft](https://github.com/flohoeller/affectui/blob/main/components/email-draft.tsx): `components/email-draft.tsx`

### App Components

- [Color Picker](https://github.com/flohoeller/affectui/blob/main/components/color-picker.tsx): `components/color-picker.tsx`
- [Color Picker Clean](https://github.com/flohoeller/affectui/blob/main/components/color-picker-clean.tsx): `components/color-picker-clean.tsx`
- [Context Menu](https://github.com/flohoeller/affectui/blob/main/components/context-menu.tsx): `components/context-menu.tsx`
- [Context Menu Clean](https://github.com/flohoeller/affectui/blob/main/components/context-menu-clean.tsx): `components/context-menu-clean.tsx`
- [Date Picker](https://github.com/flohoeller/affectui/blob/main/components/date-picker.tsx): `components/date-picker.tsx`
- [Date Picker Clean](https://github.com/flohoeller/affectui/blob/main/components/date-picker-clean.tsx): `components/date-picker-clean.tsx`
- [Dropdown Menu](https://github.com/flohoeller/affectui/blob/main/components/dropdown-menu.tsx): `components/dropdown-menu.tsx`
- [Dropdown Menu Clean](https://github.com/flohoeller/affectui/blob/main/components/dropdown-menu-clean.tsx): `components/dropdown-menu-clean.tsx`
- [OTP Input](https://github.com/flohoeller/affectui/blob/main/components/otp-input.tsx): `components/otp-input.tsx`
- [OTP Input Clean](https://github.com/flohoeller/affectui/blob/main/components/otp-input-clean.tsx): `components/otp-input-clean.tsx`

### Page Blocks

- [Logo Marquee](https://github.com/flohoeller/affectui/blob/main/blocks/logo-marquee.tsx): `blocks/logo-marquee.tsx`
- [Logo Marquee Clean](https://github.com/flohoeller/affectui/blob/main/blocks/logo-marquee-clean.tsx): `blocks/logo-marquee-clean.tsx`
- [Testimonial Wall](https://github.com/flohoeller/affectui/blob/main/blocks/testimonial-wall.tsx): `blocks/testimonial-wall.tsx`
- [Testimonial Wall Clean](https://github.com/flohoeller/affectui/blob/main/blocks/testimonial-wall-clean.tsx): `blocks/testimonial-wall-clean.tsx`

### Visual Assets

- [Integration Beam](https://github.com/flohoeller/affectui/blob/main/illustrations/integration-beam.tsx): `illustrations/integration-beam.tsx`
- [Region DACH](https://github.com/flohoeller/affectui/blob/main/illustrations/region-dach.tsx): `illustrations/region-dach.tsx`
- [Number Ticker](https://github.com/flohoeller/affectui/blob/main/motion/number-ticker.tsx): `motion/number-ticker.tsx`
- [Grid Background](https://github.com/flohoeller/affectui/blob/main/motion/grid-background.tsx): `motion/grid-background.tsx`
- [Text Reveal](https://github.com/flohoeller/affectui/blob/main/motion/text-reveal.tsx): `motion/text-reveal.tsx`

### Other components

- **Developer**
- **shadcn CLI**
- **AI coding tools / MCP**

## Connections

- Developer → shadcn CLI: installs with (evidence: `README.md`)
- Developer → AI coding tools / MCP: adds via (evidence: `README.md`)
