# enockdegraft/degitech architecture

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

- Interactive diagram: https://gitdiagram.com/enockdegraft/degitech
- Repository: https://github.com/enockdegraft/degitech

## Overview

DegiTech Consults is a studio website presenting software services and case studies while converting prospective clients into contact messages or consultation requests. Visitors explore the landing page, services, work and supporting company/pricing pages, then submit a form; server routes validate and protect submissions before sending email notifications and optional confirmations. The graph also shows the shared site shell and content configuration. Several UI and content modules are unsampled, so their documented product roles are shown without inferring unverified call chains.

Main entry points: [`lib/form-handler.ts`](https://github.com/enockdegraft/degitech/blob/main/lib/form-handler.ts) (Form safeguards), [`components/forms/form-kit.tsx`](https://github.com/enockdegraft/degitech/blob/main/components/forms/form-kit.tsx) (Form interaction kit), [`app/page.tsx`](https://github.com/enockdegraft/degitech/blob/main/app/page.tsx) (Home page), [`lib/projects.ts`](https://github.com/enockdegraft/degitech/blob/main/lib/projects.ts) (Project catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_sitepages["Company pages<br/>[page.tsx]"]
  node_pricing["Pricing page<br/>[page.tsx]"]
  node_shell["Shared site shell<br/>[layout.tsx]"]
end

subgraph group_content["Services and portfolio"]
  node_servicespage["Services page<br/>[page.tsx]"]
  node_servicedata["Service catalog<br/>[services.ts]"]
  node_workpages["Work pages<br/>[page.tsx]"]
  node_projectdetail["Case study detail<br/>[page.tsx]"]
  node_projects["Project catalog<br/>[projects.ts]"]
end

subgraph group_inquiries["Lead capture"]
  node_contactpage["Contact page<br/>[page.tsx]"]
  node_consultpage["Consultation page<br/>[page.tsx]"]
  node_contactform["Contact form<br/>[contact-form.tsx]"]
  node_consultform["Consultation form"]
  node_formkit["Form interaction kit<br/>[form-kit.tsx]"]
  node_contactapi["Contact endpoint<br/>[route.ts]"]
  node_consultapi["Consultation endpoint<br/>[route.ts]"]
end

subgraph group_backend["Shared backend"]
  node_handler["Form safeguards<br/>[form-handler.ts]"]
  node_validation["Shared validation<br/>[validation.ts]"]
  node_ratelimit["Origin and rate checks<br/>[rate-limit.ts]"]
  node_email["Email delivery<br/>[email.ts]"]
  node_siteconfig["Site configuration<br/>[site.ts]"]
end

node_visitor(("Prospective client"))
node_smtp["Gmail SMTP"]

node_visitor -->|"visits"| node_home
node_visitor -.->|"explores"| node_sitepages
node_visitor -.->|"reviews pricing"| node_pricing
node_visitor -.->|"explores services"| node_servicespage
node_visitor -.->|"explores work"| node_workpages
node_home -->|"renders offerings"| node_servicedata
node_home -->|"renders featured work"| node_projects
node_servicespage -->|"renders offerings"| node_servicedata
node_workpages -->|"renders projects"| node_projects
node_projectdetail -->|"loads case study"| node_projects
node_visitor -.->|"opens contact"| node_contactpage
node_visitor -->|"books consultation"| node_consultpage
node_contactpage -->|"renders form"| node_contactform
node_consultpage -->|"renders form"| node_consultform
node_contactform -->|"uses interaction kit"| node_formkit
node_consultform -->|"uses interaction kit"| node_formkit
node_formkit -.->|"posts contact data"| node_contactapi
node_formkit -.->|"posts consultation data"| node_consultapi
node_contactapi -->|"handles submission"| node_handler
node_consultapi -->|"handles submission"| node_handler
node_handler -->|"validates fields"| node_validation
node_handler -->|"checks origin and limits"| node_ratelimit
node_handler -->|"sends notifications"| node_email
node_email -->|"delivers mail"| node_smtp
node_handler -->|"returns form status"| node_visitor
node_shell -->|"uses site details"| node_siteconfig

click node_home "https://github.com/enockdegraft/degitech/blob/main/app/page.tsx"
click node_sitepages "https://github.com/enockdegraft/degitech/blob/main/app/about/page.tsx"
click node_pricing "https://github.com/enockdegraft/degitech/blob/main/app/pricing/page.tsx"
click node_shell "https://github.com/enockdegraft/degitech/blob/main/app/layout.tsx"
click node_servicespage "https://github.com/enockdegraft/degitech/blob/main/app/services/page.tsx"
click node_servicedata "https://github.com/enockdegraft/degitech/blob/main/lib/services.ts"
click node_workpages "https://github.com/enockdegraft/degitech/blob/main/app/work/page.tsx"
click node_projectdetail "https://github.com/enockdegraft/degitech/blob/main/app/work/%5Bslug%5D/page.tsx"
click node_projects "https://github.com/enockdegraft/degitech/blob/main/lib/projects.ts"
click node_contactpage "https://github.com/enockdegraft/degitech/blob/main/app/contact/page.tsx"
click node_consultpage "https://github.com/enockdegraft/degitech/blob/main/app/consultation/page.tsx"
click node_contactform "https://github.com/enockdegraft/degitech/blob/main/components/forms/contact-form.tsx"
click node_consultform "https://github.com/enockdegraft/degitech/blob/main/components/forms/consultation-form.tsx"
click node_formkit "https://github.com/enockdegraft/degitech/blob/main/components/forms/form-kit.tsx"
click node_contactapi "https://github.com/enockdegraft/degitech/blob/main/app/api/contact/route.ts"
click node_consultapi "https://github.com/enockdegraft/degitech/blob/main/app/api/consultation/route.ts"
click node_handler "https://github.com/enockdegraft/degitech/blob/main/lib/form-handler.ts"
click node_validation "https://github.com/enockdegraft/degitech/blob/main/lib/validation.ts"
click node_ratelimit "https://github.com/enockdegraft/degitech/blob/main/lib/rate-limit.ts"
click node_email "https://github.com/enockdegraft/degitech/blob/main/lib/email.ts"
click node_siteconfig "https://github.com/enockdegraft/degitech/blob/main/lib/site.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_home,node_sitepages,node_pricing,node_shell,node_visitor toneBlue
class node_servicespage,node_servicedata,node_workpages,node_projectdetail,node_projects toneAmber
class node_contactpage,node_consultpage,node_contactform,node_consultform,node_formkit,node_contactapi,node_consultapi toneMint
class node_handler,node_validation,node_ratelimit,node_email,node_siteconfig toneRose
class node_smtp toneIndigo
```

## Components

### Website experience

- [Home page](https://github.com/enockdegraft/degitech/blob/main/app/page.tsx): `app/page.tsx`
- [Company pages](https://github.com/enockdegraft/degitech/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Pricing page](https://github.com/enockdegraft/degitech/blob/main/app/pricing/page.tsx): `app/pricing/page.tsx`
- [Shared site shell](https://github.com/enockdegraft/degitech/blob/main/app/layout.tsx): `app/layout.tsx`

### Services and portfolio

- [Services page](https://github.com/enockdegraft/degitech/blob/main/app/services/page.tsx): `app/services/page.tsx`
- [Service catalog](https://github.com/enockdegraft/degitech/blob/main/lib/services.ts): `lib/services.ts`
- [Work pages](https://github.com/enockdegraft/degitech/blob/main/app/work/page.tsx): `app/work/page.tsx`
- [Case study detail](https://github.com/enockdegraft/degitech/blob/main/app/work/%5Bslug%5D/page.tsx): `app/work/[slug]/page.tsx`
- [Project catalog](https://github.com/enockdegraft/degitech/blob/main/lib/projects.ts): `lib/projects.ts`

### Lead capture

- [Contact page](https://github.com/enockdegraft/degitech/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Consultation page](https://github.com/enockdegraft/degitech/blob/main/app/consultation/page.tsx): `app/consultation/page.tsx`
- [Contact form](https://github.com/enockdegraft/degitech/blob/main/components/forms/contact-form.tsx): `components/forms/contact-form.tsx`
- [Consultation form](https://github.com/enockdegraft/degitech/blob/main/components/forms/consultation-form.tsx): `components/forms/consultation-form.tsx`
- [Form interaction kit](https://github.com/enockdegraft/degitech/blob/main/components/forms/form-kit.tsx): `components/forms/form-kit.tsx`
- [Contact endpoint](https://github.com/enockdegraft/degitech/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`
- [Consultation endpoint](https://github.com/enockdegraft/degitech/blob/main/app/api/consultation/route.ts): `app/api/consultation/route.ts`

### Shared backend

- [Form safeguards](https://github.com/enockdegraft/degitech/blob/main/lib/form-handler.ts): `lib/form-handler.ts`
- [Shared validation](https://github.com/enockdegraft/degitech/blob/main/lib/validation.ts): `lib/validation.ts`
- [Origin and rate checks](https://github.com/enockdegraft/degitech/blob/main/lib/rate-limit.ts): `lib/rate-limit.ts`
- [Email delivery](https://github.com/enockdegraft/degitech/blob/main/lib/email.ts): `lib/email.ts`
- [Site configuration](https://github.com/enockdegraft/degitech/blob/main/lib/site.ts): `lib/site.ts`

### Other components

- **Prospective client**
- **Gmail SMTP**

## Connections

- Prospective client → Home page: visits (evidence: `app/page.tsx`)
- Prospective client → Company pages: explores
- Prospective client → Pricing page: reviews pricing
- Prospective client → Services page: explores services
- Prospective client → Work pages: explores work
- Home page → Service catalog: renders offerings (evidence: `app/page.tsx`)
- Home page → Project catalog: renders featured work (evidence: `app/page.tsx`)
- Services page → Service catalog: renders offerings (evidence: `app/services/page.tsx`)
- Work pages → Project catalog: renders projects (evidence: `app/work/page.tsx`)
- Case study detail → Project catalog: loads case study (evidence: `app/work/[slug]/page.tsx`)
- Prospective client → Contact page: opens contact
- Prospective client → Consultation page: books consultation
- Contact page → Contact form: renders form (evidence: `app/contact/page.tsx`)
- Consultation page → Consultation form: renders form (evidence: `app/consultation/page.tsx`)
- Contact form → Form interaction kit: uses interaction kit (evidence: `components/forms/contact-form.tsx`)
- Consultation form → Form interaction kit: uses interaction kit (evidence: `components/forms/consultation-form.tsx`)
- Form interaction kit → Contact endpoint: posts contact data
- Form interaction kit → Consultation endpoint: posts consultation data
- Contact endpoint → Form safeguards: handles submission (evidence: `app/api/contact/route.ts`)
- Consultation endpoint → Form safeguards: handles submission (evidence: `app/api/consultation/route.ts`)
- Form safeguards → Shared validation: validates fields (evidence: `lib/form-handler.ts`)
- Form safeguards → Origin and rate checks: checks origin and limits (evidence: `lib/form-handler.ts`)
- Form safeguards → Email delivery: sends notifications (evidence: `lib/form-handler.ts`)
- Email delivery → Gmail SMTP: delivers mail (evidence: `README.md`)
- Form safeguards → Prospective client: returns form status (evidence: `lib/form-handler.ts`)
- Shared site shell → Site configuration: uses site details (evidence: `app/layout.tsx`)
