# textura-agency/next16-claude-starter architecture

> Architecture diagram of the GitHub repository textura-agency/next16-claude-starter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/textura-agency/next16-claude-starter
- Repository: https://github.com/textura-agency/next16-claude-starter

## Overview

This repository is a Next.js starter for animation-heavy marketing and landing sites. Its main visitor workflow serves a page through an app route and view, with crawler-specific rendering available through the proxy; supporting capabilities include spring motion, smooth scrolling, adaptive layout, consent controls, contact submissions, and SEO metadata. The graph includes the documented capabilities and sampled runtime relationships. Some route, layout, and animation internals were not excerpted, so their connections are shown only where the README or source index supports them.

Main entry points: [`src/components/animation/springs/in-view.tsx`](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/animation/springs/in-view.tsx) (Spring animation), [`src/hooks/animation/use-spring-trigger.ts`](https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/animation/use-spring-trigger.ts) (Motion triggers), [`src/views/home.tsx`](https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/home.tsx) (Home view), [`src/components/common/Cookie/CookiePreferencesModal.tsx`](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/Cookie/CookiePreferencesModal.tsx) (Cookie preferences)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site experience"]
  node_home_route["Home route<br/>[page.tsx]"]
  node_home_view["Home view<br/>[home.tsx]"]
  node_robot_proxy["Crawler proxy<br/>[proxy.ts]"]
  node_robot_route["Crawler route<br/>[page.tsx]"]
  node_robot_render["Robot rendering<br/>[robot-view.tsx]"]
  node_legal_view["Privacy page<br/>[privacy-policy.tsx]"]
  node_legal_document["Legal document<br/>[legal-document.tsx]"]
  node_cookie_controls["Cookie preferences"]
  node_cookie_store["Consent store<br/>[cookieStore.ts]"]
end

subgraph group_motion["Motion and layout"]
  node_spring_motion["Spring animation<br/>[in-view.tsx]"]
  node_motion_trigger["Motion triggers"]
  node_dynamic_visibility["In-view detection"]
  node_spring_config["Spring settings<br/>[config.ts]"]
  node_smooth_scroll["Smooth scrolling<br/>[use-scroll.ts]"]
  node_adaptive_grid["Adaptive grid<br/>[adaptive-grid.tsx]"]
  node_window_size["Viewport sizing<br/>[use-window-size.ts]"]
  node_math_utils["Animation math<br/>[math.ts]"]
  node_spring_types["Spring types<br/>[springs.ts]"]
end

subgraph group_seo["SEO and discovery"]
  node_route_registry["Route registry<br/>[routes.ts]"]
  node_site_config["Site configuration<br/>[site.ts]"]
  node_llms_route["LLMs site map<br/>[route.ts]"]
  node_structured_data["Structured data<br/>[structured-data.ts]"]
end

subgraph group_services["Visitor services"]
  node_contact_api["Contact endpoint<br/>[route.ts]"]
  node_environment["Environment config<br/>[env.ts]"]
end

node_visitor(("Site visitor"))
node_upstream["Contact service"]

node_visitor -->|"requests page"| node_home_route
node_home_route -->|"renders view"| node_home_view
node_robot_proxy -->|"rewrites crawler"| node_robot_route
node_robot_route -->|"renders view"| node_home_view
node_home_view -->|"renders robot mode"| node_robot_render
node_cookie_controls -->|"reads preferences"| node_cookie_store
node_cookie_controls -->|"uses scroll state"| node_smooth_scroll
node_spring_motion -->|"tracks visibility"| node_dynamic_visibility
node_spring_motion -->|"uses settings"| node_spring_config
node_spring_motion -->|"reads viewport"| node_window_size
node_motion_trigger -->|"uses settings"| node_spring_config
node_motion_trigger -->|"reads viewport"| node_window_size
node_motion_trigger -->|"uses calculations"| node_math_utils
node_motion_trigger -->|"uses visibility loop"| node_dynamic_visibility
node_contact_api -->|"reads endpoint config"| node_environment
node_contact_api -->|"forwards submission"| node_upstream
node_llms_route -->|"lists public routes"| node_route_registry
node_llms_route -->|"uses site facts"| node_site_config
node_structured_data -->|"builds breadcrumbs"| node_route_registry
node_structured_data -->|"uses site facts"| node_site_config
node_legal_view -.->|"renders document"| node_legal_document
node_spring_motion -->|"uses style types"| node_spring_types

