How textura-agency/next16-claude-starter works
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: in-view.tsx Spring animation · use-spring-trigger.ts Motion triggers · home.tsx Home view · CookiePreferencesModal.tsx Cookie preferences
Components 26
Site experience
- Home route
src/app/page.tsx - Home view
src/views/home.tsx - Crawler proxy
src/proxy.ts - Crawler route
src/app/robot-view/page.tsx - Robot rendering
src/components/common/robot-view.tsx - Privacy page
src/views/legal/privacy-policy.tsx - Legal document
src/views/legal/legal-document.tsx - Cookie preferences
src/components/common/Cookie/CookiePreferencesModal.tsx - Consent store
src/components/common/Cookie/cookieStore.ts
Motion and layout
- Spring animation
src/components/animation/springs/in-view.tsx - Motion triggers
src/hooks/animation/use-spring-trigger.ts - In-view detection
src/hooks/animation/use-dynamic-in-view.ts - Spring settings
src/lib/springs/config.ts - Smooth scrolling
src/hooks/smooth-scroll/use-scroll.ts - Adaptive grid
src/components/common/grid/adaptive-grid.tsx - Viewport sizing
src/hooks/use-window-size.ts - Animation math
src/utils/math.ts - Spring types
src/types/springs.ts
SEO and discovery
- Route registry
src/lib/routes.ts - Site configuration
src/lib/site.ts - LLMs site map
src/app/llms.txt/route.ts - Structured data
src/utils/seo/structured-data.ts
Visitor services
- Contact endpoint
src/app/api/contact/route.ts - Environment config
src/env.ts
Other components
- Site visitor
- Contact service
Connections 22
- Site visitor → Home route: requests page
README.md - Home route → Home view: renders view
README.md - Crawler proxy → Crawler route: rewrites crawler
src/app/robot-view/page.tsx - Crawler route → Home view: renders view
src/app/robot-view/page.tsx - Home view → Robot rendering: renders robot mode
src/views/home.tsx - Cookie preferences → Consent store: reads preferences
src/components/common/Cookie/CookiePreferencesModal.tsx - Cookie preferences → Smooth scrolling: uses scroll state
src/components/common/Cookie/CookiePreferencesModal.tsx - Spring animation → In-view detection: tracks visibility
src/components/animation/springs/in-view.tsx - Spring animation → Spring settings: uses settings
src/components/animation/springs/in-view.tsx - Spring animation → Viewport sizing: reads viewport
src/components/animation/springs/in-view.tsx - Motion triggers → Spring settings: uses settings
src/hooks/animation/use-spring-trigger.ts - Motion triggers → Viewport sizing: reads viewport
src/hooks/animation/use-spring-trigger.ts - Motion triggers → Animation math: uses calculations
src/hooks/animation/use-spring-trigger.ts - Motion triggers → In-view detection: uses visibility loop
src/hooks/animation/use-spring-trigger.ts - Contact endpoint → Environment config: reads endpoint config
src/app/api/contact/route.ts - Contact endpoint → Contact service: forwards submission
src/app/api/contact/route.ts - LLMs site map → Route registry: lists public routes
src/app/llms.txt/route.ts - LLMs site map → Site configuration: uses site facts
src/app/llms.txt/route.ts - Structured data → Route registry: builds breadcrumbs
src/utils/seo/structured-data.ts - Structured data → Site configuration: uses site facts
src/utils/seo/structured-data.ts - Privacy page → Legal document: renders document
- Spring animation → Spring types: uses style types
src/components/animation/springs/in-view.tsx