# belsinghferrus/ferrus100k architecture

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

- Interactive diagram: https://gitdiagram.com/belsinghferrus/ferrus100k
- Repository: https://github.com/belsinghferrus/ferrus100k

## Overview

This is a Next.js creator-growth tracking application: a user records follower growth and short-form video performance, then reviews trends and plans follow-up content. Its main workflow runs from authenticated workspace pages through domain forms and server actions into Supabase, with calculations feeding dashboard and analytics views. The graph also preserves the documented-in-code branches for ideas, experiments, hooks, series, weekly reviews, check-ins, and account settings. Several routes and action implementations were not sampled, so their internal behavior and unshown links are intentionally omitted.

Main entry points: [`src/app/(app)`](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)) (Server actions), [`src/app/(app)/dashboard/page.js`](https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(app)/dashboard/page.js) (Growth dashboard), [`src/lib/validations`](https://github.com/belsinghferrus/ferrus100k/tree/main/src/lib/validations) (Input validation), [`src/components/reels/ReelFormDialog.js`](https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/reels/ReelFormDialog.js) (Reel editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace and access"]
  node_auth["Sign-in<br/>[page.js]"]
  node_shell["Workspace shell<br/>[layout.js]"]
  node_settings["Profile and settings"]
end

subgraph group_measurement["Growth measurement"]
  node_dashboard["Growth dashboard<br/>[page.js]"]
  node_dashboard_views["Dashboard panels"]
  node_daily["Daily growth log"]
  node_checkin["Daily check-in<br/>[CheckInDialog.js]"]
  node_analytics["Analytics views"]
  node_trajectory["Trajectory calculations<br/>[trajectory.js]"]
  node_weekly["Weekly reviews"]
  node_weekly_form["Weekly review editor"]
end

subgraph group_content["Content planning"]
  node_reels["Reel tracking"]
  node_reel_form["Reel editor<br/>[ReelFormDialog.js]"]
  node_reel_analysis["Reel analysis"]
  node_ideas["Content ideas"]
  node_experiments["Experiments"]
  node_hooks["Hooks library"]
  node_series["Content series"]
  node_pillars["Pillar manager<br/>[PillarsManager.js]"]
end

subgraph group_persistence["Persistence and rules"]
  node_server_actions["Server actions"]
  node_validation["Input validation"]
  node_supabase_client["Server client<br/>[server.js]"]
  node_database[("Supabase data store")]
  node_formatting["Metrics and formatting<br/>[format.js]"]
  node_csv["CSV import/export<br/>[csv.js]"]
end

node_creator(("Creator"))

node_creator -->|"signs in"| node_auth
node_creator -->|"opens workspace"| node_shell
node_shell -.->|"navigates"| node_dashboard
node_dashboard -->|"queries growth data"| node_supabase_client
node_dashboard -->|"computes trajectory"| node_trajectory
node_dashboard -->|"renders panels"| node_dashboard_views
node_daily -.->|"uses actions"| node_server_actions
node_checkin -->|"submits check-in"| node_server_actions
node_analytics -.->|"renders analysis"| node_reel_analysis
node_reels -->|"renders tables"| node_reel_analysis
node_reel_form -->|"saves reel"| node_server_actions
node_reel_form -->|"validates fields"| node_validation
node_reel_form -->|"computes preview"| node_formatting
node_ideas -->|"uses actions"| node_server_actions
node_ideas -->|"validates ideas"| node_validation
node_experiments -->|"uses actions"| node_server_actions
node_hooks -.->|"uses actions"| node_server_actions
node_series -.->|"uses actions"| node_server_actions
node_weekly_form -->|"saves and autofills"| node_server_actions
node_weekly_form -->|"validates review"| node_validation
node_weekly -.->|"renders editor"| node_weekly_form
node_settings -.->|"renders manager"| node_pillars
node_pillars -->|"adds or deletes"| node_server_actions
node_server_actions -->|"creates client"| node_supabase_client
node_server_actions -->|"parses input"| node_validation
node_supabase_client -.->|"reads and writes"| node_database
node_settings -.->|"imports and exports"| node_csv
node_dashboard -.->|"formats metrics"| node_formatting

click node_auth "https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(auth)/login/page.js"
click node_shell "https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(app)/layout.js"
click node_dashboard "https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(app)/dashboard/page.js"
click node_dashboard_views "https://github.com/belsinghferrus/ferrus100k/tree/main/src/components/dashboard"
click node_daily "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/daily"
click node_checkin "https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/checkin/CheckInDialog.js"
click node_analytics "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/analytics"
click node_trajectory "https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/calculations/trajectory.js"
click node_reels "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/reels"
click node_reel_form "https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/reels/ReelFormDialog.js"
click node_reel_analysis "https://github.com/belsinghferrus/ferrus100k/tree/main/src/components/reels"
click node_ideas "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/ideas"
click node_experiments "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/experiments"
click node_hooks "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/hooks"
click node_series "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/series"
click node_weekly "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/weekly"
click node_weekly_form "https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/weekly/WeeklyFormDialog.js"
click node_settings "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/settings"
click node_pillars "https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/settings/PillarsManager.js"
click node_server_actions "https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)"
click node_validation "https://github.com/belsinghferrus/ferrus100k/tree/main/src/lib/validations"
click node_supabase_client "https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/supabase/server.js"
click node_formatting "https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/calculations/format.js"
click node_csv "https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/csv.js"

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_auth,node_shell,node_settings toneBlue
class node_dashboard,node_dashboard_views,node_daily,node_checkin,node_analytics,node_trajectory,node_weekly,node_weekly_form toneAmber
class node_reels,node_reel_form,node_reel_analysis,node_ideas,node_experiments,node_hooks,node_series,node_pillars toneMint
class node_server_actions,node_validation,node_supabase_client,node_database,node_formatting,node_csv toneRose
class node_creator toneIndigo
```

## Components

### Workspace and access

- [Sign-in](https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(auth)/login/page.js): `src/app/(auth)/login/page.js`
- [Workspace shell](https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(app)/layout.js): `src/app/(app)/layout.js`
- [Profile and settings](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/settings): `src/app/(app)/settings`

### Growth measurement

- [Growth dashboard](https://github.com/belsinghferrus/ferrus100k/blob/main/src/app/(app)/dashboard/page.js): `src/app/(app)/dashboard/page.js`
- [Dashboard panels](https://github.com/belsinghferrus/ferrus100k/tree/main/src/components/dashboard): `src/components/dashboard`
- [Daily growth log](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/daily): `src/app/(app)/daily`
- [Daily check-in](https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/checkin/CheckInDialog.js): `src/components/checkin/CheckInDialog.js`
- [Analytics views](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/analytics): `src/app/(app)/analytics`
- [Trajectory calculations](https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/calculations/trajectory.js): `src/lib/calculations/trajectory.js`
- [Weekly reviews](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/weekly): `src/app/(app)/weekly`
- [Weekly review editor](https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/weekly/WeeklyFormDialog.js): `src/components/weekly/WeeklyFormDialog.js`

### Content planning

- [Reel tracking](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/reels): `src/app/(app)/reels`
- [Reel editor](https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/reels/ReelFormDialog.js): `src/components/reels/ReelFormDialog.js`
- [Reel analysis](https://github.com/belsinghferrus/ferrus100k/tree/main/src/components/reels): `src/components/reels`
- [Content ideas](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/ideas): `src/app/(app)/ideas`
- [Experiments](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/experiments): `src/app/(app)/experiments`
- [Hooks library](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/hooks): `src/app/(app)/hooks`
- [Content series](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)/series): `src/app/(app)/series`
- [Pillar manager](https://github.com/belsinghferrus/ferrus100k/blob/main/src/components/settings/PillarsManager.js): `src/components/settings/PillarsManager.js`

### Persistence and rules

- [Server actions](https://github.com/belsinghferrus/ferrus100k/tree/main/src/app/(app)): `src/app/(app)`
- [Input validation](https://github.com/belsinghferrus/ferrus100k/tree/main/src/lib/validations): `src/lib/validations`
- [Server client](https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/supabase/server.js): `src/lib/supabase/server.js`
- **Supabase data store**
- [Metrics and formatting](https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/calculations/format.js): `src/lib/calculations/format.js`
- [CSV import/export](https://github.com/belsinghferrus/ferrus100k/blob/main/src/lib/csv.js): `src/lib/csv.js`

### Other components

- **Creator**

## Connections

- Creator → Sign-in: signs in
- Creator → Workspace shell: opens workspace
- Workspace shell → Growth dashboard: navigates
- Growth dashboard → Server client: queries growth data (evidence: `src/app/(app)/dashboard/page.js`)
- Growth dashboard → Trajectory calculations: computes trajectory (evidence: `src/app/(app)/dashboard/page.js`)
- Growth dashboard → Dashboard panels: renders panels (evidence: `src/app/(app)/dashboard/page.js`)
- Daily growth log → Server actions: uses actions
- Daily check-in → Server actions: submits check-in (evidence: `src/components/checkin/CheckInDialog.js`)
- Analytics views → Reel analysis: renders analysis
- Reel tracking → Reel analysis: renders tables (evidence: `src/app/(app)/reels/page.js`)
- Reel editor → Server actions: saves reel (evidence: `src/components/reels/ReelFormDialog.js`)
- Reel editor → Input validation: validates fields (evidence: `src/components/reels/ReelFormDialog.js`)
- Reel editor → Metrics and formatting: computes preview (evidence: `src/components/reels/ReelFormDialog.js`)
- Content ideas → Server actions: uses actions (evidence: `src/app/(app)/ideas/actions.js`)
- Content ideas → Input validation: validates ideas (evidence: `src/app/(app)/ideas/actions.js`)
- Experiments → Server actions: uses actions (evidence: `src/components/experiments/ExperimentsBoard.js`)
- Hooks library → Server actions: uses actions
- Content series → Server actions: uses actions
- Weekly review editor → Server actions: saves and autofills (evidence: `src/components/weekly/WeeklyFormDialog.js`)
- Weekly review editor → Input validation: validates review (evidence: `src/components/weekly/WeeklyFormDialog.js`)
- Weekly reviews → Weekly review editor: renders editor (evidence: `src/components/weekly/WeeklyFormDialog.js`)
- Profile and settings → Pillar manager: renders manager (evidence: `src/components/settings/PillarsManager.js`)
- Pillar manager → Server actions: adds or deletes (evidence: `src/components/settings/PillarsManager.js`)
- Server actions → Server client: creates client (evidence: `src/app/(app)/ideas/actions.js`)
- Server actions → Input validation: parses input (evidence: `src/app/(app)/ideas/actions.js`)
- Server client → Supabase data store: reads and writes
- Profile and settings → CSV import/export: imports and exports
- Growth dashboard → Metrics and formatting: formats metrics
