# ashxanonymous/pastel-sketchbook-studio architecture

> Architecture diagram of the GitHub repository ashxanonymous/pastel-sketchbook-studio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashxanonymous/pastel-sketchbook-studio
- Repository: https://github.com/ashxanonymous/pastel-sketchbook-studio

## Overview

This is a creative-developer portfolio presented as a single-page scrapbook-style website. A visitor reaches the home page, where the route composes the intro, navigation, hero, about, work, services, and contact experiences; those sections draw editable demo content from a shared portfolio data module. The runtime also has server-side request handling and a custom error response path. The graph reflects the shown route composition and indexed imports; unsampled UI primitives and other README capabilities are represented only where their subsystem is clear.

Main entry points: [`src/routes/index.tsx`](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/routes/index.tsx) (Home page), [`src/data/portfolio.ts`](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/data/portfolio.ts) (Portfolio data), [`src/components/doodles.tsx`](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/doodles.tsx) (Doodles), [`src/components/hero.tsx`](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/hero.tsx) (Hero section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio experience"]
  node_home["Home page<br/>[index.tsx]"]
  node_intro["Intro animation<br/>[intro.tsx]"]
  node_navigation["Section navigation<br/>[nav.tsx]"]
  node_hero["Hero section<br/>[hero.tsx]"]
  node_about["About section<br/>[about.tsx]"]
  node_work["Projects experience<br/>[work.tsx]"]
  node_services["Services section<br/>[services.tsx]"]
  node_contact["Contact footer<br/>[contact.tsx]"]
  node_interactions["Playful interactions<br/>[fun.tsx]"]
  node_doodles["Doodles<br/>[doodles.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_portfolio["Portfolio data<br/>[portfolio.ts]"]
end

subgraph group_runtime["Request runtime"]
  node_server["Server request handler<br/>[server.ts]"]
  node_router["Router setup<br/>[router.tsx]"]
  node_route_tree["Route tree<br/>[routeTree.gen.ts]"]
end

subgraph group_ui["UI foundations"]
  node_ui_primitives["UI primitives"]
  node_sidebar["Sidebar components<br/>[sidebar.tsx]"]
  node_mobile_hook["Mobile breakpoint hook<br/>[use-mobile.tsx]"]
end

subgraph group_errors["Error handling"]
  node_error_capture["Error capture<br/>[error-capture.ts]"]
  node_error_page["Error page<br/>[error-page.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_home
node_home -->|"renders"| node_intro
node_home -->|"renders"| node_navigation
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_work
node_home -->|"renders"| node_services
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_interactions
node_about -->|"reads content"| node_portfolio
node_hero -->|"reads content"| node_portfolio
node_navigation -->|"reads content"| node_portfolio
node_work -->|"reads content"| node_portfolio
node_services -->|"reads content"| node_portfolio
node_contact -->|"reads content"| node_portfolio
node_interactions -->|"reads content"| node_portfolio
node_about -->|"uses"| node_doodles
node_hero -->|"uses"| node_doodles
node_work -->|"uses"| node_doodles
node_services -->|"uses"| node_doodles
node_contact -->|"uses"| node_doodles
node_router -->|"configures"| node_route_tree
node_route_tree -->|"registers route"| node_home
node_server -->|"consumes errors"| node_error_capture
node_server -->|"renders on failure"| node_error_page
node_sidebar -->|"uses primitives"| node_ui_primitives
node_sidebar -->|"checks viewport"| node_mobile_hook

click node_home "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/routes/index.tsx"
click node_intro "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/intro.tsx"
click node_navigation "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/nav.tsx"
click node_hero "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/hero.tsx"
click node_about "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/about.tsx"
click node_work "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/work.tsx"
click node_services "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/services.tsx"
click node_contact "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/contact.tsx"
click node_interactions "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/fun.tsx"
click node_doodles "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/doodles.tsx"
click node_portfolio "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/data/portfolio.ts"
click node_server "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/server.ts"
click node_router "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/router.tsx"
click node_route_tree "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/routeTree.gen.ts"
click node_ui_primitives "https://github.com/ashxanonymous/pastel-sketchbook-studio/tree/main/src/components/ui"
click node_sidebar "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/ui/sidebar.tsx"
click node_mobile_hook "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/hooks/use-mobile.tsx"
click node_error_capture "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/lib/error-capture.ts"
click node_error_page "https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/lib/error-page.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_intro,node_navigation,node_hero,node_about,node_work,node_services,node_contact,node_interactions,node_doodles toneBlue
class node_portfolio toneAmber
class node_server,node_router,node_route_tree toneMint
class node_ui_primitives,node_sidebar,node_mobile_hook toneRose
class node_error_capture,node_error_page,node_visitor toneIndigo
```

## Components

### Portfolio experience

- [Home page](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Intro animation](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/intro.tsx): `src/components/intro.tsx`
- [Section navigation](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/nav.tsx): `src/components/nav.tsx`
- [Hero section](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/hero.tsx): `src/components/hero.tsx`
- [About section](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/about.tsx): `src/components/about.tsx`
- [Projects experience](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/work.tsx): `src/components/work.tsx`
- [Services section](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/services.tsx): `src/components/services.tsx`
- [Contact footer](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/contact.tsx): `src/components/contact.tsx`
- [Playful interactions](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/fun.tsx): `src/components/fun.tsx`
- [Doodles](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/doodles.tsx): `src/components/doodles.tsx`

### Portfolio content

- [Portfolio data](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/data/portfolio.ts): `src/data/portfolio.ts`

### Request runtime

- [Server request handler](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/server.ts): `src/server.ts`
- [Router setup](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/router.tsx): `src/router.tsx`
- [Route tree](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`

### UI foundations

- [UI primitives](https://github.com/ashxanonymous/pastel-sketchbook-studio/tree/main/src/components/ui): `src/components/ui`
- [Sidebar components](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/components/ui/sidebar.tsx): `src/components/ui/sidebar.tsx`
- [Mobile breakpoint hook](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/hooks/use-mobile.tsx): `src/hooks/use-mobile.tsx`

### Error handling

- [Error capture](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/lib/error-capture.ts): `src/lib/error-capture.ts`
- [Error page](https://github.com/ashxanonymous/pastel-sketchbook-studio/blob/main/src/lib/error-page.ts): `src/lib/error-page.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: visits (evidence: `README.md`)
- Home page → Intro animation: renders (evidence: `src/routes/index.tsx`)
- Home page → Section navigation: renders (evidence: `src/routes/index.tsx`)
- Home page → Hero section: renders (evidence: `src/routes/index.tsx`)
- Home page → About section: renders (evidence: `src/routes/index.tsx`)
- Home page → Projects experience: renders (evidence: `src/routes/index.tsx`)
- Home page → Services section: renders (evidence: `src/routes/index.tsx`)
- Home page → Contact footer: renders (evidence: `src/routes/index.tsx`)
- Home page → Playful interactions: renders (evidence: `src/routes/index.tsx`)
- About section → Portfolio data: reads content (evidence: `src/components/about.tsx`)
- Hero section → Portfolio data: reads content (evidence: `src/components/hero.tsx`)
- Section navigation → Portfolio data: reads content (evidence: `src/components/nav.tsx`)
- Projects experience → Portfolio data: reads content (evidence: `src/components/work.tsx`)
- Services section → Portfolio data: reads content (evidence: `src/components/services.tsx`)
- Contact footer → Portfolio data: reads content (evidence: `src/components/contact.tsx`)
- Playful interactions → Portfolio data: reads content (evidence: `src/components/fun.tsx`)
- About section → Doodles: uses (evidence: `src/components/about.tsx`)
- Hero section → Doodles: uses (evidence: `src/components/hero.tsx`)
- Projects experience → Doodles: uses (evidence: `src/components/work.tsx`)
- Services section → Doodles: uses (evidence: `src/components/services.tsx`)
- Contact footer → Doodles: uses (evidence: `src/components/contact.tsx`)
- Router setup → Route tree: configures (evidence: `src/router.tsx`)
- Route tree → Home page: registers route (evidence: `src/routeTree.gen.ts`)
- Server request handler → Error capture: consumes errors (evidence: `src/server.ts`)
- Server request handler → Error page: renders on failure (evidence: `src/server.ts`)
- Sidebar components → UI primitives: uses primitives (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar components → Mobile breakpoint hook: checks viewport (evidence: `src/components/ui/sidebar.tsx`)
