# anas-s-muhammed/steady-progress_app architecture

> Architecture diagram of the GitHub repository anas-s-muhammed/steady-progress_app, 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/anas-s-muhammed/steady-progress_app
- Repository: https://github.com/anas-s-muhammed/steady-progress_app

## Overview

Steady is a personal progress tracker: users sign in, manage counters for time since/until or focused time spent, and review milestones, chapters, events, and check-ins. The browser presents the dashboard and sends requests through the API to persist account data in PostgreSQL; timing calculations are shared between client and server. Authentication uses Supabase with server-managed sessions. The README documents the stack and data ownership, while several feature components were not sampled, so uncertain UI-to-feature and optional integration links are omitted.

Main entry points: [`client/src/pages/Home.tsx`](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/pages/Home.tsx) (Tracker dashboard), [`server/_core/app.ts`](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/app.ts) (Express API), [`server/_core/authRoutes.ts`](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/authRoutes.ts) (Auth endpoints), [`client/src/App.tsx`](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/App.tsx) (App routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser app"]
  node_app["App routes<br/>[App.tsx]"]
  node_home["Tracker dashboard<br/>[Home.tsx]"]
  node_authui["Sign-in UI<br/>[Auth.tsx]"]
  node_timer["Focus timer<br/>[FocusTimer.tsx]"]
  node_story["Story and reflection<br/>[StoryDrawer.tsx]"]
  node_continuity["Continuity hub<br/>[ContinuityHub.tsx]"]
  node_ai["AI chat<br/>[AIChatBox.tsx]"]
  node_map["Progress map<br/>[Map.tsx]"]
  node_offline["Offline queue<br/>[offlineQueue.ts]"]
end

subgraph group_api["API and domain"]
  node_apiapp["Express API<br/>[app.ts]"]
  node_router["Counter procedures<br/>[routers.ts]"]
  node_timing["Timing rules<br/>[time.ts]"]
end

subgraph group_identity["Authentication"]
  node_authroutes["Auth endpoints<br/>[authRoutes.ts]"]
  node_session["Session handling<br/>[authSession.ts]"]
  node_supabase["Supabase Auth"]
end

subgraph group_data["Persistence"]
  node_dbaccess["Database access<br/>[db.ts]"]
  node_schema["Account and tracker schema<br/>[schema.ts]"]
  node_setup["Schema readiness<br/>[setup.ts]"]
end

node_user(("User"))
node_postgres[("PostgreSQL")]

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_authui
node_home -.->|"presents"| node_timer
node_home -.->|"presents"| node_story
node_home -.->|"presents"| node_continuity
node_home -.->|"presents"| node_ai
node_home -.->|"presents"| node_map
node_home -.->|"queues offline changes"| node_offline
node_authui -.->|"authenticates via"| node_authroutes
node_home -.->|"requests tracker data"| node_apiapp
node_apiapp -->|"mounts tRPC"| node_router
node_apiapp -->|"mounts auth routes"| node_authroutes
node_apiapp -->|"installs session middleware"| node_session
node_router -->|"reads and writes"| node_dbaccess
node_router -->|"calculates progress"| node_timing
node_dbaccess -->|"uses tables"| node_schema
node_dbaccess -->|"persists account data"| node_postgres
node_authroutes -->|"creates sessions"| node_session
node_authroutes -->|"uses provider"| node_supabase
node_session -.->|"stores session data"| node_postgres
node_setup -->|"checks schema"| node_schema
node_apiapp -->|"checks readiness"| node_setup

click node_app "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/App.tsx"
click node_home "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/pages/Home.tsx"
click node_authui "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/pages/Auth.tsx"
click node_timer "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/FocusTimer.tsx"
click node_story "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/StoryDrawer.tsx"
click node_continuity "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/ContinuityHub.tsx"
click node_ai "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/AIChatBox.tsx"
click node_map "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/Map.tsx"
click node_offline "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/lib/offlineQueue.ts"
click node_apiapp "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/app.ts"
click node_router "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/routers.ts"
click node_timing "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/shared/time.ts"
click node_authroutes "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/authRoutes.ts"
click node_session "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/authSession.ts"
click node_dbaccess "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/db.ts"
click node_schema "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/drizzle/schema.ts"
click node_setup "https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/database/setup.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_app,node_home,node_authui,node_timer,node_story,node_continuity,node_ai,node_map,node_offline,node_user toneBlue
class node_apiapp,node_router,node_timing,node_postgres toneAmber
class node_authroutes,node_session,node_supabase toneMint
class node_dbaccess,node_schema,node_setup toneRose
```

## Components

### Browser app

- [App routes](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Tracker dashboard](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/pages/Home.tsx): `client/src/pages/Home.tsx`
- [Sign-in UI](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/pages/Auth.tsx): `client/src/pages/Auth.tsx`
- [Focus timer](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/FocusTimer.tsx): `client/src/components/FocusTimer.tsx`
- [Story and reflection](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/StoryDrawer.tsx): `client/src/components/StoryDrawer.tsx`
- [Continuity hub](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/ContinuityHub.tsx): `client/src/components/ContinuityHub.tsx`
- [AI chat](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/AIChatBox.tsx): `client/src/components/AIChatBox.tsx`
- [Progress map](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/components/Map.tsx): `client/src/components/Map.tsx`
- [Offline queue](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/client/src/lib/offlineQueue.ts): `client/src/lib/offlineQueue.ts`

### API and domain

- [Express API](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/app.ts): `server/_core/app.ts`
- [Counter procedures](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/routers.ts): `server/routers.ts`
- [Timing rules](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/shared/time.ts): `shared/time.ts`

### Authentication

- [Auth endpoints](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/authRoutes.ts): `server/_core/authRoutes.ts`
- [Session handling](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/_core/authSession.ts): `server/_core/authSession.ts`
- **Supabase Auth**

### Persistence

- [Database access](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/db.ts): `server/db.ts`
- [Account and tracker schema](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/drizzle/schema.ts): `drizzle/schema.ts`
- [Schema readiness](https://github.com/anas-s-muhammed/steady-progress_app/blob/main/server/database/setup.ts): `server/database/setup.ts`

### Other components

- **User**
- **PostgreSQL**

## Connections

- User → App routes: uses (evidence: `client/src/App.tsx`)
- App routes → Tracker dashboard: routes to (evidence: `client/src/App.tsx`)
- App routes → Sign-in UI: routes to (evidence: `client/src/App.tsx`)
- Tracker dashboard → Focus timer: presents
- Tracker dashboard → Story and reflection: presents
- Tracker dashboard → Continuity hub: presents
- Tracker dashboard → AI chat: presents
- Tracker dashboard → Progress map: presents
- Tracker dashboard → Offline queue: queues offline changes
- Sign-in UI → Auth endpoints: authenticates via
- Tracker dashboard → Express API: requests tracker data
- Express API → Counter procedures: mounts tRPC (evidence: `server/_core/app.ts`)
- Express API → Auth endpoints: mounts auth routes (evidence: `server/_core/app.ts`)
- Express API → Session handling: installs session middleware (evidence: `server/_core/app.ts`)
- Counter procedures → Database access: reads and writes (evidence: `server/routers.ts`)
- Counter procedures → Timing rules: calculates progress (evidence: `server/routers.ts`)
- Database access → Account and tracker schema: uses tables (evidence: `server/db.ts`)
- Database access → PostgreSQL: persists account data (evidence: `README.md`)
- Auth endpoints → Session handling: creates sessions (evidence: `server/_core/authRoutes.ts`)
- Auth endpoints → Supabase Auth: uses provider (evidence: `server/_core/authRoutes.ts`)
- Session handling → PostgreSQL: stores session data
- Schema readiness → Account and tracker schema: checks schema (evidence: `server/database/setup.ts`)
- Express API → Schema readiness: checks readiness (evidence: `server/_core/app.ts`)
