# tastejs/todomvc architecture

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

- Interactive diagram: https://gitdiagram.com/tastejs/todomvc
- Repository: https://github.com/tastejs/todomvc

## Overview

TodoMVC is a framework-comparison and teaching project: developers compare functionally equivalent Todo apps, and the README describes maintained and historical framework examples. The supplied tree omits those examples and the site HTML, so their implementation and runtime links cannot be mapped here. The visible runtime is a static-site server plus browser code for app-list popovers, rotating quotes, and app tabs; vendored jQuery and Bootstrap support the visible UI. The graph reflects only relationships shown in the excerpts or README.

Main entry points: [`site-assets/main.js`](https://github.com/tastejs/todomvc/blob/master/site-assets/main.js) (Site UI behavior), [`bower_components/jquery/src/jquery.js`](https://github.com/tastejs/todomvc/blob/master/bower_components/jquery/src/jquery.js) (jQuery), [`server.js`](https://github.com/tastejs/todomvc/blob/master/server.js) (Static site server), [`bower_components/bootstrap/js/popover.js`](https://github.com/tastejs/todomvc/blob/master/bower_components/bootstrap/js/popover.js) (Bootstrap popover)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Comparison site"]
  node_examples["Framework examples"]
  node_server["Static site server<br/>[server.js]"]
end

subgraph group_ui["Site interactions"]
  node_site_ui["Site UI behavior<br/>[main.js]"]
  node_app_popovers["App popovers<br/>[main.js]"]
  node_quotes["Quote carousel<br/>[main.js]"]
  node_app_tabs["App tabs<br/>[main.js]"]
end

subgraph group_vendor["Browser dependencies"]
  node_jquery["jQuery<br/>[jquery.js]"]
  node_bootstrap_popover["Bootstrap popover<br/>[popover.js]"]
end

node_developer(("Developer"))

node_developer -->|"compares apps"| node_examples
node_server -->|"serves assets"| node_site_ui
node_site_ui -->|"initializes"| node_app_popovers
node_site_ui -->|"initializes"| node_quotes
node_site_ui -->|"registers"| node_app_tabs
node_app_popovers -.->|"uses"| node_jquery
node_app_popovers -.->|"invokes"| node_bootstrap_popover
node_quotes -.->|"uses"| node_jquery
node_app_tabs -.->|"uses"| node_jquery

click node_server "https://github.com/tastejs/todomvc/blob/master/server.js"
click node_site_ui "https://github.com/tastejs/todomvc/blob/master/site-assets/main.js"
click node_app_popovers "https://github.com/tastejs/todomvc/blob/master/site-assets/main.js"
click node_quotes "https://github.com/tastejs/todomvc/blob/master/site-assets/main.js"
click node_app_tabs "https://github.com/tastejs/todomvc/blob/master/site-assets/main.js"
click node_jquery "https://github.com/tastejs/todomvc/blob/master/bower_components/jquery/src/jquery.js"
click node_bootstrap_popover "https://github.com/tastejs/todomvc/blob/master/bower_components/bootstrap/js/popover.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_examples,node_server toneBlue
class node_site_ui,node_app_popovers,node_quotes,node_app_tabs toneAmber
class node_jquery,node_bootstrap_popover toneMint
class node_developer toneIndigo
```

## Components

### Comparison site

- **Framework examples**
- [Static site server](https://github.com/tastejs/todomvc/blob/master/server.js): `server.js`

### Site interactions

- [Site UI behavior](https://github.com/tastejs/todomvc/blob/master/site-assets/main.js): `site-assets/main.js`
- [App popovers](https://github.com/tastejs/todomvc/blob/master/site-assets/main.js): `site-assets/main.js`
- [Quote carousel](https://github.com/tastejs/todomvc/blob/master/site-assets/main.js): `site-assets/main.js`
- [App tabs](https://github.com/tastejs/todomvc/blob/master/site-assets/main.js): `site-assets/main.js`

### Browser dependencies

- [jQuery](https://github.com/tastejs/todomvc/blob/master/bower_components/jquery/src/jquery.js): `bower_components/jquery/src/jquery.js`
- [Bootstrap popover](https://github.com/tastejs/todomvc/blob/master/bower_components/bootstrap/js/popover.js): `bower_components/bootstrap/js/popover.js`

### Other components

- **Developer**

## Connections

- Developer → Framework examples: compares apps
- Static site server → Site UI behavior: serves assets (evidence: `server.js`)
- Site UI behavior → App popovers: initializes (evidence: `site-assets/main.js`)
- Site UI behavior → Quote carousel: initializes (evidence: `site-assets/main.js`)
- Site UI behavior → App tabs: registers (evidence: `site-assets/main.js`)
- App popovers → jQuery: uses
- App popovers → Bootstrap popover: invokes
- Quote carousel → jQuery: uses
- App tabs → jQuery: uses
