# dharanigovardhan2008/thecore architecture

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

- Interactive diagram: https://gitdiagram.com/dharanigovardhan2008/thecore
- Repository: https://github.com/dharanigovardhan2008/thecore

## Overview

TheCore is a multi-user project organizer. Users sign in, create and track projects with platform accounts, tasks, deployment details, and encrypted environment files; dashboard views summarize that information. Project and vault server actions access Supabase through a cookie-aware client. The README also documents account grouping, JSON import/export, and vault auto-lock; those capabilities are shown at subsystem level because their full implementations were not sampled. Edges reflect excerpted references and calls or README statements; unsampled wiring is omitted.

Main entry points: [`app/dashboard/vaultActions.ts`](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/vaultActions.ts) (Vault actions), [`app/dashboard/actions.ts`](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/actions.ts) (Project actions), [`app/dashboard/env/EnvClient.tsx`](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/env/EnvClient.tsx) (Vault workspace), [`app/dashboard/DashboardClient.tsx`](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/DashboardClient.tsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity &amp; app"]
  node_authui["Sign in<br/>[page.tsx]"]
  node_supabaseauth{{"Supabase Auth"}}
end

subgraph group_projects["Project tracking"]
  node_dashboard["Dashboard"]
  node_projectdetail["Project details"]
  node_projectdialog["Project editor"]
  node_projectactions["Project actions<br/>[actions.ts]"]
  node_projectcards["Project cards<br/>[ProjectCard.tsx]"]
  node_stats["Status chart<br/>[DonutChart.tsx]"]
end

subgraph group_organization["Accounts &amp; tasks"]
  node_accounts["Accounts organizer<br/>[AccountsClient.tsx]"]
  node_todos["Task tracking<br/>[TodosClient.tsx]"]
  node_todoform["Task editor<br/>[NewTodoModal.tsx]"]
end

subgraph group_vault["Encrypted vault"]
  node_vaultclient["Vault workspace<br/>[EnvClient.tsx]"]
  node_vaultprovider["Vault session<br/>[VaultProvider.tsx]"]
  node_crypto["Client encryption<br/>[crypto.ts]"]
  node_envmodal["Environment editor<br/>[EnvFileModal.tsx]"]
  node_vaultactions["Vault actions<br/>[vaultActions.ts]"]
  node_envvault["Project vault view<br/>[EnvVault.tsx]"]
end

subgraph group_data["Persistence"]
  node_dataactions["Project data actions<br/>[actions.ts]"]
  node_vaultdata["Vault data actions<br/>[vaultActions.ts]"]
  node_supabaseclient["Supabase client<br/>[server.ts]"]
  node_database[("Supabase Postgres")]
  node_backup["JSON backup"]
end

node_user(("Developer"))

node_user -->|"signs in"| node_authui
node_authui -->|"authenticates"| node_supabaseauth
node_user -->|"manages projects"| node_dashboard
node_dashboard -->|"opens editor"| node_projectdialog
node_dashboard -->|"renders"| node_projectcards
node_dashboard -->|"renders"| node_stats
node_projectdialog -->|"creates or edits"| node_projectactions
node_projectdetail -->|"updates project"| node_projectactions
node_projectcards -.->|"opens project"| node_projectdetail
node_user -->|"organizes accounts"| node_accounts
node_user -->|"tracks tasks"| node_todos
node_todos -->|"opens editor"| node_todoform
node_todos -->|"updates tasks"| node_projectactions
node_user -->|"manages env files"| node_vaultclient
node_vaultclient -->|"decrypts files"| node_crypto
node_vaultclient -->|"deletes files"| node_vaultactions
node_vaultclient -->|"edits files"| node_envmodal
node_vaultclient -->|"uses session"| node_vaultprovider
node_vaultprovider -->|"verifies password"| node_crypto
node_vaultprovider -->|"loads verifier"| node_vaultactions
node_projectdetail -->|"renders"| node_envvault
node_envvault -->|"manages records"| node_vaultactions
node_projectactions -->|"creates client"| node_supabaseclient
node_vaultactions -->|"creates client"| node_supabaseclient
node_projectactions -->|"reads and writes"| node_database
node_vaultactions -->|"reads and writes"| node_database
node_vaultactions -->|"logs activity"| node_projectactions
node_user -->|"imports or exports"| node_backup
node_backup -.->|"backs up records"| node_database

click node_authui "https://github.com/dharanigovardhan2008/thecore/blob/main/app/login/page.tsx"
click node_dashboard "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/DashboardClient.tsx"
click node_projectdetail "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/%5Bid%5D/ProjectDetailClient.tsx"
click node_projectdialog "https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/NewProjectDialog.tsx"
click node_projectactions "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/actions.ts"
click node_projectcards "https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/ProjectCard.tsx"
click node_stats "https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/DonutChart.tsx"
click node_accounts "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/accounts/AccountsClient.tsx"
click node_todos "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/todos/TodosClient.tsx"
click node_todoform "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/todos/NewTodoModal.tsx"
click node_vaultclient "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/env/EnvClient.tsx"
click node_vaultprovider "https://github.com/dharanigovardhan2008/thecore/blob/main/components/providers/VaultProvider.tsx"
click node_crypto "https://github.com/dharanigovardhan2008/thecore/blob/main/lib/crypto.ts"
click node_envmodal "https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/EnvFileModal.tsx"
click node_vaultactions "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/vaultActions.ts"
click node_envvault "https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/EnvVault.tsx"
click node_dataactions "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/actions.ts"
click node_vaultdata "https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/vaultActions.ts"
click node_supabaseclient "https://github.com/dharanigovardhan2008/thecore/blob/main/utils/supabase/server.ts"
click node_backup "https://github.com/dharanigovardhan2008/thecore/tree/main/app/dashboard"

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_authui,node_supabaseauth toneBlue
class node_dashboard,node_projectdetail,node_projectdialog,node_projectactions,node_projectcards,node_stats toneAmber
class node_accounts,node_todos,node_todoform toneMint
class node_vaultclient,node_vaultprovider,node_crypto,node_envmodal,node_vaultactions,node_envvault toneRose
class node_dataactions,node_vaultdata,node_supabaseclient,node_database,node_backup,node_user toneIndigo
```

## Components

### Identity & app

- [Sign in](https://github.com/dharanigovardhan2008/thecore/blob/main/app/login/page.tsx): `app/login/page.tsx`
- **Supabase Auth**

### Project tracking

- [Dashboard](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/DashboardClient.tsx): `app/dashboard/DashboardClient.tsx`
- [Project details](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/%5Bid%5D/ProjectDetailClient.tsx): `app/dashboard/[id]/ProjectDetailClient.tsx`
- [Project editor](https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/NewProjectDialog.tsx): `components/ui/NewProjectDialog.tsx`
- [Project actions](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/actions.ts): `app/dashboard/actions.ts`
- [Project cards](https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/ProjectCard.tsx): `components/ui/ProjectCard.tsx`
- [Status chart](https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/DonutChart.tsx): `components/ui/DonutChart.tsx`

### Accounts & tasks

- [Accounts organizer](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/accounts/AccountsClient.tsx): `app/dashboard/accounts/AccountsClient.tsx`
- [Task tracking](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/todos/TodosClient.tsx): `app/dashboard/todos/TodosClient.tsx`
- [Task editor](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/todos/NewTodoModal.tsx): `app/dashboard/todos/NewTodoModal.tsx`

### Encrypted vault

- [Vault workspace](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/env/EnvClient.tsx): `app/dashboard/env/EnvClient.tsx`
- [Vault session](https://github.com/dharanigovardhan2008/thecore/blob/main/components/providers/VaultProvider.tsx): `components/providers/VaultProvider.tsx`
- [Client encryption](https://github.com/dharanigovardhan2008/thecore/blob/main/lib/crypto.ts): `lib/crypto.ts`
- [Environment editor](https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/EnvFileModal.tsx): `components/ui/EnvFileModal.tsx`
- [Vault actions](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/vaultActions.ts): `app/dashboard/vaultActions.ts`
- [Project vault view](https://github.com/dharanigovardhan2008/thecore/blob/main/components/ui/EnvVault.tsx): `components/ui/EnvVault.tsx`

### Persistence

- [Project data actions](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/actions.ts): `app/dashboard/actions.ts`
- [Vault data actions](https://github.com/dharanigovardhan2008/thecore/blob/main/app/dashboard/vaultActions.ts): `app/dashboard/vaultActions.ts`
- [Supabase client](https://github.com/dharanigovardhan2008/thecore/blob/main/utils/supabase/server.ts): `utils/supabase/server.ts`
- **Supabase Postgres**
- [JSON backup](https://github.com/dharanigovardhan2008/thecore/tree/main/app/dashboard): `app/dashboard`

### Other components

- **Developer**

## Connections

- Developer → Sign in: signs in (evidence: `app/login/page.tsx`)
- Sign in → Supabase Auth: authenticates (evidence: `app/login/page.tsx`)
- Developer → Dashboard: manages projects (evidence: `README.md`)
- Dashboard → Project editor: opens editor (evidence: `app/dashboard/DashboardClient.tsx`)
- Dashboard → Project cards: renders (evidence: `app/dashboard/DashboardClient.tsx`)
- Dashboard → Status chart: renders (evidence: `app/dashboard/DashboardClient.tsx`)
- Project editor → Project actions: creates or edits (evidence: `components/ui/NewProjectDialog.tsx`)
- Project details → Project actions: updates project (evidence: `app/dashboard/[id]/ProjectDetailClient.tsx`)
- Project cards → Project details: opens project
- Developer → Accounts organizer: organizes accounts (evidence: `README.md`)
- Developer → Task tracking: tracks tasks (evidence: `README.md`)
- Task tracking → Task editor: opens editor (evidence: `app/dashboard/todos/TodosClient.tsx`)
- Task tracking → Project actions: updates tasks (evidence: `app/dashboard/todos/TodosClient.tsx`)
- Developer → Vault workspace: manages env files (evidence: `README.md`)
- Vault workspace → Client encryption: decrypts files (evidence: `app/dashboard/env/EnvClient.tsx`)
- Vault workspace → Vault actions: deletes files (evidence: `app/dashboard/env/EnvClient.tsx`)
- Vault workspace → Environment editor: edits files (evidence: `app/dashboard/env/EnvClient.tsx`)
- Vault workspace → Vault session: uses session (evidence: `app/dashboard/env/EnvClient.tsx`)
- Vault session → Client encryption: verifies password (evidence: `components/providers/VaultProvider.tsx`)
- Vault session → Vault actions: loads verifier (evidence: `components/providers/VaultProvider.tsx`)
- Project details → Project vault view: renders (evidence: `app/dashboard/[id]/ProjectDetailClient.tsx`)
- Project vault view → Vault actions: manages records (evidence: `components/ui/EnvVault.tsx`)
- Project actions → Supabase client: creates client (evidence: `app/dashboard/actions.ts`)
- Vault actions → Supabase client: creates client (evidence: `app/dashboard/vaultActions.ts`)
- Project actions → Supabase Postgres: reads and writes (evidence: `app/dashboard/actions.ts`)
- Vault actions → Supabase Postgres: reads and writes (evidence: `app/dashboard/vaultActions.ts`)
- Vault actions → Project actions: logs activity (evidence: `app/dashboard/vaultActions.ts`)
- Developer → JSON backup: imports or exports (evidence: `README.md`)
- JSON backup → Supabase Postgres: backs up records
