# yigitardakidiman/gitfetch-readme-generator architecture

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

- Interactive diagram: https://gitdiagram.com/yigitardakidiman/gitfetch-readme-generator
- Repository: https://github.com/yigitardakidiman/gitfetch-readme-generator

## Overview

GitFetch turns a GitHub profile (or supplied image) into a customizable terminal-style profile card, rendered as a downloadable/embeddable SVG. The main workflow is Studio profile import, avatar-to-ASCII conversion, field and theme editing, then live preview and export; a separate API serves generated SVGs from request parameters. The graph preserves the documented preset, badge, animation, and export capabilities. Edges reflect shown calls or README statements; unverified UI wiring is omitted.

Main entry points: [`app/studio/page.jsx`](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/studio/page.jsx) (Studio wizard), [`app/api/svg/route.js`](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/api/svg/route.js) (Live SVG endpoint), [`components/PreviewPanel.jsx`](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/PreviewPanel.jsx) (Live preview and export), [`lib/svg-exporter.js`](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/svg-exporter.js) (SVG renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio editor"]
  node_landing["Landing page<br/>[page.jsx]"]
  node_studio_page["Studio wizard<br/>[page.jsx]"]
  node_ascii_controls["ASCII controls<br/>[AsciiControls.jsx]"]
  node_field_editor["Field editor<br/>[FieldEditor.jsx]"]
  node_theme_picker["Custom theme picker"]
  node_badge_picker["Technology badges<br/>[BadgePicker.jsx]"]
  node_header["Studio header<br/>[Header.jsx]"]
  node_layout["App layout and scrolling<br/>[layout.jsx]"]
end

subgraph group_render["Card rendering"]
  node_preview["Live preview and export<br/>[PreviewPanel.jsx]"]
  node_themes["Themes and templates<br/>[presets.js]"]
  node_badge_data["Badge definitions<br/>[tech-badges.js]"]
  node_neofetch["Terminal text builder"]
  node_svg["SVG renderer<br/>[svg-exporter.js]"]
end

subgraph group_profile["Profile and ASCII"]
  node_ascii_engine["ASCII conversion<br/>[ascii-engine.js]"]
  node_ascii_presets["ASCII art presets<br/>[ascii-presets.js]"]
  node_github["GitHub profile fetch<br/>[github-api.js]"]
end

subgraph group_delivery["SVG delivery"]
  node_svg_route["Live SVG endpoint<br/>[route.js]"]
end

node_visitor(("GitFetch user"))
node_github_api["GitHub REST API"]
node_readme(("GitHub README embed"))

node_visitor -->|"opens"| node_landing
node_visitor -->|"opens"| node_studio_page
node_landing -->|"previews theme"| node_svg
node_landing -->|"gets default art"| node_ascii_engine
node_studio_page -->|"renders"| node_header
node_studio_page -->|"renders"| node_ascii_controls
node_studio_page -->|"renders"| node_field_editor
node_studio_page -->|"renders"| node_theme_picker
node_studio_page -->|"renders"| node_preview
node_studio_page -->|"fetches profile"| node_github
node_studio_page -->|"converts image"| node_ascii_engine
node_ascii_controls -->|"gets default art"| node_ascii_engine
node_ascii_controls -->|"offers presets"| node_ascii_presets
node_badge_picker -->|"reads definitions"| node_badge_data
node_github -->|"requests profile data"| node_github_api
node_preview -->|"builds stats"| node_neofetch
node_preview -->|"renders card"| node_svg
node_preview -->|"reads themes"| node_themes
node_svg -->|"uses colors"| node_themes
node_svg_route -->|"fetches profile"| node_github
node_svg_route -->|"converts avatar"| node_ascii_engine
node_svg_route -->|"selects preset art"| node_ascii_presets
node_svg_route -->|"builds stats"| node_neofetch
node_svg_route -->|"renders response"| node_svg
node_readme -->|"embeds live card"| node_svg_route
node_visitor -->|"uses app shell"| node_layout

click node_landing "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/page.jsx"
click node_studio_page "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/studio/page.jsx"
click node_ascii_controls "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/AsciiControls.jsx"
click node_field_editor "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/FieldEditor.jsx"
click node_theme_picker "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/CustomThemePicker.jsx"
click node_badge_picker "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/BadgePicker.jsx"
click node_header "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/Header.jsx"
click node_preview "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/PreviewPanel.jsx"
click node_ascii_engine "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/ascii-engine.js"
click node_ascii_presets "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/ascii-presets.js"
click node_github "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/github-api.js"
click node_themes "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/presets.js"
click node_badge_data "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/tech-badges.js"
click node_neofetch "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/neofetch-builder.js"
click node_svg "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/svg-exporter.js"
click node_svg_route "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/api/svg/route.js"
click node_layout "https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/layout.jsx"

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_landing,node_studio_page,node_ascii_controls,node_field_editor,node_theme_picker,node_badge_picker,node_header,node_layout,node_visitor toneBlue
class node_preview,node_themes,node_badge_data,node_neofetch,node_svg toneAmber
class node_ascii_engine,node_ascii_presets,node_github,node_github_api toneMint
class node_svg_route toneRose
class node_readme toneIndigo
```

## Components

### Studio editor

- [Landing page](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/page.jsx): `app/page.jsx`
- [Studio wizard](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/studio/page.jsx): `app/studio/page.jsx`
- [ASCII controls](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/AsciiControls.jsx): `components/AsciiControls.jsx`
- [Field editor](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/FieldEditor.jsx): `components/FieldEditor.jsx`
- [Custom theme picker](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/CustomThemePicker.jsx): `components/CustomThemePicker.jsx`
- [Technology badges](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/BadgePicker.jsx): `components/BadgePicker.jsx`
- [Studio header](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/Header.jsx): `components/Header.jsx`
- [App layout and scrolling](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/layout.jsx): `app/layout.jsx`

### Card rendering

- [Live preview and export](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/components/PreviewPanel.jsx): `components/PreviewPanel.jsx`
- [Themes and templates](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/presets.js): `lib/presets.js`
- [Badge definitions](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/tech-badges.js): `lib/tech-badges.js`
- [Terminal text builder](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/neofetch-builder.js): `lib/neofetch-builder.js`
- [SVG renderer](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/svg-exporter.js): `lib/svg-exporter.js`

### Profile and ASCII

- [ASCII conversion](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/ascii-engine.js): `lib/ascii-engine.js`
- [ASCII art presets](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/ascii-presets.js): `lib/ascii-presets.js`
- [GitHub profile fetch](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/lib/github-api.js): `lib/github-api.js`

### SVG delivery

- [Live SVG endpoint](https://github.com/yigitardakidiman/gitfetch-readme-generator/blob/main/app/api/svg/route.js): `app/api/svg/route.js`

### Other components

- **GitFetch user**
- **GitHub REST API**
- **GitHub README embed**

## Connections

- GitFetch user → Landing page: opens (evidence: `README.md`)
- GitFetch user → Studio wizard: opens (evidence: `README.md`)
- Landing page → SVG renderer: previews theme (evidence: `app/page.jsx`)
- Landing page → ASCII conversion: gets default art (evidence: `app/page.jsx`)
- Studio wizard → Studio header: renders (evidence: `app/studio/page.jsx`)
- Studio wizard → ASCII controls: renders (evidence: `app/studio/page.jsx`)
- Studio wizard → Field editor: renders (evidence: `app/studio/page.jsx`)
- Studio wizard → Custom theme picker: renders (evidence: `app/studio/page.jsx`)
- Studio wizard → Live preview and export: renders (evidence: `app/studio/page.jsx`)
- Studio wizard → GitHub profile fetch: fetches profile (evidence: `app/studio/page.jsx`)
- Studio wizard → ASCII conversion: converts image (evidence: `app/studio/page.jsx`)
- ASCII controls → ASCII conversion: gets default art (evidence: `components/AsciiControls.jsx`)
- ASCII controls → ASCII art presets: offers presets (evidence: `components/AsciiControls.jsx`)
- Technology badges → Badge definitions: reads definitions (evidence: `components/BadgePicker.jsx`)
- GitHub profile fetch → GitHub REST API: requests profile data (evidence: `lib/github-api.js`)
- Live preview and export → Terminal text builder: builds stats (evidence: `components/PreviewPanel.jsx`)
- Live preview and export → SVG renderer: renders card (evidence: `components/PreviewPanel.jsx`)
- Live preview and export → Themes and templates: reads themes (evidence: `components/PreviewPanel.jsx`)
- SVG renderer → Themes and templates: uses colors (evidence: `lib/svg-exporter.js`)
- Live SVG endpoint → GitHub profile fetch: fetches profile (evidence: `app/api/svg/route.js`)
- Live SVG endpoint → ASCII conversion: converts avatar (evidence: `app/api/svg/route.js`)
- Live SVG endpoint → ASCII art presets: selects preset art (evidence: `app/api/svg/route.js`)
- Live SVG endpoint → Terminal text builder: builds stats (evidence: `app/api/svg/route.js`)
- Live SVG endpoint → SVG renderer: renders response (evidence: `app/api/svg/route.js`)
- GitHub README embed → Live SVG endpoint: embeds live card (evidence: `README.md`)
- GitFetch user → App layout and scrolling: uses app shell (evidence: `app/layout.jsx`)
