# cgwire/website architecture

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

- Interactive diagram: https://gitdiagram.com/cgwire/website
- Repository: https://github.com/cgwire/website

## Overview

CGWire Website is a multilingual marketing and product-information site for CGWire/Kitsu, with localized product pages, customer and studio stories, editorial material, metrics, and browser-based tools. The visitor workflow is to navigate localized pages, explore product or studio content, and use search or a free tool. Search has a visible index-generation and fetch flow; the homepage excerpt also shows page, customer-story, and testimonial queries. Several page families are represented by their exact directories because their individual implementations were not sampled; edges are limited to visible calls or README statements.

Main entry points: [`app/app.vue`](https://github.com/cgwire/website/blob/main/app/app.vue) (Nuxt app shell), [`server/routes/search-index.json.get.js`](https://github.com/cgwire/website/blob/main/server/routes/search-index.json.get.js) (Search index endpoint), [`app/pages/free-tools`](https://github.com/cgwire/website/tree/main/app/pages/free-tools) (Free tools), [`app/components/SearchForm.vue`](https://github.com/cgwire/website/blob/main/app/components/SearchForm.vue) (Search interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site experience"]
  node_app["Nuxt app shell<br/>[app.vue]"]
  node_pages["Localized page routes"]
  node_layout["Default layout<br/>[default.vue]"]
  node_routing["Locale route map<br/>[routes.js]"]
  node_nuxt["Nuxt configuration<br/>[nuxt.config.ts]"]
end

subgraph group_content["Content and discovery"]
  node_content_data[("Editorial content<br/>[content.config.ts]")]
  node_home_queries["Homepage queries"]
  node_search_endpoint["Search index endpoint"]
  node_search_content[("Searchable content")]
end

subgraph group_product["Product information"]
  node_home["Homepage<br/>[index.vue]"]
  node_case_studies["Customer stories"]
  node_studio_pages["Studio pages"]
  node_metrics["Metrics and carbon<br/>[metrics.vue]"]
  node_kitsu_pages["Kitsu information<br/>[kitsu.vue]"]
  node_summit["Kitsu summit<br/>[kitsu-summit.vue]"]
end

subgraph group_engagement["Visitor tools"]
  node_free_tools["Free tools"]
  node_converter["File converter<br/>[FileConverter.vue]"]
  node_search_ui["Search interface<br/>[SearchForm.vue]"]
  node_crisp["Crisp chat<br/>[crisp.js]"]
end

node_visitor(("Site visitor"))
node_crisp_service["Crisp service"]

node_visitor -->|"opens"| node_app
node_app -->|"renders routes"| node_pages
node_app -->|"uses layout"| node_layout
node_nuxt -->|"imports routes"| node_routing
node_home -->|"queries page and stories"| node_home_queries
node_search_ui -->|"fetches index"| node_search_endpoint
node_search_endpoint -->|"queries collections"| node_search_content
node_search_endpoint -->|"uses localized paths"| node_routing
node_visitor -->|"searches"| node_search_ui
node_visitor -->|"opens tools"| node_free_tools
node_free_tools -.->|"offers converter"| node_converter
node_visitor -->|"accepts cookies"| node_crisp
node_crisp -->|"loads script"| node_crisp_service

click node_app "https://github.com/cgwire/website/blob/main/app/app.vue"
click node_pages "https://github.com/cgwire/website/tree/main/app/pages"
click node_layout "https://github.com/cgwire/website/blob/main/app/layouts/default.vue"
click node_routing "https://github.com/cgwire/website/blob/main/i18n/routes.js"
click node_nuxt "https://github.com/cgwire/website/blob/main/nuxt.config.ts"
click node_content_data "https://github.com/cgwire/website/blob/main/content.config.ts"
click node_home "https://github.com/cgwire/website/blob/main/app/pages/index.vue"
click node_home_queries "https://github.com/cgwire/website/tree/main/app/composables"
click node_case_studies "https://github.com/cgwire/website/blob/main/app/pages/customer-stories.vue"
click node_studio_pages "https://github.com/cgwire/website/tree/main/app/pages/studios"
click node_metrics "https://github.com/cgwire/website/blob/main/app/pages/metrics.vue"
click node_kitsu_pages "https://github.com/cgwire/website/blob/main/app/pages/kitsu.vue"
click node_summit "https://github.com/cgwire/website/blob/main/app/pages/kitsu-summit.vue"
click node_free_tools "https://github.com/cgwire/website/tree/main/app/pages/free-tools"
click node_converter "https://github.com/cgwire/website/blob/main/app/components/tools/FileConverter.vue"
click node_search_ui "https://github.com/cgwire/website/blob/main/app/components/SearchForm.vue"
click node_search_endpoint "https://github.com/cgwire/website/blob/main/server/routes/search-index.json.get.js"
click node_search_content "https://github.com/cgwire/website/tree/main/content"
click node_crisp "https://github.com/cgwire/website/blob/main/app/plugins/crisp.js"

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_app,node_pages,node_layout,node_routing,node_nuxt toneBlue
class node_content_data,node_home_queries,node_search_endpoint,node_search_content toneAmber
class node_home,node_case_studies,node_studio_pages,node_metrics,node_kitsu_pages,node_summit toneMint
class node_free_tools,node_converter,node_search_ui,node_crisp toneRose
class node_visitor,node_crisp_service toneIndigo
```

## Components

### Site experience

- [Nuxt app shell](https://github.com/cgwire/website/blob/main/app/app.vue): `app/app.vue`
- [Localized page routes](https://github.com/cgwire/website/tree/main/app/pages): `app/pages`
- [Default layout](https://github.com/cgwire/website/blob/main/app/layouts/default.vue): `app/layouts/default.vue`
- [Locale route map](https://github.com/cgwire/website/blob/main/i18n/routes.js): `i18n/routes.js`
- [Nuxt configuration](https://github.com/cgwire/website/blob/main/nuxt.config.ts): `nuxt.config.ts`

### Content and discovery

- [Editorial content](https://github.com/cgwire/website/blob/main/content.config.ts): `content.config.ts`
- [Homepage queries](https://github.com/cgwire/website/tree/main/app/composables): `app/composables`
- [Search index endpoint](https://github.com/cgwire/website/blob/main/server/routes/search-index.json.get.js): `server/routes/search-index.json.get.js`
- [Searchable content](https://github.com/cgwire/website/tree/main/content): `content`

### Product information

- [Homepage](https://github.com/cgwire/website/blob/main/app/pages/index.vue): `app/pages/index.vue`
- [Customer stories](https://github.com/cgwire/website/blob/main/app/pages/customer-stories.vue): `app/pages/customer-stories.vue`
- [Studio pages](https://github.com/cgwire/website/tree/main/app/pages/studios): `app/pages/studios`
- [Metrics and carbon](https://github.com/cgwire/website/blob/main/app/pages/metrics.vue): `app/pages/metrics.vue`
- [Kitsu information](https://github.com/cgwire/website/blob/main/app/pages/kitsu.vue): `app/pages/kitsu.vue`
- [Kitsu summit](https://github.com/cgwire/website/blob/main/app/pages/kitsu-summit.vue): `app/pages/kitsu-summit.vue`

### Visitor tools

- [Free tools](https://github.com/cgwire/website/tree/main/app/pages/free-tools): `app/pages/free-tools`
- [File converter](https://github.com/cgwire/website/blob/main/app/components/tools/FileConverter.vue): `app/components/tools/FileConverter.vue`
- [Search interface](https://github.com/cgwire/website/blob/main/app/components/SearchForm.vue): `app/components/SearchForm.vue`
- [Crisp chat](https://github.com/cgwire/website/blob/main/app/plugins/crisp.js): `app/plugins/crisp.js`

### Other components

- **Site visitor**
- **Crisp service**

## Connections

- Site visitor → Nuxt app shell: opens (evidence: `app/app.vue`)
- Nuxt app shell → Localized page routes: renders routes (evidence: `app/app.vue`)
- Nuxt app shell → Default layout: uses layout (evidence: `app/app.vue`)
- Nuxt configuration → Locale route map: imports routes (evidence: `nuxt.config.ts`)
- Homepage → Homepage queries: queries page and stories (evidence: `app/pages/index.vue`)
- Search interface → Search index endpoint: fetches index (evidence: `app/components/SearchForm.vue`)
- Search index endpoint → Searchable content: queries collections (evidence: `server/routes/search-index.json.get.js`)
- Search index endpoint → Locale route map: uses localized paths (evidence: `server/routes/search-index.json.get.js`)
- Site visitor → Search interface: searches (evidence: `app/components/SearchForm.vue`)
- Site visitor → Free tools: opens tools (evidence: `app/pages/free-tools/index.vue`)
- Free tools → File converter: offers converter
- Site visitor → Crisp chat: accepts cookies (evidence: `app/plugins/crisp.js`)
- Crisp chat → Crisp service: loads script (evidence: `app/plugins/crisp.js`)
