# vibirdinternational/vbird architecture

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

- Interactive diagram: https://gitdiagram.com/vibirdinternational/vbird
- Repository: https://github.com/vibirdinternational/vbird

## Overview

#### Purpose and Top-Level Shape
This repository contains a mostly static Vbird marketing/information site plus a nested Sanity CMS project. The root site serves public pages for the homepage, about, learning, privacy, and terms; `vibird/` is the content-management workspace.

Key public entry points:
- `index.html`
- `about/index.html`
- `learn/index.html`
- `privacy/index.html`
- `terms/index.html`

#### Static Site Delivery
The root is an HTML-first site with page-local entry documents and shared compiled styling/scripts. It does not expose an application server or API layer in the visible tree.

Shared presentation/runtime assets:
- `src/css/tailwind-input.css`
- `src/css/tailwind.css`
- `src/js/main.js`

`vercel.json` indicates deployment is configured for Vercel, likely serving the root’s static documents and assets.

#### Client-Side Behavior and Observability
Browser behavior is centralized in the root JavaScript rather than framework component code. `main.js` is the likely location for navigation, animations, interaction handling, and DOM initialization. Performance telemetry is separated into its own browser module.

Relevant paths:
- `src/js/main.js`
- `src/js/speed-insights.js`
- `vercel.json`

Control flow: HTML page loads shared CSS and JavaScript; JavaScript enhances the static DOM and may initialize Vercel Speed Insights or equivalent client analytics.

#### Styling and Design System
Tailwind is the central styling pipeline. Source styles are authored in the Tailwind input file and emitted to a consumable stylesheet; Tailwind configuration defines the project-wide design tokens/content scanning rules.

Relevant paths:
- `src/css/tailwind-input.css`
- `src/css/tailwind.css`
- `tailwind.config.js`

The generated CSS is an important boundary: public pages should consume `tailwind.css`, while design changes should generally originate in the input/configuration layer.

#### Asset Organization
Visual content is stored under `src/Images`, organized by page or subject area. This supports static asset references from HTML/CSS rather than dynamic media delivery.

Representative paths:
- `src/Images/Background`
- `src/Images/Products`
- `src/Images/about/About story.avif`
- `src/Images/other/logo.avif`

The AVIF asset usage suggests image optimization is handled at asset-preparation time, not by a visible runtime image service.

#### Sanity CMS Workspace
`vibird/` is an independent TypeScript Sanity project, with its own dependencies, CLI setup, static directory, and schema registration. It is architecturally separate from the root site in the current tree; no visible root integration code fetches Sanity content.

Relevant paths:
- `vibird/sanity.config.ts`
- `vibird/sanity.cli.ts`
- `vibird/schemaTypes/index.ts`
- `vibird/package.json`

The CMS boundary is Sanity’s hosted content platform: schema definitions determine editable document types, and Studio configuration connects the local workspace to the Sanity project/dataset. Future dynamic-content work would need an explicit client/build integration from root pages to this CMS.

#### Deployment and Runtime Boundaries
Two distinct Node-managed workspaces exist:
- Root workspace: static-site build dependencies and Tailwind pipeline in `package.json`.
- CMS workspace: Sanity Studio tooling in `vibird/package.json`.

Infrastructure/services:
- Vercel deployment configuration: `vercel.json`
- Sanity Studio/content backend configuration: `vibird/sanity.config.ts`

The principal operational flow is: build root CSS/assets → deploy static pages to Vercel; separately run/deploy Sanity Studio to manage structured content.

