# robertguss/web-app-starter-kit architecture

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

- Interactive diagram: https://gitdiagram.com/robertguss/web-app-starter-kit
- Repository: https://github.com/robertguss/web-app-starter-kit

## Overview

This is a production-oriented Next.js starter whose concrete product workflow is authenticated, owner-scoped project management: a user enters the dashboard, browses paginated projects, and creates, edits, or deletes them through Convex. Authentication and ownership checks are separate layers; Convex validates inputs and enforces ownership before database access. The README also documents health checks, error handling, dark mode, and monitoring/telemetry. Several relationships below rely on README statements because relevant source files were not excerpted.

Main entry points: [`convex/projects.ts`](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/projects.ts) (Project functions), [`components/projects/project-manager.tsx`](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-manager.tsx) (Project manager), [`components/projects/create-project-dialog.tsx`](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/create-project-dialog.tsx) (Create project), [`components/projects/edit-project-dialog.tsx`](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/edit-project-dialog.tsx) (Edit project)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_landing["Landing page<br/>[page.tsx]"]
  node_auth_pages["Sign-in and sign-up<br/>[page.tsx]"]
  node_dashboard["Dashboard shell<br/>[layout.tsx]"]
  node_app_providers["App providers<br/>[app-providers.tsx]"]
  node_convex_gate["Convex auth gate"]
end

subgraph group_identity["Identity and access"]
  node_clerk["Clerk identity"]
  node_request_guard["Request guard<br/>[proxy.ts]"]
end

subgraph group_projects["Projects feature"]
  node_project_manager["Project manager"]
  node_project_card["Project card<br/>[project-card.tsx]"]
  node_create_dialog["Create project"]
  node_edit_dialog["Edit project"]
  node_delete_dialog["Delete project"]
  node_project_form["Project form<br/>[project-form.tsx]"]
  node_mutation_errors["Mutation errors<br/>[mutation-error.ts]"]
end

subgraph group_backend["Convex backend"]
  node_project_functions["Project functions<br/>[projects.ts]"]
  node_auth_functions["Auth wrappers<br/>[functions.ts]"]
  node_identity_check["Identity check<br/>[auth.ts]"]
  node_input_validation["Project validation<br/>[projectInput.ts]"]
  node_project_schema["Project schema<br/>[schema.ts]"]
  node_convex_database[("Convex database")]
end

subgraph group_operations["Runtime signals"]
  node_health["Health endpoint<br/>[route.ts]"]
  node_error_boundaries["Error boundaries<br/>[error-fallback.tsx]"]
  node_sentry["Sentry monitoring"]
  node_vercel_telemetry["Vercel telemetry"]
end

node_browser(("User browser"))

node_browser -->|"requests"| node_landing
node_landing -->|"links to"| node_auth_pages
node_browser -->|"sends requests"| node_request_guard
node_request_guard -->|"initializes context"| node_clerk
node_request_guard -->|"protects route"| node_dashboard
node_browser -->|"opens dashboard"| node_dashboard
node_dashboard -->|"protects fallback"| node_clerk
node_dashboard -->|"renders"| node_project_manager
node_app_providers -.->|"provides auth context"| node_convex_gate
node_project_manager -->|"subscribes to projects"| node_project_functions
node_project_manager -->|"renders results"| node_project_card
node_project_manager -->|"opens creation"| node_create_dialog
node_project_card -->|"offers editing"| node_edit_dialog
node_project_card -->|"offers deletion"| node_delete_dialog
node_create_dialog -->|"creates project"| node_project_functions
node_edit_dialog -->|"updates project"| node_project_functions
node_delete_dialog -->|"deletes project"| node_project_functions
node_create_dialog -->|"renders"| node_project_form
node_edit_dialog -->|"renders"| node_project_form
node_create_dialog -->|"maps failures"| node_mutation_errors
node_edit_dialog -->|"maps failures"| node_mutation_errors
node_project_functions -->|"uses wrappers"| node_auth_functions
node_project_functions -->|"validates input"| node_input_validation
node_auth_functions -->|"requires identity"| node_identity_check
node_project_functions -->|"uses indexed schema"| node_project_schema
node_project_functions -->|"reads and writes"| node_convex_database
node_health -.->|"serves health checks"| node_browser
node_error_boundaries -.->|"reports errors"| node_sentry
node_landing -.->|"instrumented by"| node_vercel_telemetry

