# tomoyukinakata/yukilog architecture

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

- Interactive diagram: https://gitdiagram.com/tomoyukinakata/yukilog
- Repository: https://github.com/tomoyukinakata/yukilog

## Overview

1. **Overall shape**
   - This is a **Nuxt.js** application organized as a mostly static, content-driven site.
   - The primary runtime is Vue/Nuxt on the client, with Nuxt’s page/layout system driving routing and page assembly.
   - Build/deploy appears oriented toward **static generation** and/or **Netlify** hosting.

2. **Routing and page entry points**
   - The `pages/` directory defines the app’s routes:
     - `pages/index.vue` for the home page
     - `pages/about/index.vue` for an about page
     - `pages/draft.vue` for a draft/special page
     - `pages/_slug/index.vue` for a dynamic route driven by a URL slug
   - This means route selection is file-system based, and page content is likely assembled per route rather than through a separate client-side router setup.

3. **Layout composition**
   - `layouts/default.vue` is the main shell for pages.
   - The `components/Layout*` set (`LayoutWrapper`, `LayoutMain`, `LayoutHeader`, `LayoutFooter`) provides the global page frame.
   - These components form the boundary between page-specific content and shared site chrome.

4. **Reusable UI components**
   - `BaseHeading.vue` is a generic typographic component for consistent headings.
   - `MyCursor.vue`, `MyLoading.vue`, and `MyNoise.vue` look like global UI/UX layers rather than page content.
   - These likely render above or around page content and act as cross-cutting presentation concerns.

5. **Art/visual subsystem**
   - `components/Artwork/` is a self-contained visual subsystem.
   - It contains:
     - `Stage.js` for scene/setup orchestration
     - `Mesh.js` for geometry/renderable object handling
     - `ArtworkGL.js` for WebGL rendering logic
     - GLSL shader files in `js/glsl/` (`shape.vert`, `shape.frag`)
   - This is the clearest “imperative graphics” boundary in the repo: Vue wraps it, but the rendering logic is isolated in JS/WebGL and shader code.

6. **Styling system**
   - Global styling lives in `assets/scss/`.
   - The SCSS structure is split into reusable primitives:
     - `_variables.scss` for design tokens
     - `_function.scss` and `_mixin.scss` for shared Sass helpers
     - `_base.scss` for base/reset styles
     - `style.scss` as the main stylesheet entry
   - This suggests a centralized design system rather than component-scoped styling only.

7. **Content/data boundaries**
   - There is no obvious large backend or database layer in the tree.
   - Page data is likely local, embedded, or fetched from lightweight sources at build/runtime.
   - The dynamic `_slug` route implies content is probably keyed by slug, but the repository tree does not show a dedicated CMS integration.

8. **Serverless / deployment edge**
   - `functions/draft.js` suggests a **Netlify Function** or similar serverless endpoint.
   - `netlify.toml` confirms Netlify is part of the deployment story.
   - If used, this function is the main backend boundary: the app front end calls into a small serverless handler rather than a full application server.

9. **Static assets**
   - `assets/image/` holds source imagery processed by the build pipeline.
   - `static/` is the public file bucket for assets served as-is.
   - The distinction matters architecturally: `assets/` participates in bundling, while `static/` is served directly.

10. **Application flow**
   - A request lands on a Nuxt route in `pages/`.
   - The page is wrapped by `layouts/default.vue` and shared layout components.
   - Page content may include visual layers like `Artwork`, cursor/loading effects, and global noise overlay.
   - Styling is applied via the global SCSS pipeline.
   - If a draft or special workflow needs backend behavior, it likely goes through `functions/draft.js`.

11. **Tooling and constraints**
   - The repo uses standard frontend quality tooling: ESLint, Prettier, and Stylelint.
   - `package.json` scripts support local dev, production build/start, and static generation.
   - The presence of `generate` indicates the site is designed to be deployable as pre-rendered output, which affects architecture more than a typical SPA.

12. **What to draw in an architecture diagram**
   - Show a Nuxt app with three major front-end layers:
     1) route/page layer (`pages/`)
     2) shared layout/component layer (`layouts/`, `components/`)
     3) styling/asset layer (`assets/`, `static/`)
   - Add a distinct “WebGL artwork” subsystem under components, with shader files as a subcomponent.
   - Add a small optional backend edge for Netlify Functions.
   - Keep the diagram light on backend complexity: this repo looks front-end heavy, with only minimal serverless support.

