# sandeepkomal/readme-glassfolio architecture

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

- Interactive diagram: https://gitdiagram.com/sandeepkomal/readme-glassfolio
- Repository: https://github.com/sandeepkomal/readme-glassfolio

## Overview

readme-diff generates a themed GitHub profile README and local SVG assets from a username or profile data. The main workflow fetches GitHub profile/activity data, builds a shared model, renders cards and assembles README content, then offers a GitHub-style preview and either ZIP download or direct publishing. The same engine also powers the CLI and an optional daily-update workflow; the README additionally documents a GitHub Action. The graph reflects documented and indexed relationships; browser wiring and some action internals were not sampled, so uncertain links are omitted.

Main entry points: [`js/app.js`](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/app.js) (Web application), [`js/cards.js`](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/cards.js) (SVG cards), [`cli.js`](https://github.com/sandeepkomal/readme-glassfolio/blob/main/cli.js) (Command-line tool), [`js/github.js`](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/github.js) (Profile fetch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry points"]
  node_webapp["Web application<br/>[app.js]"]
  node_cli["Command-line tool<br/>[cli.js]"]
  node_action["GitHub Action<br/>[action.yml]"]
end

subgraph group_generation["Profile generation"]
  node_model["Profile model and README<br/>[core.js]"]
  node_cards["SVG cards<br/>[cards.js]"]
  node_universe["Contribution universe<br/>[universe.js]"]
  node_showpieces["Animated showpieces<br/>[showpieces.js]"]
  node_worlds["Visual themes<br/>[worlds.js]"]
end

subgraph group_delivery["Preview and delivery"]
  node_preview["GitHub-style preview<br/>[preview.js]"]
  node_zip["ZIP download<br/>[zip.js]"]
  node_publish["Profile publisher<br/>[publish.js]"]
  node_automation["Daily update generator<br/>[automation.js]"]
end

subgraph group_integrations["GitHub integration"]
  node_fetch["Profile fetch<br/>[github.js]"]
  node_github{{"GitHub API"}}
  node_profile_repo[("Profile repository")]
end

node_person(("Profile owner"))

node_person -->|"configures"| node_webapp
node_person -->|"runs"| node_cli
node_webapp -->|"requests profile"| node_fetch
node_fetch -->|"fetches data"| node_github
node_fetch -->|"builds activity"| node_model
node_cli -->|"parses input"| node_model
node_cli -->|"fetches profile"| node_fetch
node_cli -->|"builds files"| node_cards
node_webapp -->|"uses engine"| node_model
node_webapp -->|"generates cards"| node_cards
node_cards -->|"uses profile model"| node_model
node_cards -->|"renders universe"| node_universe
node_cards -->|"renders showpieces"| node_showpieces
node_cards -->|"applies worlds"| node_worlds
node_webapp -->|"previews output"| node_preview
node_webapp -->|"downloads files"| node_zip
node_webapp -->|"publishes files"| node_publish
node_publish -->|"commits files"| node_github
node_publish -->|"writes commit"| node_profile_repo
node_webapp -->|"generates updates"| node_automation
node_automation -->|"writes workflow"| node_profile_repo
node_person -->|"downloads ZIP"| node_profile_repo

click node_webapp "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/app.js"
click node_cli "https://github.com/sandeepkomal/readme-glassfolio/blob/main/cli.js"
click node_action "https://github.com/sandeepkomal/readme-glassfolio/blob/main/action.yml"
click node_fetch "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/github.js"
click node_model "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/core.js"
click node_cards "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/cards.js"
click node_universe "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/universe.js"
click node_showpieces "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/showpieces.js"
click node_worlds "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/worlds.js"
click node_preview "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/preview.js"
click node_zip "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/zip.js"
click node_publish "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/publish.js"
click node_automation "https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/automation.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_webapp,node_cli,node_action toneBlue
class node_model,node_cards,node_universe,node_showpieces,node_worlds toneAmber
class node_preview,node_zip,node_publish,node_automation toneMint
class node_fetch,node_github,node_profile_repo toneRose
class node_person toneIndigo
```

## Components

### User entry points

- [Web application](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/app.js): `js/app.js`
- [Command-line tool](https://github.com/sandeepkomal/readme-glassfolio/blob/main/cli.js): `cli.js`
- [GitHub Action](https://github.com/sandeepkomal/readme-glassfolio/blob/main/action.yml): `action.yml`

### Profile generation

- [Profile model and README](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/core.js): `js/core.js`
- [SVG cards](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/cards.js): `js/cards.js`
- [Contribution universe](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/universe.js): `js/universe.js`
- [Animated showpieces](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/showpieces.js): `js/showpieces.js`
- [Visual themes](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/worlds.js): `js/worlds.js`

### Preview and delivery

- [GitHub-style preview](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/preview.js): `js/preview.js`
- [ZIP download](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/zip.js): `js/zip.js`
- [Profile publisher](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/publish.js): `js/publish.js`
- [Daily update generator](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/automation.js): `js/automation.js`

### GitHub integration

- [Profile fetch](https://github.com/sandeepkomal/readme-glassfolio/blob/main/js/github.js): `js/github.js`
- **GitHub API**
- **Profile repository**

### Other components

- **Profile owner**

## Connections

- Profile owner → Web application: configures (evidence: `README.md`)
- Profile owner → Command-line tool: runs (evidence: `README.md`)
- Web application → Profile fetch: requests profile (evidence: `README.md`)
- Profile fetch → GitHub API: fetches data (evidence: `js/github.js`)
- Profile fetch → Profile model and README: builds activity (evidence: `js/github.js`)
- Command-line tool → Profile model and README: parses input (evidence: `cli.js`)
- Command-line tool → Profile fetch: fetches profile (evidence: `cli.js`)
- Command-line tool → SVG cards: builds files (evidence: `cli.js`)
- Web application → Profile model and README: uses engine (evidence: `README.md`)
- Web application → SVG cards: generates cards (evidence: `README.md`)
- SVG cards → Profile model and README: uses profile model (evidence: `js/cards.js`)
- SVG cards → Contribution universe: renders universe (evidence: `js/cards.js`)
- SVG cards → Animated showpieces: renders showpieces (evidence: `js/cards.js`)
- SVG cards → Visual themes: applies worlds (evidence: `js/cards.js`)
- Web application → GitHub-style preview: previews output (evidence: `README.md`)
- Web application → ZIP download: downloads files (evidence: `README.md`)
- Web application → Profile publisher: publishes files (evidence: `README.md`)
- Profile publisher → GitHub API: commits files (evidence: `js/publish.js`)
- Profile publisher → Profile repository: writes commit (evidence: `js/publish.js`)
- Web application → Daily update generator: generates updates (evidence: `README.md`)
- Daily update generator → Profile repository: writes workflow (evidence: `js/automation.js`)
- Profile owner → Profile repository: downloads ZIP (evidence: `README.md`)
