# arsen-karapetyan/math-library architecture

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

- Interactive diagram: https://gitdiagram.com/arsen-karapetyan/math-library
- Repository: https://github.com/arsen-karapetyan/math-library

## Overview

This is a static Armenian mathematics document catalogue: visitors browse lecture and seminar notes, search or filter the catalogue, expand summaries, and open a selected PDF. The main runtime is `script.js`, which normalizes metadata from `data/documents.js`, builds sorted document records, renders cards, and responds to search and navigation controls. The tree also shows local PDF assets, but no README or excerpts for the HTML/CSS; their detailed wiring and presentation are therefore not inferred.

Main entry points: [`script.js`](https://github.com/arsen-karapetyan/math-library/blob/main/script.js) (Catalogue and search), [`data/documents.js`](https://github.com/arsen-karapetyan/math-library/blob/main/data/documents.js) (Document metadata), [`pdfs`](https://github.com/arsen-karapetyan/math-library/tree/main/pdfs) (Lecture PDFs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalogue runtime"]
  node_catalog_runtime["Catalogue and search<br/>[script.js]"]
end

subgraph group_content["Document content"]
  node_metadata["Document metadata<br/>[documents.js]"]
end

subgraph group_assets["Local assets"]
  node_pdfs["Lecture PDFs"]
end

node_visitor(("Visitor"))

node_visitor -->|"searches and filters"| node_catalog_runtime
node_catalog_runtime -->|"reads records"| node_metadata
node_catalog_runtime -->|"links to PDFs"| node_pdfs

click node_metadata "https://github.com/arsen-karapetyan/math-library/blob/main/data/documents.js"
click node_catalog_runtime "https://github.com/arsen-karapetyan/math-library/blob/main/script.js"
click node_pdfs "https://github.com/arsen-karapetyan/math-library/tree/main/pdfs"

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_catalog_runtime toneBlue
class node_metadata toneAmber
class node_pdfs toneMint
class node_visitor toneIndigo
```

## Components

### Catalogue runtime

- [Catalogue and search](https://github.com/arsen-karapetyan/math-library/blob/main/script.js): `script.js`

### Document content

- [Document metadata](https://github.com/arsen-karapetyan/math-library/blob/main/data/documents.js): `data/documents.js`

### Local assets

- [Lecture PDFs](https://github.com/arsen-karapetyan/math-library/tree/main/pdfs): `pdfs`

### Other components

- **Visitor**

## Connections

- Visitor → Catalogue and search: searches and filters (evidence: `script.js`)
- Catalogue and search → Document metadata: reads records (evidence: `script.js`)
- Catalogue and search → Lecture PDFs: links to PDFs (evidence: `script.js`)
