# articog-dev/articog-website-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/articog-dev/articog-website-v2
- Repository: https://github.com/articog-dev/articog-website-v2

## Overview

Articog Website v2 is the public marketing and lead-capture site for an AI-native film and creative production company. Visitors explore the production approach, services, solutions, work, and trust information, then can book a demo or submit a contact or privacy request. The site is a Next.js App Router application, with public form handlers using validation, shared rate limits, idempotency, durable lead storage, and email integrations. Some route internals and page-to-component links are unsampled; only documented or indexed relationships are shown.

Main entry points: [`app/api/contact/route.ts`](https://github.com/articog-dev/articog-website-v2/blob/main/app/api/contact/route.ts) (Contact handler), [`app/api/privacy-request/route.ts`](https://github.com/articog-dev/articog-website-v2/blob/main/app/api/privacy-request/route.ts) (Privacy request handler), [`lib/observability.ts`](https://github.com/articog-dev/articog-website-v2/blob/main/lib/observability.ts) (Operational logs), [`app/contact/page.tsx`](https://github.com/articog-dev/articog-website-v2/blob/main/app/contact/page.tsx) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Marketing and discovery"]
  node_home["Homepage<br/>[page.tsx]"]
  node_approach["Production approach<br/>[page.tsx]"]
  node_services["Creative services<br/>[page.tsx]"]
  node_service_detail["Service pages<br/>[page.tsx]"]
  node_solutions["Solutions<br/>[page.tsx]"]
  node_work["Work showcase<br/>[page.tsx]"]
  node_editorial["Blog and insights<br/>[page.tsx]"]
  node_why["Why Articog<br/>[page.tsx]"]
end

subgraph group_conversion["Lead conversion"]
  node_booking["Demo booking<br/>[page.tsx]"]
  node_booking_tabs["Regional calendars<br/>[BookingTabs.tsx]"]
  node_cal["Cal.com"]
  node_contact_page["Contact page<br/>[page.tsx]"]
  node_contact_api["Contact handler<br/>[route.ts]"]
end

subgraph group_privacy["Trust and privacy"]
  node_privacy_pages["Privacy choices<br/>[page.tsx]"]
  node_privacy_request["Privacy request page<br/>[page.tsx]"]
  node_privacy_api["Privacy request handler<br/>[route.ts]"]
end

subgraph group_backend["Form services"]
  node_validation["Request validation<br/>[api-validation.ts]"]
  node_rate_limit["Rate limiting<br/>[rate-limit.ts]"]
  node_idempotency["Retry protection<br/>[idempotency.ts]"]
  node_lead_store[("Durable lead storage<br/>[lead-storage.ts]")]
  node_email["Email delivery<br/>[resend.ts]"]
  node_sheets[("Google Sheets mirror")]
  node_logging["Operational logs<br/>[observability.ts]"]
  node_request_context["Request context<br/>[request-context.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_analytics["Site analytics<br/>[analytics.ts]"]
  node_pipeline["Pipeline section<br/>[Pipeline.tsx]"]
  node_comparison["Comparison section<br/>[Comparison.tsx]"]
  node_final_cta["Final call to action<br/>[FinalCTA.tsx]"]
  node_link["Navigation link<br/>[Link.tsx]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"visits"| node_home
node_visitor -->|"explores"| node_approach
node_visitor -->|"explores"| node_services
node_visitor -->|"explores"| node_solutions
node_visitor -->|"views"| node_work
node_visitor -->|"reads"| node_editorial
node_visitor -->|"books"| node_booking
node_visitor -->|"contacts"| node_contact_page
node_visitor -->|"manages choices"| node_privacy_pages
node_visitor -->|"submits request"| node_privacy_request
node_home -->|"renders via sections"| node_pipeline
node_home -->|"renders via sections"| node_comparison
node_why -->|"renders"| node_comparison
node_why -->|"renders"| node_final_cta
node_booking -->|"renders"| node_booking_tabs
node_booking -->|"links to calendar"| node_cal
node_booking_tabs -->|"embeds calendars"| node_cal
node_contact_page -->|"tracks form errors"| node_analytics
node_contact_page -.->|"submits form"| node_contact_api
node_privacy_pages -.->|"offers requests"| node_privacy_request
node_privacy_request -.->|"submits request"| node_privacy_api
node_contact_api -->|"checks limits"| node_rate_limit
node_contact_api -->|"validates payload"| node_validation
node_contact_api -->|"acquires retry lease"| node_idempotency
node_contact_api -->|"saves lead"| node_lead_store
node_contact_api -->|"sends notifications"| node_email
node_contact_api -->|"mirrors submission"| node_sheets
node_contact_api -->|"logs operations"| node_logging
node_privacy_api -->|"checks limits"| node_rate_limit
node_privacy_api -->|"validates payload"| node_validation
node_privacy_api -->|"acquires retry lease"| node_idempotency
node_privacy_api -->|"saves request"| node_lead_store
node_privacy_api -->|"notifies reviewer"| node_email
node_privacy_api -->|"logs operations"| node_logging
node_rate_limit -->|"logs failures"| node_logging
node_idempotency -->|"uses request context"| node_request_context
node_lead_store -->|"logs failures"| node_logging
node_email -->|"logs failures"| node_logging
node_visitor -->|"browses capabilities"| node_services
node_services -.->|"links to details"| node_service_detail
node_services -->|"renders"| node_final_cta
node_approach -->|"renders"| node_pipeline
node_approach -->|"renders"| node_final_cta
node_contact_page -->|"uses links"| node_link
node_why -->|"uses links"| node_link

click node_home "https://github.com/articog-dev/articog-website-v2/blob/main/app/page.tsx"
click node_approach "https://github.com/articog-dev/articog-website-v2/blob/main/app/how-it-works/page.tsx"
click node_services "https://github.com/articog-dev/articog-website-v2/blob/main/app/services/page.tsx"
click node_service_detail "https://github.com/articog-dev/articog-website-v2/blob/main/app/services/%5Bslug%5D/page.tsx"
click node_solutions "https://github.com/articog-dev/articog-website-v2/blob/main/app/solutions/page.tsx"
click node_work "https://github.com/articog-dev/articog-website-v2/blob/main/app/work/page.tsx"
click node_editorial "https://github.com/articog-dev/articog-website-v2/blob/main/app/blog/page.tsx"
click node_why "https://github.com/articog-dev/articog-website-v2/blob/main/app/why-articog/page.tsx"
click node_booking "https://github.com/articog-dev/articog-website-v2/blob/main/app/book-a-demo/page.tsx"
click node_booking_tabs "https://github.com/articog-dev/articog-website-v2/blob/main/components/booking/BookingTabs.tsx"
click node_contact_page "https://github.com/articog-dev/articog-website-v2/blob/main/app/contact/page.tsx"
click node_contact_api "https://github.com/articog-dev/articog-website-v2/blob/main/app/api/contact/route.ts"
click node_privacy_pages "https://github.com/articog-dev/articog-website-v2/blob/main/app/privacy-choices/page.tsx"
click node_privacy_request "https://github.com/articog-dev/articog-website-v2/blob/main/app/privacy/request/page.tsx"
click node_privacy_api "https://github.com/articog-dev/articog-website-v2/blob/main/app/api/privacy-request/route.ts"
click node_validation "https://github.com/articog-dev/articog-website-v2/blob/main/lib/api-validation.ts"
click node_rate_limit "https://github.com/articog-dev/articog-website-v2/blob/main/lib/rate-limit.ts"
click node_idempotency "https://github.com/articog-dev/articog-website-v2/blob/main/lib/idempotency.ts"
click node_lead_store "https://github.com/articog-dev/articog-website-v2/blob/main/lib/lead-storage.ts"
click node_email "https://github.com/articog-dev/articog-website-v2/blob/main/lib/resend.ts"
click node_logging "https://github.com/articog-dev/articog-website-v2/blob/main/lib/observability.ts"
click node_request_context "https://github.com/articog-dev/articog-website-v2/blob/main/lib/request-context.ts"
click node_analytics "https://github.com/articog-dev/articog-website-v2/blob/main/lib/analytics.ts"
click node_pipeline "https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/Pipeline.tsx"
click node_comparison "https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/Comparison.tsx"
click node_final_cta "https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/FinalCTA.tsx"
click node_link "https://github.com/articog-dev/articog-website-v2/blob/main/components/ui/Link.tsx"

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_approach,node_services,node_service_detail,node_solutions,node_work,node_editorial,node_why toneBlue
class node_booking,node_booking_tabs,node_cal,node_contact_page,node_contact_api toneAmber
class node_privacy_pages,node_privacy_request,node_privacy_api toneMint
class node_validation,node_rate_limit,node_idempotency,node_lead_store,node_email,node_sheets,node_logging,node_request_context toneRose
class node_analytics,node_pipeline,node_comparison,node_final_cta,node_link,node_visitor toneIndigo
```

## Components

### Marketing and discovery

- [Homepage](https://github.com/articog-dev/articog-website-v2/blob/main/app/page.tsx): `app/page.tsx`
- [Production approach](https://github.com/articog-dev/articog-website-v2/blob/main/app/how-it-works/page.tsx): `app/how-it-works/page.tsx`
- [Creative services](https://github.com/articog-dev/articog-website-v2/blob/main/app/services/page.tsx): `app/services/page.tsx`
- [Service pages](https://github.com/articog-dev/articog-website-v2/blob/main/app/services/%5Bslug%5D/page.tsx): `app/services/[slug]/page.tsx`
- [Solutions](https://github.com/articog-dev/articog-website-v2/blob/main/app/solutions/page.tsx): `app/solutions/page.tsx`
- [Work showcase](https://github.com/articog-dev/articog-website-v2/blob/main/app/work/page.tsx): `app/work/page.tsx`
- [Blog and insights](https://github.com/articog-dev/articog-website-v2/blob/main/app/blog/page.tsx): `app/blog/page.tsx`
- [Why Articog](https://github.com/articog-dev/articog-website-v2/blob/main/app/why-articog/page.tsx): `app/why-articog/page.tsx`

### Lead conversion

- [Demo booking](https://github.com/articog-dev/articog-website-v2/blob/main/app/book-a-demo/page.tsx): `app/book-a-demo/page.tsx`
- [Regional calendars](https://github.com/articog-dev/articog-website-v2/blob/main/components/booking/BookingTabs.tsx): `components/booking/BookingTabs.tsx`
- **Cal.com**
- [Contact page](https://github.com/articog-dev/articog-website-v2/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Contact handler](https://github.com/articog-dev/articog-website-v2/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`

### Trust and privacy

- [Privacy choices](https://github.com/articog-dev/articog-website-v2/blob/main/app/privacy-choices/page.tsx): `app/privacy-choices/page.tsx`
- [Privacy request page](https://github.com/articog-dev/articog-website-v2/blob/main/app/privacy/request/page.tsx): `app/privacy/request/page.tsx`
- [Privacy request handler](https://github.com/articog-dev/articog-website-v2/blob/main/app/api/privacy-request/route.ts): `app/api/privacy-request/route.ts`

### Form services

- [Request validation](https://github.com/articog-dev/articog-website-v2/blob/main/lib/api-validation.ts): `lib/api-validation.ts`
- [Rate limiting](https://github.com/articog-dev/articog-website-v2/blob/main/lib/rate-limit.ts): `lib/rate-limit.ts`
- [Retry protection](https://github.com/articog-dev/articog-website-v2/blob/main/lib/idempotency.ts): `lib/idempotency.ts`
- [Durable lead storage](https://github.com/articog-dev/articog-website-v2/blob/main/lib/lead-storage.ts): `lib/lead-storage.ts`
- [Email delivery](https://github.com/articog-dev/articog-website-v2/blob/main/lib/resend.ts): `lib/resend.ts`
- **Google Sheets mirror**
- [Operational logs](https://github.com/articog-dev/articog-website-v2/blob/main/lib/observability.ts): `lib/observability.ts`
- [Request context](https://github.com/articog-dev/articog-website-v2/blob/main/lib/request-context.ts): `lib/request-context.ts`

### Shared presentation

- [Site analytics](https://github.com/articog-dev/articog-website-v2/blob/main/lib/analytics.ts): `lib/analytics.ts`
- [Pipeline section](https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/Pipeline.tsx): `components/sections/Pipeline.tsx`
- [Comparison section](https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/Comparison.tsx): `components/sections/Comparison.tsx`
- [Final call to action](https://github.com/articog-dev/articog-website-v2/blob/main/components/sections/FinalCTA.tsx): `components/sections/FinalCTA.tsx`
- [Navigation link](https://github.com/articog-dev/articog-website-v2/blob/main/components/ui/Link.tsx): `components/ui/Link.tsx`

### Other components

- **Site visitor**

## Connections

- Site visitor → Homepage: visits
- Site visitor → Production approach: explores
- Site visitor → Creative services: explores
- Site visitor → Solutions: explores
- Site visitor → Work showcase: views
- Site visitor → Blog and insights: reads
- Site visitor → Demo booking: books
- Site visitor → Contact page: contacts
- Site visitor → Privacy choices: manages choices
- Site visitor → Privacy request page: submits request
- Homepage → Pipeline section: renders via sections (evidence: `app/page.tsx`)
- Homepage → Comparison section: renders via sections (evidence: `app/page.tsx`)
- Why Articog → Comparison section: renders (evidence: `app/why-articog/page.tsx`)
- Why Articog → Final call to action: renders (evidence: `app/why-articog/page.tsx`)
- Demo booking → Regional calendars: renders (evidence: `app/book-a-demo/page.tsx`)
- Demo booking → Cal.com: links to calendar (evidence: `app/book-a-demo/page.tsx`)
- Regional calendars → Cal.com: embeds calendars (evidence: `components/booking/BookingTabs.tsx`)
- Contact page → Site analytics: tracks form errors (evidence: `app/contact/page.tsx`)
- Contact page → Contact handler: submits form
- Privacy choices → Privacy request page: offers requests
- Privacy request page → Privacy request handler: submits request
- Contact handler → Rate limiting: checks limits (evidence: `app/api/contact/route.ts`)
- Contact handler → Request validation: validates payload (evidence: `app/api/contact/route.ts`)
- Contact handler → Retry protection: acquires retry lease (evidence: `app/api/contact/route.ts`)
- Contact handler → Durable lead storage: saves lead (evidence: `app/api/contact/route.ts`)
- Contact handler → Email delivery: sends notifications (evidence: `app/api/contact/route.ts`)
- Contact handler → Google Sheets mirror: mirrors submission
- Contact handler → Operational logs: logs operations (evidence: `app/api/contact/route.ts`)
- Privacy request handler → Rate limiting: checks limits (evidence: `app/api/privacy-request/route.ts`)
- Privacy request handler → Request validation: validates payload (evidence: `app/api/privacy-request/route.ts`)
- Privacy request handler → Retry protection: acquires retry lease (evidence: `app/api/privacy-request/route.ts`)
- Privacy request handler → Durable lead storage: saves request (evidence: `app/api/privacy-request/route.ts`)
- Privacy request handler → Email delivery: notifies reviewer (evidence: `app/api/privacy-request/route.ts`)
- Privacy request handler → Operational logs: logs operations (evidence: `app/api/privacy-request/route.ts`)
- Rate limiting → Operational logs: logs failures (evidence: `lib/rate-limit.ts`)
- Retry protection → Request context: uses request context (evidence: `lib/idempotency.ts`)
- Durable lead storage → Operational logs: logs failures (evidence: `lib/lead-storage.ts`)
- Email delivery → Operational logs: logs failures (evidence: `lib/resend.ts`)
- Site visitor → Creative services: browses capabilities
- Creative services → Service pages: links to details
- Creative services → Final call to action: renders (evidence: `app/services/page.tsx`)
- Production approach → Pipeline section: renders (evidence: `app/how-it-works/page.tsx`)
- Production approach → Final call to action: renders (evidence: `app/how-it-works/page.tsx`)
- Contact page → Navigation link: uses links (evidence: `app/contact/page.tsx`)
- Why Articog → Navigation link: uses links (evidence: `app/why-articog/page.tsx`)
