# getify/you-dont-know-js architecture

> Architecture diagram of the GitHub repository getify/you-dont-know-js, 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/getify/you-dont-know-js
- Repository: https://github.com/getify/you-dont-know-js

## Overview

This repository is the source text for the second-edition You Don't Know JS Yet book series, not a software runtime. The reader’s documented path is Get Started, then Scope & Closures, followed by the Unbooks collection, which includes Objects & Classes and Types & Grammar. Chapter and table-of-contents files provide the reading material within each volume; the README does not describe their internal navigation, so no chapter-level flow is inferred.

Main entry points: [`README.md`](https://github.com/getify/you-dont-know-js/blob/2nd-ed/README.md) (Book series), [`get-started/README.md`](https://github.com/getify/you-dont-know-js/blob/2nd-ed/get-started/README.md) (Get Started), [`scope-closures/README.md`](https://github.com/getify/you-dont-know-js/blob/2nd-ed/scope-closures/README.md) (Scope & Closures), [`objects-classes/README.md`](https://github.com/getify/you-dont-know-js/blob/2nd-ed/objects-classes/README.md) (Objects & Classes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_series["Reading sequence"]
  node_series["Book series<br/>[README.md]"]
  node_get_started["Get Started<br/>[README.md]"]
  node_scope_closures["Scope &amp; Closures<br/>[README.md]"]
end

subgraph group_unbooks["Unbooks collection"]
  node_unbooks_ebook["Unbooks ebook<br/>[README.md]"]
  node_objects_classes["Objects &amp; Classes<br/>[README.md]"]
  node_types_grammar["Types &amp; Grammar<br/>[README.md]"]
end

subgraph group_bookcontents["Book contents"]
  node_get_started_contents["Get Started contents<br/>[toc.md]"]
  node_scope_contents["Scope contents<br/>[toc.md]"]
  node_objects_contents["Objects contents<br/>[toc.md]"]
  node_types_contents["Types contents<br/>[toc.md]"]
end

node_reader(("Reader"))

node_reader -->|"reads"| node_series
node_series -->|"starts with"| node_get_started
node_series -->|"continues with"| node_scope_closures
node_series -->|"continues with"| node_unbooks_ebook
node_unbooks_ebook -->|"includes"| node_objects_classes
node_unbooks_ebook -->|"includes"| node_types_grammar

click node_series "https://github.com/getify/you-dont-know-js/blob/2nd-ed/README.md"
click node_get_started "https://github.com/getify/you-dont-know-js/blob/2nd-ed/get-started/README.md"
click node_scope_closures "https://github.com/getify/you-dont-know-js/blob/2nd-ed/scope-closures/README.md"
click node_unbooks_ebook "https://github.com/getify/you-dont-know-js/blob/2nd-ed/README.md"
click node_objects_classes "https://github.com/getify/you-dont-know-js/blob/2nd-ed/objects-classes/README.md"
click node_types_grammar "https://github.com/getify/you-dont-know-js/blob/2nd-ed/types-grammar/README.md"
click node_get_started_contents "https://github.com/getify/you-dont-know-js/blob/2nd-ed/get-started/toc.md"
click node_scope_contents "https://github.com/getify/you-dont-know-js/blob/2nd-ed/scope-closures/toc.md"
click node_objects_contents "https://github.com/getify/you-dont-know-js/blob/2nd-ed/objects-classes/toc.md"
click node_types_contents "https://github.com/getify/you-dont-know-js/blob/2nd-ed/types-grammar/toc.md"

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_series,node_get_started,node_scope_closures toneBlue
class node_unbooks_ebook,node_objects_classes,node_types_grammar toneAmber
class node_get_started_contents,node_scope_contents,node_objects_contents,node_types_contents toneMint
class node_reader toneIndigo
```

## Components

### Reading sequence

- [Book series](https://github.com/getify/you-dont-know-js/blob/2nd-ed/README.md): `README.md`
- [Get Started](https://github.com/getify/you-dont-know-js/blob/2nd-ed/get-started/README.md): `get-started/README.md`
- [Scope & Closures](https://github.com/getify/you-dont-know-js/blob/2nd-ed/scope-closures/README.md): `scope-closures/README.md`

### Unbooks collection

- [Unbooks ebook](https://github.com/getify/you-dont-know-js/blob/2nd-ed/README.md): `README.md`
- [Objects & Classes](https://github.com/getify/you-dont-know-js/blob/2nd-ed/objects-classes/README.md): `objects-classes/README.md`
- [Types & Grammar](https://github.com/getify/you-dont-know-js/blob/2nd-ed/types-grammar/README.md): `types-grammar/README.md`

### Book contents

- [Get Started contents](https://github.com/getify/you-dont-know-js/blob/2nd-ed/get-started/toc.md): `get-started/toc.md`
- [Scope contents](https://github.com/getify/you-dont-know-js/blob/2nd-ed/scope-closures/toc.md): `scope-closures/toc.md`
- [Objects contents](https://github.com/getify/you-dont-know-js/blob/2nd-ed/objects-classes/toc.md): `objects-classes/toc.md`
- [Types contents](https://github.com/getify/you-dont-know-js/blob/2nd-ed/types-grammar/toc.md): `types-grammar/toc.md`

### Other components

- **Reader**

## Connections

- Reader → Book series: reads (evidence: `README.md`)
- Book series → Get Started: starts with (evidence: `README.md`)
- Book series → Scope & Closures: continues with (evidence: `README.md`)
- Book series → Unbooks ebook: continues with (evidence: `README.md`)
- Unbooks ebook → Objects & Classes: includes (evidence: `README.md`)
- Unbooks ebook → Types & Grammar: includes (evidence: `README.md`)