click node_landing "https://github.com/robertguss/web-app-starter-kit/blob/main/app/page.tsx"
click node_auth_pages "https://github.com/robertguss/web-app-starter-kit/blob/main/app/(auth)/sign-in/%5B%5B...sign-in%5D%5D/page.tsx"
click node_dashboard "https://github.com/robertguss/web-app-starter-kit/blob/main/app/dashboard/layout.tsx"
click node_app_providers "https://github.com/robertguss/web-app-starter-kit/blob/main/components/app-providers.tsx"
click node_convex_gate "https://github.com/robertguss/web-app-starter-kit/blob/main/components/convex-auth-gate.tsx"
click node_request_guard "https://github.com/robertguss/web-app-starter-kit/blob/main/proxy.ts"
click node_project_manager "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-manager.tsx"
click node_project_card "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-card.tsx"
click node_create_dialog "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/create-project-dialog.tsx"
click node_edit_dialog "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/edit-project-dialog.tsx"
click node_delete_dialog "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/delete-project-dialog.tsx"
click node_project_form "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-form.tsx"
click node_mutation_errors "https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/mutation-error.ts"
click node_project_functions "https://github.com/robertguss/web-app-starter-kit/blob/main/convex/projects.ts"
click node_auth_functions "https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/functions.ts"
click node_identity_check "https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/auth.ts"
click node_input_validation "https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/projectInput.ts"
click node_project_schema "https://github.com/robertguss/web-app-starter-kit/blob/main/convex/schema.ts"
click node_health "https://github.com/robertguss/web-app-starter-kit/blob/main/app/api/health/route.ts"
click node_error_boundaries "https://github.com/robertguss/web-app-starter-kit/blob/main/components/error-fallback.tsx"
click node_sentry "https://github.com/robertguss/web-app-starter-kit/blob/main/sentry.server.config.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_landing,node_auth_pages,node_dashboard,node_app_providers,node_convex_gate,node_browser toneBlue
class node_clerk,node_request_guard toneAmber
class node_project_manager,node_project_card,node_create_dialog,node_edit_dialog,node_delete_dialog,node_project_form,node_mutation_errors toneMint
class node_project_functions,node_auth_functions,node_identity_check,node_input_validation,node_project_schema,node_convex_database toneRose
class node_health,node_error_boundaries,node_sentry,node_vercel_telemetry toneIndigo
```

## Components

### Web experience

- [Landing page](https://github.com/robertguss/web-app-starter-kit/blob/main/app/page.tsx): `app/page.tsx`
- [Sign-in and sign-up](https://github.com/robertguss/web-app-starter-kit/blob/main/app/(auth)/sign-in/%5B%5B...sign-in%5D%5D/page.tsx): `app/(auth)/sign-in/[[...sign-in]]/page.tsx`
- [Dashboard shell](https://github.com/robertguss/web-app-starter-kit/blob/main/app/dashboard/layout.tsx): `app/dashboard/layout.tsx`
- [App providers](https://github.com/robertguss/web-app-starter-kit/blob/main/components/app-providers.tsx): `components/app-providers.tsx`
- [Convex auth gate](https://github.com/robertguss/web-app-starter-kit/blob/main/components/convex-auth-gate.tsx): `components/convex-auth-gate.tsx`

### Identity and access

- **Clerk identity**
- [Request guard](https://github.com/robertguss/web-app-starter-kit/blob/main/proxy.ts): `proxy.ts`

### Projects feature

- [Project manager](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-manager.tsx): `components/projects/project-manager.tsx`
- [Project card](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-card.tsx): `components/projects/project-card.tsx`
- [Create project](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/create-project-dialog.tsx): `components/projects/create-project-dialog.tsx`
- [Edit project](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/edit-project-dialog.tsx): `components/projects/edit-project-dialog.tsx`
- [Delete project](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/delete-project-dialog.tsx): `components/projects/delete-project-dialog.tsx`
- [Project form](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/project-form.tsx): `components/projects/project-form.tsx`
- [Mutation errors](https://github.com/robertguss/web-app-starter-kit/blob/main/components/projects/mutation-error.ts): `components/projects/mutation-error.ts`

### Convex backend

- [Project functions](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/projects.ts): `convex/projects.ts`
- [Auth wrappers](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/functions.ts): `convex/lib/functions.ts`
- [Identity check](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/auth.ts): `convex/lib/auth.ts`
- [Project validation](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/lib/projectInput.ts): `convex/lib/projectInput.ts`
- [Project schema](https://github.com/robertguss/web-app-starter-kit/blob/main/convex/schema.ts): `convex/schema.ts`
- **Convex database**

### Runtime signals

- [Health endpoint](https://github.com/robertguss/web-app-starter-kit/blob/main/app/api/health/route.ts): `app/api/health/route.ts`
- [Error boundaries](https://github.com/robertguss/web-app-starter-kit/blob/main/components/error-fallback.tsx): `components/error-fallback.tsx`
- [Sentry monitoring](https://github.com/robertguss/web-app-starter-kit/blob/main/sentry.server.config.ts): `sentry.server.config.ts`
- **Vercel telemetry**

### Other components

- **User browser**

## Connections

- User browser → Landing page: requests (evidence: `app/page.tsx`)
- Landing page → Sign-in and sign-up: links to (evidence: `app/page.tsx`)
- User browser → Request guard: sends requests (evidence: `README.md`)
- Request guard → Clerk identity: initializes context (evidence: `README.md`)
- Request guard → Dashboard shell: protects route (evidence: `README.md`)
- User browser → Dashboard shell: opens dashboard (evidence: `README.md`)
- Dashboard shell → Clerk identity: protects fallback (evidence: `README.md`)
- Dashboard shell → Project manager: renders
- App providers → Convex auth gate: provides auth context
- Project manager → Project functions: subscribes to projects (evidence: `README.md`)
- Project manager → Project card: renders results (evidence: `components/projects/project-manager.tsx`)
- Project manager → Create project: opens creation (evidence: `components/projects/project-manager.tsx`)
- Project card → Edit project: offers editing (evidence: `components/projects/project-card.tsx`)
- Project card → Delete project: offers deletion (evidence: `components/projects/project-card.tsx`)
- Create project → Project functions: creates project (evidence: `README.md`)
- Edit project → Project functions: updates project (evidence: `components/projects/edit-project-dialog.tsx`)
- Delete project → Project functions: deletes project (evidence: `README.md`)
- Create project → Project form: renders (evidence: `components/projects/create-project-dialog.tsx`)
- Edit project → Project form: renders (evidence: `components/projects/edit-project-dialog.tsx`)
- Create project → Mutation errors: maps failures (evidence: `components/projects/create-project-dialog.tsx`)
- Edit project → Mutation errors: maps failures (evidence: `components/projects/edit-project-dialog.tsx`)
- Project functions → Auth wrappers: uses wrappers (evidence: `convex/projects.ts`)
- Project functions → Project validation: validates input (evidence: `convex/projects.ts`)
- Auth wrappers → Identity check: requires identity (evidence: `convex/lib/functions.ts`)
- Project functions → Project schema: uses indexed schema (evidence: `README.md`)
- Project functions → Convex database: reads and writes (evidence: `README.md`)
- Health endpoint → User browser: serves health checks
- Error boundaries → Sentry monitoring: reports errors
- Landing page → Vercel telemetry: instrumented by (evidence: `README.md`)
