How tomoyukinakata/yukilog works
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: default.vue Default layout · pages Pages · Artwork/index.vue Artwork · pages/index.vue Home
Components 25
Nuxt app
Route, layout, and shared UI layers.
- Pages · File-system routed page entry points.
pages - Home · Landing page route.
pages/index.vue - About · About page route.
pages/about/index.vue - Draft page · Special draft page route.
pages/draft.vue - Slug page · Content route driven by URL slug.
pages/_slug/index.vue - Default layout · Main page shell.
layouts/default.vue - Layout wrapper · Outer site frame.
components/LayoutWrapper.vue - Layout main · Primary content container.
components/LayoutMain.vue - Header · Shared top navigation/header.
components/LayoutHeader.vue - Footer · Shared bottom/footer area.
components/LayoutFooter.vue - Base heading · Reusable heading primitive.
components/BaseHeading.vue - Cursor · Global cursor effect.
components/MyCursor.vue - Loading · Global loading indicator.
components/MyLoading.vue - Noise · Global noise layer.
components/MyNoise.vue
Artwork system
Imperative WebGL rendering and shader pipeline.
- Artwork · Scene wrapper for interactive artwork.
components/Artwork/index.vue - Stage · Scene orchestration and lifecycle.
components/Artwork/js/Stage.js - Mesh · Renderable object and geometry handling.
components/Artwork/js/Mesh.js - ArtworkGL · Rendering and WebGL coordination.
components/Artwork/js/ArtworkGL.js - Shaders · Vertex and fragment shader programs.
components/Artwork/js/glsl
Styles and assets
Global styling and static/bundled assets.
- SCSS system · Global Sass entry and shared primitives.
assets/scss/style.scss - Images · Bundled image assets.
assets/image - Static files · Directly served public assets.
static
Deployment edge
Serverless function and Netlify deployment.
Tooling
Project scripts and quality constraints.
- Package scripts · Dev, build, generate, and start scripts.
package.json
Connections 29
- 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.