# adlinef06/dictionary architecture

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

- Interactive diagram: https://gitdiagram.com/adlinef06/dictionary
- Repository: https://github.com/adlinef06/dictionary

## Overview

This repository is a collection of 20 small applications, with a React hub that lets users select and use the React versions. The main workflow is browser entry → app selector → chosen app → result, such as a calculation, search result, or edited list. Four apps persist data through a shared local-storage hook; dictionary, recipe, and currency apps also call external services. The tree includes separate Java and Python counterparts, but the available excerpts do not show how they are orchestrated, so the graph focuses on the React hub and its documented app modules.

Main entry points: [`react-20-apps/src/App.jsx`](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/App.jsx) (App selector), [`react-20-apps/src/useLS.js`](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/useLS.js) (Local storage hook), [`react-20-apps/src/apps/Dictionary.jsx`](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Dictionary.jsx) (Dictionary), [`react-20-apps/src/main.jsx`](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hub["React hub"]
  node_entry["React entry<br/>[main.jsx]"]
  node_selector["App selector<br/>[App.jsx]"]
  node_theme["Theme switcher<br/>[Theme.jsx]"]
  node_localhook["Local storage hook<br/>[useLS.js]"]
end

subgraph group_personal["Personal organizers"]
  node_todo["To-do list<br/>[Todo.jsx]"]
  node_notes["Notes<br/>[Notes.jsx]"]
  node_expense["Expense tracker<br/>[Expense.jsx]"]
  node_contacts["Contact book<br/>[Contacts.jsx]"]
end

subgraph group_tools["Calculators and tools"]
  node_quiz["Quiz<br/>[Quiz.jsx]"]
  node_calculator["Calculator<br/>[Calculator.jsx]"]
  node_temperature["Temperature conversion<br/>[Temperature.jsx]"]
  node_bmi["BMI calculator<br/>[BMI.jsx]"]
  node_bill["Shopping bill<br/>[Bill.jsx]"]
  node_discount["Discount calculator<br/>[Discount.jsx]"]
  node_age["Age calculator<br/>[Age.jsx]"]
  node_counter["Counter<br/>[Counter.jsx]"]
  node_form["Form validation<br/>[FormValidation.jsx]"]
  node_calendar["Calendar picker<br/>[Calendar.jsx]"]
end

subgraph group_lookup["Search and lookup"]
  node_news["News app<br/>[News.jsx]"]
  node_dictionary["Dictionary<br/>[Dictionary.jsx]"]
  node_currency["Currency converter<br/>[Currency.jsx]"]
  node_recipe["Recipe finder<br/>[Recipe.jsx]"]
  node_books["Book finder<br/>[Books.jsx]"]
end

node_user(("User"))
node_localstorage[("Browser local storage")]
node_dictionaryapi["Dictionary API"]
node_datamuse["Datamuse API"]
node_mealdb["TheMealDB API"]
node_frankfurter["Frankfurter API"]

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_selector
node_selector -->|"selects"| node_todo
node_selector -->|"selects"| node_calculator
node_selector -->|"selects"| node_quiz
node_selector -->|"selects"| node_notes
node_selector -->|"selects"| node_temperature
node_selector -->|"selects"| node_expense
node_selector -->|"selects"| node_contacts
node_selector -->|"selects"| node_bmi
node_selector -->|"selects"| node_news
node_selector -->|"selects"| node_dictionary
node_selector -->|"selects"| node_currency
node_selector -->|"selects"| node_recipe
node_selector -->|"selects"| node_books
node_selector -->|"selects"| node_form
node_selector -->|"selects"| node_theme
node_selector -->|"selects"| node_counter
node_selector -->|"selects"| node_age
node_selector -->|"selects"| node_calendar
node_selector -->|"selects"| node_discount
node_selector -->|"selects"| node_bill
node_todo -->|"uses"| node_localhook
node_notes -->|"uses"| node_localhook
node_expense -->|"uses"| node_localhook
node_contacts -->|"uses"| node_localhook
node_localhook -->|"reads and writes"| node_localstorage
node_dictionary -->|"queries"| node_dictionaryapi
node_dictionary -->|"fallback query"| node_datamuse
node_recipe -->|"searches"| node_mealdb
node_currency -->|"fetches rates"| node_frankfurter

click node_entry "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/main.jsx"
click node_selector "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/App.jsx"
click node_todo "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Todo.jsx"
click node_notes "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Notes.jsx"
click node_expense "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Expense.jsx"
click node_contacts "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Contacts.jsx"
click node_quiz "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Quiz.jsx"
click node_calculator "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Calculator.jsx"
click node_temperature "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Temperature.jsx"
click node_bmi "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/BMI.jsx"
click node_bill "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Bill.jsx"
click node_discount "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Discount.jsx"
click node_age "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Age.jsx"
click node_counter "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Counter.jsx"
click node_form "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/FormValidation.jsx"
click node_calendar "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Calendar.jsx"
click node_news "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/News.jsx"
click node_dictionary "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Dictionary.jsx"
click node_currency "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Currency.jsx"
click node_recipe "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Recipe.jsx"
click node_books "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Books.jsx"
click node_theme "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Theme.jsx"
click node_localhook "https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/useLS.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_entry,node_selector,node_theme,node_localhook,node_user toneBlue
class node_todo,node_notes,node_expense,node_contacts,node_localstorage toneAmber
class node_quiz,node_calculator,node_temperature,node_bmi,node_bill,node_discount,node_age,node_counter,node_form,node_calendar,node_dictionaryapi,node_datamuse,node_mealdb,node_frankfurter toneMint
class node_news,node_dictionary,node_currency,node_recipe,node_books toneRose
```

## Components

### React hub

- [React entry](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/main.jsx): `react-20-apps/src/main.jsx`
- [App selector](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/App.jsx): `react-20-apps/src/App.jsx`
- [Theme switcher](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Theme.jsx): `react-20-apps/src/apps/Theme.jsx`
- [Local storage hook](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/useLS.js): `react-20-apps/src/useLS.js`

### Personal organizers

- [To-do list](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Todo.jsx): `react-20-apps/src/apps/Todo.jsx`
- [Notes](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Notes.jsx): `react-20-apps/src/apps/Notes.jsx`
- [Expense tracker](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Expense.jsx): `react-20-apps/src/apps/Expense.jsx`
- [Contact book](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Contacts.jsx): `react-20-apps/src/apps/Contacts.jsx`

### Calculators and tools

- [Quiz](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Quiz.jsx): `react-20-apps/src/apps/Quiz.jsx`
- [Calculator](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Calculator.jsx): `react-20-apps/src/apps/Calculator.jsx`
- [Temperature conversion](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Temperature.jsx): `react-20-apps/src/apps/Temperature.jsx`
- [BMI calculator](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/BMI.jsx): `react-20-apps/src/apps/BMI.jsx`
- [Shopping bill](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Bill.jsx): `react-20-apps/src/apps/Bill.jsx`
- [Discount calculator](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Discount.jsx): `react-20-apps/src/apps/Discount.jsx`
- [Age calculator](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Age.jsx): `react-20-apps/src/apps/Age.jsx`
- [Counter](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Counter.jsx): `react-20-apps/src/apps/Counter.jsx`
- [Form validation](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/FormValidation.jsx): `react-20-apps/src/apps/FormValidation.jsx`
- [Calendar picker](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Calendar.jsx): `react-20-apps/src/apps/Calendar.jsx`

### Search and lookup

- [News app](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/News.jsx): `react-20-apps/src/apps/News.jsx`
- [Dictionary](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Dictionary.jsx): `react-20-apps/src/apps/Dictionary.jsx`
- [Currency converter](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Currency.jsx): `react-20-apps/src/apps/Currency.jsx`
- [Recipe finder](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Recipe.jsx): `react-20-apps/src/apps/Recipe.jsx`
- [Book finder](https://github.com/adlinef06/dictionary/blob/main/react-20-apps/src/apps/Books.jsx): `react-20-apps/src/apps/Books.jsx`

### Other components

- **User**
- **Browser local storage**
- **Dictionary API**
- **Datamuse API**
- **TheMealDB API**
- **Frankfurter API**

## Connections

- User → React entry: opens (evidence: `react-20-apps/src/main.jsx`)
- React entry → App selector: renders (evidence: `react-20-apps/src/main.jsx`)
- App selector → To-do list: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Calculator: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Quiz: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Notes: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Temperature conversion: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Expense tracker: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Contact book: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → BMI calculator: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → News app: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Dictionary: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Currency converter: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Recipe finder: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Book finder: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Form validation: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Theme switcher: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Counter: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Age calculator: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Calendar picker: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Discount calculator: selects (evidence: `react-20-apps/src/App.jsx`)
- App selector → Shopping bill: selects (evidence: `react-20-apps/src/App.jsx`)
- To-do list → Local storage hook: uses (evidence: `react-20-apps/src/apps/Todo.jsx`)
- Notes → Local storage hook: uses (evidence: `react-20-apps/src/apps/Notes.jsx`)
- Expense tracker → Local storage hook: uses (evidence: `react-20-apps/src/apps/Expense.jsx`)
- Contact book → Local storage hook: uses (evidence: `react-20-apps/src/apps/Contacts.jsx`)
- Local storage hook → Browser local storage: reads and writes (evidence: `react-20-apps/src/useLS.js`)
- Dictionary → Dictionary API: queries (evidence: `react-20-apps/src/apps/Dictionary.jsx`)
- Dictionary → Datamuse API: fallback query (evidence: `react-20-apps/src/apps/Dictionary.jsx`)
- Recipe finder → TheMealDB API: searches (evidence: `react-20-apps/src/apps/Recipe.jsx`)
- Currency converter → Frankfurter API: fetches rates (evidence: `react-20-apps/src/apps/Currency.jsx`)
