# angusa888/complyete architecture

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

- Interactive diagram: https://gitdiagram.com/angusa888/complyete
- Repository: https://github.com/angusa888/complyete

## Overview

Complyete is a minimal Next.js app; the README names the product but documents no broader capabilities. The visible user-facing workflow is the Clients page loading and displaying alphabetized client names and phone numbers from Supabase, with an error state if loading fails. The page obtains its server-side Supabase client through a cookie-aware helper. The repository excerpts do not show client creation or other compliance workflows, so they are not represented here.

Main entry points: [`app/clients/page.tsx`](https://github.com/angusa888/complyete/blob/main/app/clients/page.tsx) (Clients page), [`lib/supabase/server.ts`](https://github.com/angusa888/complyete/blob/main/lib/supabase/server.ts) (Server client helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client_ui["Client UI"]
  node_clients_page["Clients page<br/>[page.tsx]"]
end

subgraph group_supabase_access["Supabase Access"]
  node_server_client["Server client helper<br/>[server.ts]"]
  node_clients_table[("Supabase clients table")]
end

node_user(("User"))

node_user -.->|"opens"| node_clients_page
node_clients_page -->|"creates client"| node_server_client
node_clients_page -->|"queries clients"| node_clients_table

click node_clients_page "https://github.com/angusa888/complyete/blob/main/app/clients/page.tsx"
click node_server_client "https://github.com/angusa888/complyete/blob/main/lib/supabase/server.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_clients_page,node_user toneBlue
class node_server_client,node_clients_table toneAmber
```

## Components

### Client UI

- [Clients page](https://github.com/angusa888/complyete/blob/main/app/clients/page.tsx): `app/clients/page.tsx`

### Supabase Access

- [Server client helper](https://github.com/angusa888/complyete/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- **Supabase clients table**

### Other components

- **User**

## Connections

- User → Clients page: opens
- Clients page → Server client helper: creates client (evidence: `app/clients/page.tsx`)
- Clients page → Supabase clients table: queries clients (evidence: `app/clients/page.tsx`)