Main entry points: [`vibird/sanity.config.ts`](https://github.com/vibirdinternational/vbird/blob/main/vibird/sanity.config.ts) (Sanity Studio), [`index.html`](https://github.com/vibirdinternational/vbird/blob/main/index.html) (Public pages), [`src/css/tailwind.css`](https://github.com/vibirdinternational/vbird/blob/main/src/css/tailwind.css) (Compiled stylesheet), [`package.json`](https://github.com/vibirdinternational/vbird/blob/main/package.json) (Root build workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_static["Static marketing site"]
  node_pages["Public pages<br/>HTML documents<br/>[index.html]"]
  node_assets["Static images<br/>asset library"]
  node_main_js["Browser enhancements<br/>client JavaScript<br/>[main.js]"]
  node_speed_insights["Performance telemetry<br/>browser module<br/>[speed-insights.js]"]
  node_vercel{{"Vercel deployment<br/>hosting configuration<br/>[vercel.json]"}}
  node_root_packages["Root build workspace<br/>Node workspace<br/>[package.json]"]
end

subgraph group_styling["Styling pipeline"]
  node_tailwind_input["Tailwind source<br/>CSS source<br/>[tailwind-input.css]"]
  node_tailwind_config["Tailwind configuration<br/>build configuration<br/>[tailwind.config.js]"]
  node_tailwind_css["Compiled stylesheet<br/>generated CSS<br/>[tailwind.css]"]
end

subgraph group_cms["Sanity CMS workspace"]
  node_sanity_studio["Sanity Studio<br/>CMS application<br/>[sanity.config.ts]"]
  node_sanity_cli["Sanity CLI setup<br/>CLI configuration<br/>[sanity.cli.ts]"]
  node_schemas["Document schemas<br/>Sanity schema registry<br/>[index.ts]"]
  node_cms_packages["CMS dependencies<br/>Node workspace<br/>[package.json]"]
  node_sanity_platform[("Sanity content platform<br/>hosted CMS backend")]
end

node_tailwind_input -->|"compiled to"| node_tailwind_css
node_tailwind_config -->|"configures build"| node_tailwind_css
node_root_packages -->|"runs build tooling"| node_tailwind_input
node_tailwind_css -->|"styles"| node_pages
node_assets -->|"referenced by"| node_pages
node_main_js -->|"enhances"| node_pages
node_speed_insights -->|"initialized by"| node_main_js
node_pages -->|"deployed to"| node_vercel
node_root_packages -->|"builds for"| node_vercel
node_cms_packages -->|"provides tooling"| node_sanity_studio
node_sanity_cli -->|"supports"| node_sanity_studio
node_schemas -->|"registered by"| node_sanity_studio
node_sanity_studio -->|"connects to"| node_sanity_platform
node_sanity_studio -.->|"no visible integration"| node_pages

click node_pages "https://github.com/vibirdinternational/vbird/blob/main/index.html"
click node_assets "https://github.com/vibirdinternational/vbird/tree/main/src/Images"
click node_main_js "https://github.com/vibirdinternational/vbird/blob/main/src/js/main.js"
click node_speed_insights "https://github.com/vibirdinternational/vbird/blob/main/src/js/speed-insights.js"
click node_vercel "https://github.com/vibirdinternational/vbird/blob/main/vercel.json"
click node_tailwind_input "https://github.com/vibirdinternational/vbird/blob/main/src/css/tailwind-input.css"
click node_tailwind_config "https://github.com/vibirdinternational/vbird/blob/main/tailwind.config.js"
click node_tailwind_css "https://github.com/vibirdinternational/vbird/blob/main/src/css/tailwind.css"
click node_root_packages "https://github.com/vibirdinternational/vbird/blob/main/package.json"
click node_sanity_studio "https://github.com/vibirdinternational/vbird/blob/main/vibird/sanity.config.ts"
click node_sanity_cli "https://github.com/vibirdinternational/vbird/blob/main/vibird/sanity.cli.ts"
click node_schemas "https://github.com/vibirdinternational/vbird/blob/main/vibird/schemaTypes/index.ts"
click node_cms_packages "https://github.com/vibirdinternational/vbird/blob/main/vibird/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_assets,node_main_js,node_speed_insights,node_vercel,node_root_packages toneBlue
class node_tailwind_input,node_tailwind_config,node_tailwind_css toneAmber
class node_sanity_studio,node_sanity_cli,node_schemas,node_cms_packages,node_sanity_platform toneMint
```

## Components

### Static marketing site

Public HTML-first site served from the repository root.

- [Public pages](https://github.com/vibirdinternational/vbird/blob/main/index.html): HTML documents · Homepage, about, learn, privacy, and terms entry pages. · `index.html`
- [Static images](https://github.com/vibirdinternational/vbird/tree/main/src/Images): asset library · Page-organized AVIF and other visual assets. · `src/Images`
- [Browser enhancements](https://github.com/vibirdinternational/vbird/blob/main/src/js/main.js): client JavaScript · Initializes navigation, animation, and DOM interactions. · `src/js/main.js`
- [Performance telemetry](https://github.com/vibirdinternational/vbird/blob/main/src/js/speed-insights.js): browser module · Client-side performance insights initialization. · `src/js/speed-insights.js`
- [Vercel deployment](https://github.com/vibirdinternational/vbird/blob/main/vercel.json): hosting configuration · Deploys the root static site. · `vercel.json`
- [Root build workspace](https://github.com/vibirdinternational/vbird/blob/main/package.json): Node workspace · Provides static-site and Tailwind build dependencies. · `package.json`

### Styling pipeline

Tailwind source and generated stylesheet boundary.

- [Tailwind source](https://github.com/vibirdinternational/vbird/blob/main/src/css/tailwind-input.css): CSS source · Authored styles and Tailwind directives. · `src/css/tailwind-input.css`
- [Tailwind configuration](https://github.com/vibirdinternational/vbird/blob/main/tailwind.config.js): build configuration · Defines design tokens and content scanning. · `tailwind.config.js`
- [Compiled stylesheet](https://github.com/vibirdinternational/vbird/blob/main/src/css/tailwind.css): generated CSS · Consumable stylesheet used by public pages. · `src/css/tailwind.css`

### Sanity CMS workspace

Independent content-authoring project under vibird/.

- [Sanity Studio](https://github.com/vibirdinternational/vbird/blob/main/vibird/sanity.config.ts): CMS application · Local authoring workspace connected to Sanity. · `vibird/sanity.config.ts`
- [Sanity CLI setup](https://github.com/vibirdinternational/vbird/blob/main/vibird/sanity.cli.ts): CLI configuration · `vibird/sanity.cli.ts`
- [Document schemas](https://github.com/vibirdinternational/vbird/blob/main/vibird/schemaTypes/index.ts): Sanity schema registry · Registers editable structured content types. · `vibird/schemaTypes/index.ts`
- [CMS dependencies](https://github.com/vibirdinternational/vbird/blob/main/vibird/package.json): Node workspace · Sanity Studio dependencies and scripts. · `vibird/package.json`
- **Sanity content platform**: hosted CMS backend · Stores content for the configured project and dataset.

## Connections

- Tailwind source → Compiled stylesheet: compiled to
- Tailwind configuration → Compiled stylesheet: configures build
- Root build workspace → Tailwind source: runs build tooling
- Compiled stylesheet → Public pages: styles
- Static images → Public pages: referenced by
- Browser enhancements → Public pages: enhances
- Performance telemetry → Browser enhancements: initialized by
- Public pages → Vercel deployment: deployed to
- Root build workspace → Vercel deployment: builds for
- CMS dependencies → Sanity Studio: provides tooling
- Sanity CLI setup → Sanity Studio: supports
- Document schemas → Sanity Studio: registered by
- Sanity Studio → Sanity content platform: connects to
- Sanity Studio → Public pages: no visible integration · The root static pages do not visibly fetch CMS content.