Main entry points: [`layouts/default.vue`](https://github.com/tomoyukinakata/yukilog/blob/master/layouts/default.vue) (Default layout), [`pages`](https://github.com/tomoyukinakata/yukilog/tree/master/pages) (Pages), [`components/Artwork/index.vue`](https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/index.vue) (Artwork), [`pages/index.vue`](https://github.com/tomoyukinakata/yukilog/blob/master/pages/index.vue) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Nuxt app"]
  node_pages["Pages<br/>nuxt routes"]
  node_page_home["Home<br/>route<br/>[index.vue]"]
  node_page_about["About<br/>route<br/>[index.vue]"]
  node_page_draft["Draft page<br/>route<br/>[draft.vue]"]
  node_page_slug["Slug page<br/>dynamic route<br/>[index.vue]"]
  node_layout_default["Default layout<br/>nuxt layout<br/>[default.vue]"]
  node_layout_wrapper["Layout wrapper<br/>frame component<br/>[LayoutWrapper.vue]"]
  node_layout_main["Layout main<br/>frame component<br/>[LayoutMain.vue]"]
  node_layout_header["Header<br/>chrome component<br/>[LayoutHeader.vue]"]
  node_layout_footer["Footer<br/>chrome component<br/>[LayoutFooter.vue]"]
  node_base_heading["Base heading<br/>typography component<br/>[BaseHeading.vue]"]
  node_cursor(("Cursor<br/>ui overlay<br/>[MyCursor.vue]"))
  node_loading(("Loading<br/>ui overlay<br/>[MyLoading.vue]"))
  node_noise(("Noise<br/>visual overlay<br/>[MyNoise.vue]"))
end

subgraph group_visual["Artwork system"]
  node_artwork["Artwork<br/>webgl component<br/>[index.vue]"]
  node_stage["Stage<br/>scene setup<br/>[Stage.js]"]
  node_mesh["Mesh<br/>geometry layer<br/>[Mesh.js]"]
  node_artwork_gl["ArtworkGL<br/>webgl renderer<br/>[ArtworkGL.js]"]
  node_shaders["Shaders<br/>glsl shader set"]
end

subgraph group_style["Styles and assets"]
  node_scss["SCSS system<br/>style pipeline<br/>[style.scss]"]
  node_images["Images<br/>asset source"]
  node_static["Static files<br/>public assets"]
end

subgraph group_backend["Deployment edge"]
  node_draft_fn["Draft API<br/>serverless function<br/>[draft.js]"]
  node_netlify["Netlify<br/>deploy config<br/>[netlify.toml]"]
end

subgraph group_tooling["Tooling"]
  node_package["Package scripts<br/>build tooling<br/>[package.json]"]
end

node_pages -->|"defines"| node_page_home
node_pages -->|"defines"| node_page_about
node_pages -->|"defines"| node_page_draft
node_pages -->|"defines"| node_page_slug
node_page_home -->|"uses"| node_layout_default
node_page_about -->|"uses"| node_layout_default
node_page_draft -->|"uses"| node_layout_default
node_page_slug -->|"uses"| node_layout_default
node_layout_default -->|"composes"| node_layout_wrapper
node_layout_default -->|"composes"| node_layout_main
node_layout_default -->|"composes"| node_layout_header
node_layout_default -->|"composes"| node_layout_footer
node_layout_default -->|"uses"| node_base_heading
node_layout_default -->|"overlays"| node_cursor
node_layout_default -->|"overlays"| node_loading
node_layout_default -->|"overlays"| node_noise
node_page_home -->|"includes"| node_artwork
node_page_slug -->|"includes"| node_artwork
node_artwork -->|"orchestrates"| node_stage
node_artwork -->|"builds"| node_mesh
node_artwork -->|"renders"| node_artwork_gl
node_artwork_gl -->|"loads"| node_shaders
node_scss -->|"references"| node_images
node_netlify -->|"deploys"| node_draft_fn
node_page_draft -.->|"calls"| node_draft_fn
node_package -->|"builds"| node_pages
node_package -->|"targets"| node_netlify
node_static -.->|"serves"| node_pages
node_scss -->|"styles"| node_layout_default

click node_pages "https://github.com/tomoyukinakata/yukilog/tree/master/pages"
click node_page_home "https://github.com/tomoyukinakata/yukilog/blob/master/pages/index.vue"
click node_page_about "https://github.com/tomoyukinakata/yukilog/blob/master/pages/about/index.vue"
click node_page_draft "https://github.com/tomoyukinakata/yukilog/blob/master/pages/draft.vue"
click node_page_slug "https://github.com/tomoyukinakata/yukilog/blob/master/pages/_slug/index.vue"
click node_layout_default "https://github.com/tomoyukinakata/yukilog/blob/master/layouts/default.vue"
click node_layout_wrapper "https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutWrapper.vue"
click node_layout_main "https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutMain.vue"
click node_layout_header "https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutHeader.vue"
click node_layout_footer "https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutFooter.vue"
click node_base_heading "https://github.com/tomoyukinakata/yukilog/blob/master/components/BaseHeading.vue"
click node_cursor "https://github.com/tomoyukinakata/yukilog/blob/master/components/MyCursor.vue"
click node_loading "https://github.com/tomoyukinakata/yukilog/blob/master/components/MyLoading.vue"
click node_noise "https://github.com/tomoyukinakata/yukilog/blob/master/components/MyNoise.vue"
click node_artwork "https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/index.vue"
click node_stage "https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/Stage.js"
click node_mesh "https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/Mesh.js"
click node_artwork_gl "https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/ArtworkGL.js"
click node_shaders "https://github.com/tomoyukinakata/yukilog/tree/master/components/Artwork/js/glsl"
click node_scss "https://github.com/tomoyukinakata/yukilog/blob/master/assets/scss/style.scss"
click node_images "https://github.com/tomoyukinakata/yukilog/tree/master/assets/image"
click node_static "https://github.com/tomoyukinakata/yukilog/tree/master/static"
click node_draft_fn "https://github.com/tomoyukinakata/yukilog/blob/master/functions/draft.js"
click node_netlify "https://github.com/tomoyukinakata/yukilog/blob/master/netlify.toml"
click node_package "https://github.com/tomoyukinakata/yukilog/blob/master/package.json"

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_pages,node_page_home,node_page_about,node_page_draft,node_page_slug,node_layout_default,node_layout_wrapper,node_layout_main,node_layout_header,node_layout_footer,node_base_heading,node_cursor,node_loading,node_noise toneBlue
class node_artwork,node_stage,node_mesh,node_artwork_gl,node_shaders toneAmber
class node_scss,node_images,node_static toneMint
class node_draft_fn,node_netlify toneRose
class node_package toneIndigo
```

## Components

### Nuxt app

Route, layout, and shared UI layers.

- [Pages](https://github.com/tomoyukinakata/yukilog/tree/master/pages): nuxt routes · File-system routed page entry points. · `pages`
- [Home](https://github.com/tomoyukinakata/yukilog/blob/master/pages/index.vue): route · Landing page route. · `pages/index.vue`
- [About](https://github.com/tomoyukinakata/yukilog/blob/master/pages/about/index.vue): route · About page route. · `pages/about/index.vue`
- [Draft page](https://github.com/tomoyukinakata/yukilog/blob/master/pages/draft.vue): route · Special draft page route. · `pages/draft.vue`
- [Slug page](https://github.com/tomoyukinakata/yukilog/blob/master/pages/_slug/index.vue): dynamic route · Content route driven by URL slug. · `pages/_slug/index.vue`
- [Default layout](https://github.com/tomoyukinakata/yukilog/blob/master/layouts/default.vue): nuxt layout · Main page shell. · `layouts/default.vue`
- [Layout wrapper](https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutWrapper.vue): frame component · Outer site frame. · `components/LayoutWrapper.vue`
- [Layout main](https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutMain.vue): frame component · Primary content container. · `components/LayoutMain.vue`
- [Header](https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutHeader.vue): chrome component · Shared top navigation/header. · `components/LayoutHeader.vue`
- [Footer](https://github.com/tomoyukinakata/yukilog/blob/master/components/LayoutFooter.vue): chrome component · Shared bottom/footer area. · `components/LayoutFooter.vue`
- [Base heading](https://github.com/tomoyukinakata/yukilog/blob/master/components/BaseHeading.vue): typography component · Reusable heading primitive. · `components/BaseHeading.vue`
- [Cursor](https://github.com/tomoyukinakata/yukilog/blob/master/components/MyCursor.vue): ui overlay · Global cursor effect. · `components/MyCursor.vue`
- [Loading](https://github.com/tomoyukinakata/yukilog/blob/master/components/MyLoading.vue): ui overlay · Global loading indicator. · `components/MyLoading.vue`
- [Noise](https://github.com/tomoyukinakata/yukilog/blob/master/components/MyNoise.vue): visual overlay · Global noise layer. · `components/MyNoise.vue`

### Artwork system

Imperative WebGL rendering and shader pipeline.

- [Artwork](https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/index.vue): webgl component · Scene wrapper for interactive artwork. · `components/Artwork/index.vue`
- [Stage](https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/Stage.js): scene setup · Scene orchestration and lifecycle. · `components/Artwork/js/Stage.js`
- [Mesh](https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/Mesh.js): geometry layer · Renderable object and geometry handling. · `components/Artwork/js/Mesh.js`
- [ArtworkGL](https://github.com/tomoyukinakata/yukilog/blob/master/components/Artwork/js/ArtworkGL.js): webgl renderer · Rendering and WebGL coordination. · `components/Artwork/js/ArtworkGL.js`
- [Shaders](https://github.com/tomoyukinakata/yukilog/tree/master/components/Artwork/js/glsl): glsl shader set · Vertex and fragment shader programs. · `components/Artwork/js/glsl`

### Styles and assets

Global styling and static/bundled assets.

- [SCSS system](https://github.com/tomoyukinakata/yukilog/blob/master/assets/scss/style.scss): style pipeline · Global Sass entry and shared primitives. · `assets/scss/style.scss`
- [Images](https://github.com/tomoyukinakata/yukilog/tree/master/assets/image): asset source · Bundled image assets. · `assets/image`
- [Static files](https://github.com/tomoyukinakata/yukilog/tree/master/static): public assets · Directly served public assets. · `static`

### Deployment edge

Serverless function and Netlify deployment.

- [Draft API](https://github.com/tomoyukinakata/yukilog/blob/master/functions/draft.js): serverless function · Netlify function for draft-related behavior. · `functions/draft.js`
- [Netlify](https://github.com/tomoyukinakata/yukilog/blob/master/netlify.toml): deploy config · Hosting and function deployment configuration. · `netlify.toml`

### Tooling

Project scripts and quality constraints.

- [Package scripts](https://github.com/tomoyukinakata/yukilog/blob/master/package.json): build tooling · Dev, build, generate, and start scripts. · `package.json`

## Connections

- Pages → Home: defines · Route entry point.
- Pages → About: defines · Route entry point.
- Pages → Draft page: defines · Route entry point.
- Pages → Slug page: defines · Dynamic content route.
- Home → Default layout: uses · Rendered inside the shared shell.
- About → Default layout: uses · Rendered inside the shared shell.
- Draft page → Default layout: uses · Rendered inside the shared shell.
- Slug page → Default layout: uses · Rendered inside the shared shell.
- Default layout → Layout wrapper: composes · Main frame is wrapped by the layout shell.
- Default layout → Layout main: composes · Primary content area.
- Default layout → Header: composes · Shared site chrome.
- Default layout → Footer: composes · Shared site chrome.
- Default layout → Base heading: uses · Shared typographic primitive.
- Default layout → Cursor: overlays · Global UI layer.
- Default layout → Loading: overlays · Global UI layer.
- Default layout → Noise: overlays · Global UI layer.
- Home → Artwork: includes · Page can mount the artwork subsystem.
- Slug page → Artwork: includes · Dynamic content may use the artwork subsystem.
- Artwork → Stage: orchestrates · Scene setup and lifecycle.
- Artwork → Mesh: builds · Renderable geometry.
- Artwork → ArtworkGL: renders · WebGL rendering core.
- ArtworkGL → Shaders: loads · Shader programs.
- SCSS system → Images: references · Styled assets used by the build.
- Netlify → Draft API: deploys · Serverless function edge.
- Draft page → Draft API: calls · Draft workflow may reach serverless behavior.
- Package scripts → Pages: builds · Nuxt generation and app build.
- Package scripts → Netlify: targets · Deployment/runtime target.
- Static files → Pages: serves · Public assets consumed by routes.
- SCSS system → Default layout: styles · Global styling applies to the shell.