click node_home_route "https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/page.tsx"
click node_home_view "https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/home.tsx"
click node_robot_proxy "https://github.com/textura-agency/next16-claude-starter/blob/main/src/proxy.ts"
click node_robot_route "https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/robot-view/page.tsx"
click node_robot_render "https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/robot-view.tsx"
click node_legal_view "https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/legal/privacy-policy.tsx"
click node_legal_document "https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/legal/legal-document.tsx"
click node_cookie_controls "https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/Cookie/CookiePreferencesModal.tsx"
click node_cookie_store "https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/Cookie/cookieStore.ts"
click node_spring_motion "https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/animation/springs/in-view.tsx"
click node_motion_trigger "https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/animation/use-spring-trigger.ts"
click node_dynamic_visibility "https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/animation/use-dynamic-in-view.ts"
click node_spring_config "https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/springs/config.ts"
click node_smooth_scroll "https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/smooth-scroll/use-scroll.ts"
click node_adaptive_grid "https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/grid/adaptive-grid.tsx"
click node_contact_api "https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/api/contact/route.ts"
click node_environment "https://github.com/textura-agency/next16-claude-starter/blob/main/src/env.ts"
click node_route_registry "https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/routes.ts"
click node_site_config "https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/site.ts"
click node_llms_route "https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/llms.txt/route.ts"
click node_structured_data "https://github.com/textura-agency/next16-claude-starter/blob/main/src/utils/seo/structured-data.ts"
click node_window_size "https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/use-window-size.ts"
click node_math_utils "https://github.com/textura-agency/next16-claude-starter/blob/main/src/utils/math.ts"
click node_spring_types "https://github.com/textura-agency/next16-claude-starter/blob/main/src/types/springs.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_route,node_home_view,node_robot_proxy,node_robot_route,node_robot_render,node_legal_view,node_legal_document,node_cookie_controls,node_cookie_store toneBlue
class node_spring_motion,node_motion_trigger,node_dynamic_visibility,node_spring_config,node_smooth_scroll,node_adaptive_grid,node_window_size,node_math_utils,node_spring_types toneAmber
class node_route_registry,node_site_config,node_llms_route,node_structured_data toneMint
class node_contact_api,node_environment toneRose
class node_visitor,node_upstream toneIndigo
```

## Components

### Site experience

- [Home route](https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Home view](https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/home.tsx): `src/views/home.tsx`
- [Crawler proxy](https://github.com/textura-agency/next16-claude-starter/blob/main/src/proxy.ts): `src/proxy.ts`
- [Crawler route](https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/robot-view/page.tsx): `src/app/robot-view/page.tsx`
- [Robot rendering](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/robot-view.tsx): `src/components/common/robot-view.tsx`
- [Privacy page](https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/legal/privacy-policy.tsx): `src/views/legal/privacy-policy.tsx`
- [Legal document](https://github.com/textura-agency/next16-claude-starter/blob/main/src/views/legal/legal-document.tsx): `src/views/legal/legal-document.tsx`
- [Cookie preferences](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/Cookie/CookiePreferencesModal.tsx): `src/components/common/Cookie/CookiePreferencesModal.tsx`
- [Consent store](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/Cookie/cookieStore.ts): `src/components/common/Cookie/cookieStore.ts`

### Motion and layout

- [Spring animation](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/animation/springs/in-view.tsx): `src/components/animation/springs/in-view.tsx`
- [Motion triggers](https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/animation/use-spring-trigger.ts): `src/hooks/animation/use-spring-trigger.ts`
- [In-view detection](https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/animation/use-dynamic-in-view.ts): `src/hooks/animation/use-dynamic-in-view.ts`
- [Spring settings](https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/springs/config.ts): `src/lib/springs/config.ts`
- [Smooth scrolling](https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/smooth-scroll/use-scroll.ts): `src/hooks/smooth-scroll/use-scroll.ts`
- [Adaptive grid](https://github.com/textura-agency/next16-claude-starter/blob/main/src/components/common/grid/adaptive-grid.tsx): `src/components/common/grid/adaptive-grid.tsx`
- [Viewport sizing](https://github.com/textura-agency/next16-claude-starter/blob/main/src/hooks/use-window-size.ts): `src/hooks/use-window-size.ts`
- [Animation math](https://github.com/textura-agency/next16-claude-starter/blob/main/src/utils/math.ts): `src/utils/math.ts`
- [Spring types](https://github.com/textura-agency/next16-claude-starter/blob/main/src/types/springs.ts): `src/types/springs.ts`

### SEO and discovery

- [Route registry](https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/routes.ts): `src/lib/routes.ts`
- [Site configuration](https://github.com/textura-agency/next16-claude-starter/blob/main/src/lib/site.ts): `src/lib/site.ts`
- [LLMs site map](https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/llms.txt/route.ts): `src/app/llms.txt/route.ts`
- [Structured data](https://github.com/textura-agency/next16-claude-starter/blob/main/src/utils/seo/structured-data.ts): `src/utils/seo/structured-data.ts`

### Visitor services

- [Contact endpoint](https://github.com/textura-agency/next16-claude-starter/blob/main/src/app/api/contact/route.ts): `src/app/api/contact/route.ts`
- [Environment config](https://github.com/textura-agency/next16-claude-starter/blob/main/src/env.ts): `src/env.ts`

### Other components

- **Site visitor**
- **Contact service**

## Connections

- Site visitor → Home route: requests page (evidence: `README.md`)
- Home route → Home view: renders view (evidence: `README.md`)
- Crawler proxy → Crawler route: rewrites crawler (evidence: `src/app/robot-view/page.tsx`)
- Crawler route → Home view: renders view (evidence: `src/app/robot-view/page.tsx`)
- Home view → Robot rendering: renders robot mode (evidence: `src/views/home.tsx`)
- Cookie preferences → Consent store: reads preferences (evidence: `src/components/common/Cookie/CookiePreferencesModal.tsx`)
- Cookie preferences → Smooth scrolling: uses scroll state (evidence: `src/components/common/Cookie/CookiePreferencesModal.tsx`)
- Spring animation → In-view detection: tracks visibility (evidence: `src/components/animation/springs/in-view.tsx`)
- Spring animation → Spring settings: uses settings (evidence: `src/components/animation/springs/in-view.tsx`)
- Spring animation → Viewport sizing: reads viewport (evidence: `src/components/animation/springs/in-view.tsx`)
- Motion triggers → Spring settings: uses settings (evidence: `src/hooks/animation/use-spring-trigger.ts`)
- Motion triggers → Viewport sizing: reads viewport (evidence: `src/hooks/animation/use-spring-trigger.ts`)
- Motion triggers → Animation math: uses calculations (evidence: `src/hooks/animation/use-spring-trigger.ts`)
- Motion triggers → In-view detection: uses visibility loop (evidence: `src/hooks/animation/use-spring-trigger.ts`)
- Contact endpoint → Environment config: reads endpoint config (evidence: `src/app/api/contact/route.ts`)
- Contact endpoint → Contact service: forwards submission (evidence: `src/app/api/contact/route.ts`)
- LLMs site map → Route registry: lists public routes (evidence: `src/app/llms.txt/route.ts`)
- LLMs site map → Site configuration: uses site facts (evidence: `src/app/llms.txt/route.ts`)
- Structured data → Route registry: builds breadcrumbs (evidence: `src/utils/seo/structured-data.ts`)
- Structured data → Site configuration: uses site facts (evidence: `src/utils/seo/structured-data.ts`)
- Privacy page → Legal document: renders document
- Spring animation → Spring types: uses style types (evidence: `src/components/animation/springs/in-view.tsx`)
