# codebuffai/codebuff-community architecture

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

- Interactive diagram: https://gitdiagram.com/codebuffai/codebuff-community
- Repository: https://github.com/codebuffai/codebuff-community

## Overview

Codebuff Community is a catalog of starter templates and community showcase projects, rather than one application. A developer uses Codebuff to create a project from a named template or starts Codebuff in an existing project. The catalog spans web apps, browser extensions, CLIs, and Convex; the showcases include Git analysis, an interactive aquarium, and Minecraft projects. The Git-analysis API’s clone-to-analysis flow and the aquarium’s rendering hierarchy are shown where source was sampled. Other project internals are represented at their supported directory paths because their source was not inspected.

Main entry points: [`starter-templates`](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates) (Starter catalog), [`showcase`](https://github.com/codebuffai/codebuff-community/tree/main/showcase) (Showcase catalog), [`showcase/code-analysis/app/main.py`](https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/app/main.py) (Analysis API), [`showcase/fishies/src/components/FishTank.tsx`](https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/FishTank.tsx) (Tank simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Project Catalog"]
  node_starter_catalog["Starter catalog"]
  node_showcase_catalog["Showcase catalog"]
end

subgraph group_templates["Starter Templates"]
  node_vite_template["Vite React app"]
  node_next_template["Next.js app"]
  node_remix_template["Remix app"]
  node_extension_template["Chrome extension"]
  node_convex_template["Convex messages"]
  node_cli_templates["CLI templates"]
  node_python_cli_template["Python CLI"]
end

subgraph group_analysis["Git Analysis"]
  node_analysis_extension["Analysis extension"]
  node_analysis_api["Analysis API<br/>[main.py]"]
  node_repo_clone["Repository clone<br/>[main.py]"]
  node_analysis_metrics["Git metrics<br/>[git_analysis.py]"]
end

subgraph group_showcase["Showcase Projects"]
  node_aquarium_app["Aquarium app<br/>[App.tsx]"]
  node_tank_simulation["Tank simulation<br/>[FishTank.tsx]"]
  node_aquarium_creatures["Aquarium creatures"]
  node_tank_effects["Tank effects<br/>[RippleEffect.tsx]"]
  node_minecraft_complex["Minecraft showcase"]
  node_minecraft_simple["Minecraft demo<br/>[script.js]"]
end

node_developer(("Developer"))
node_codebuff["Codebuff CLI"]

node_developer -->|"runs"| node_codebuff
node_codebuff -->|"creates from"| node_starter_catalog
node_developer -->|"starts in project"| node_codebuff
node_starter_catalog -->|"offers template"| node_vite_template
node_starter_catalog -->|"offers template"| node_next_template
node_starter_catalog -->|"offers template"| node_remix_template
node_starter_catalog -->|"offers template"| node_extension_template
node_starter_catalog -->|"offers template"| node_convex_template
node_starter_catalog -->|"offers template"| node_cli_templates
node_starter_catalog -->|"offers template"| node_python_cli_template
node_showcase_catalog -->|"showcases project"| node_analysis_extension
node_showcase_catalog -->|"showcases project"| node_analysis_api
node_showcase_catalog -->|"showcases project"| node_aquarium_app
node_showcase_catalog -->|"showcases project"| node_minecraft_complex
node_showcase_catalog -->|"showcases project"| node_minecraft_simple
node_analysis_api -->|"clones repository"| node_repo_clone
node_analysis_api -->|"dispatches analysis"| node_analysis_metrics
node_aquarium_app -->|"renders"| node_tank_simulation
node_tank_simulation -->|"renders"| node_aquarium_creatures
node_tank_simulation -->|"renders"| node_tank_effects

click node_starter_catalog "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates"
click node_showcase_catalog "https://github.com/codebuffai/codebuff-community/tree/main/showcase"
click node_vite_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/vite"
click node_next_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/nextjs"
click node_remix_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/remix"
click node_extension_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/chrome-extension"
click node_convex_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/convex"
click node_cli_templates "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/node-cli"
click node_python_cli_template "https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/python-cli"
click node_analysis_extension "https://github.com/codebuffai/codebuff-community/tree/main/showcase/code-analysis/extension"
click node_analysis_api "https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/app/main.py"
click node_repo_clone "https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/app/main.py"
click node_analysis_metrics "https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/cli/git_analysis.py"
click node_aquarium_app "https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/App.tsx"
click node_tank_simulation "https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/FishTank.tsx"
click node_aquarium_creatures "https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/UnderwaterDecorations.tsx"
click node_tank_effects "https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/RippleEffect.tsx"
click node_minecraft_complex "https://github.com/codebuffai/codebuff-community/tree/main/showcase/minecraft-complex"
click node_minecraft_simple "https://github.com/codebuffai/codebuff-community/blob/main/showcase/minecraft-simple/script.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_starter_catalog,node_showcase_catalog toneBlue
class node_vite_template,node_next_template,node_remix_template,node_extension_template,node_convex_template,node_cli_templates,node_python_cli_template toneAmber
class node_analysis_extension,node_analysis_api,node_repo_clone,node_analysis_metrics toneMint
class node_aquarium_app,node_tank_simulation,node_aquarium_creatures,node_tank_effects,node_minecraft_complex,node_minecraft_simple toneRose
class node_developer,node_codebuff toneIndigo
```

## Components

### Project Catalog

- [Starter catalog](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates): `starter-templates`
- [Showcase catalog](https://github.com/codebuffai/codebuff-community/tree/main/showcase): `showcase`

### Starter Templates

- [Vite React app](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/vite): `starter-templates/vite`
- [Next.js app](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/nextjs): `starter-templates/nextjs`
- [Remix app](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/remix): `starter-templates/remix`
- [Chrome extension](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/chrome-extension): `starter-templates/chrome-extension`
- [Convex messages](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/convex): `starter-templates/convex`
- [CLI templates](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/node-cli): `starter-templates/node-cli`
- [Python CLI](https://github.com/codebuffai/codebuff-community/tree/main/starter-templates/python-cli): `starter-templates/python-cli`

### Git Analysis

- [Analysis extension](https://github.com/codebuffai/codebuff-community/tree/main/showcase/code-analysis/extension): `showcase/code-analysis/extension`
- [Analysis API](https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/app/main.py): `showcase/code-analysis/app/main.py`
- [Repository clone](https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/app/main.py): `showcase/code-analysis/app/main.py`
- [Git metrics](https://github.com/codebuffai/codebuff-community/blob/main/showcase/code-analysis/cli/git_analysis.py): `showcase/code-analysis/cli/git_analysis.py`

### Showcase Projects

- [Aquarium app](https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/App.tsx): `showcase/fishies/src/App.tsx`
- [Tank simulation](https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/FishTank.tsx): `showcase/fishies/src/components/FishTank.tsx`
- [Aquarium creatures](https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/UnderwaterDecorations.tsx): `showcase/fishies/src/components/UnderwaterDecorations.tsx`
- [Tank effects](https://github.com/codebuffai/codebuff-community/blob/main/showcase/fishies/src/components/RippleEffect.tsx): `showcase/fishies/src/components/RippleEffect.tsx`
- [Minecraft showcase](https://github.com/codebuffai/codebuff-community/tree/main/showcase/minecraft-complex): `showcase/minecraft-complex`
- [Minecraft demo](https://github.com/codebuffai/codebuff-community/blob/main/showcase/minecraft-simple/script.js): `showcase/minecraft-simple/script.js`

### Other components

- **Developer**
- **Codebuff CLI**

## Connections

- Developer → Codebuff CLI: runs (evidence: `README.md`)
- Codebuff CLI → Starter catalog: creates from (evidence: `README.md`)
- Developer → Codebuff CLI: starts in project (evidence: `README.md`)
- Starter catalog → Vite React app: offers template (evidence: `README.md`)
- Starter catalog → Next.js app: offers template (evidence: `README.md`)
- Starter catalog → Remix app: offers template (evidence: `README.md`)
- Starter catalog → Chrome extension: offers template (evidence: `README.md`)
- Starter catalog → Convex messages: offers template (evidence: `README.md`)
- Starter catalog → CLI templates: offers template (evidence: `README.md`)
- Starter catalog → Python CLI: offers template (evidence: `README.md`)
- Showcase catalog → Analysis extension: showcases project (evidence: `README.md`)
- Showcase catalog → Analysis API: showcases project (evidence: `README.md`)
- Showcase catalog → Aquarium app: showcases project (evidence: `README.md`)
- Showcase catalog → Minecraft showcase: showcases project (evidence: `README.md`)
- Showcase catalog → Minecraft demo: showcases project (evidence: `README.md`)
- Analysis API → Repository clone: clones repository (evidence: `showcase/code-analysis/app/main.py`)
- Analysis API → Git metrics: dispatches analysis (evidence: `showcase/code-analysis/app/main.py`)
- Aquarium app → Tank simulation: renders (evidence: `showcase/fishies/src/App.tsx`)
- Tank simulation → Aquarium creatures: renders (evidence: `showcase/fishies/src/components/FishTank.tsx`)
- Tank simulation → Tank effects: renders (evidence: `showcase/fishies/src/components/FishTank.tsx`)
