# merazul1/converter-app architecture

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

- Interactive diagram: https://gitdiagram.com/merazul1/converter-app
- Repository: https://github.com/merazul1/converter-app

## Overview

CurrenFlow is a browser-based currency conversion and financial-information site. Users choose currencies and an amount, then get a mid-market conversion; the app loads rates through its currency service, which uses browser caching, a live rate endpoint, and bundled fallback rates. The site also offers pair analysis, conversion references, currency browsing, SEO and FAQ content, educational guides, an embeddable widget, monetization placements, and legal/contact pages. Edges reflect shown calls, indexed references, or README capabilities; unsampled wiring is omitted where uncertain.

Main entry points: [`src/App.tsx`](https://github.com/merazul1/converter-app/blob/master/src/App.tsx) (App and routing), [`src/services/currencyService.ts`](https://github.com/merazul1/converter-app/blob/master/src/services/currencyService.ts) (Rate service), [`src/components/ConverterCard.tsx`](https://github.com/merazul1/converter-app/blob/master/src/components/ConverterCard.tsx) (Converter controls), [`src/components/CurrencyMatrix.tsx`](https://github.com/merazul1/converter-app/blob/master/src/components/CurrencyMatrix.tsx) (Currency matrix)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app_shell["App and routing<br/>[App.tsx]"]
  node_converter["Converter controls<br/>[ConverterCard.tsx]"]
  node_selector["Currency selector"]
  node_embed["Embed widget<br/>[EmbedModal.tsx]"]
  node_conversion_table["Conversion table"]
  node_currency_matrix["Currency matrix<br/>[CurrencyMatrix.tsx]"]
end

subgraph group_rates["Rates and conversion"]
  node_rate_service["Rate service<br/>[currencyService.ts]"]
  node_rate_api{{"Exchange-rate API"}}
  node_browser_cache[("Browser local storage")]
  node_fallback["Fallback rates<br/>[fallbackRates.ts]"]
  node_currency_list["Currency catalogue<br/>[currencies.ts]"]
end

subgraph group_content["Financial content"]
  node_pair_insights["Pair insights"]
  node_insight_data["Insight data"]
  node_seo_content["SEO content<br/>[SeoContent.tsx]"]
  node_faq["FAQ content<br/>[FaqSection.tsx]"]
  node_faq_data["FAQ data<br/>[faqData.ts]"]
  node_guides_hub["Guides hub<br/>[GuidesHubPage.tsx]"]
  node_guide_article["Guide articles"]
  node_guides_data["Guide catalogue<br/>[guidesData.ts]"]
end

subgraph group_site["Site and support"]
  node_affiliate["Affiliate banner"]
  node_ads["Ad placements<br/>[AdUnit.tsx]"]
  node_about["About page<br/>[AboutPage.tsx]"]
  node_legal["Legal pages and modal<br/>[LegalPage.tsx]"]
  node_contact_form["Contact form<br/>[ContactForm.tsx]"]
  node_footer["Footer navigation<br/>[Footer.tsx]"]
end

node_visitor(("Visitor"))
node_contact_service{{"Contact submission service"}}

node_visitor -->|"uses"| node_app_shell
node_app_shell -->|"loads rates"| node_rate_service
node_rate_service -->|"reads and writes"| node_browser_cache
node_rate_service -->|"fetches rates"| node_rate_api
node_rate_service -->|"uses fallback"| node_fallback
node_app_shell -.->|"renders"| node_converter
node_converter -->|"uses"| node_selector
node_converter -->|"reads currencies"| node_currency_list
node_converter -->|"converts amounts"| node_rate_service
node_app_shell -.->|"presents"| node_conversion_table
node_conversion_table -->|"uses rates"| node_rate_service
node_app_shell -.->|"presents"| node_currency_matrix
node_currency_matrix -->|"reads currencies"| node_currency_list
node_currency_matrix -->|"uses rates"| node_rate_service
node_app_shell -.->|"presents"| node_pair_insights
node_pair_insights -->|"formats rates"| node_rate_service
node_pair_insights -.->|"reads insights"| node_insight_data
node_app_shell -->|"renders"| node_seo_content
node_app_shell -->|"renders"| node_ads
node_app_shell -.->|"presents"| node_faq
node_faq -->|"reads entries"| node_faq_data
node_app_shell -.->|"routes to"| node_guides_hub
node_app_shell -.->|"routes to"| node_guide_article
node_guides_hub -->|"reads guides"| node_guides_data
node_guide_article -->|"reads articles"| node_guides_data
node_app_shell -.->|"presents"| node_affiliate
node_app_shell -.->|"routes to"| node_about
node_app_shell -.->|"routes to"| node_legal
node_legal -->|"renders"| node_contact_form
node_contact_form -.->|"submits to"| node_contact_service
node_contact_form -->|"uses endpoint"| node_contact_service
node_app_shell -.->|"presents"| node_footer
node_footer -->|"links guides"| node_guides_data
node_footer -->|"links pairs"| node_currency_list

click node_app_shell "https://github.com/merazul1/converter-app/blob/master/src/App.tsx"
click node_converter "https://github.com/merazul1/converter-app/blob/master/src/components/ConverterCard.tsx"
click node_selector "https://github.com/merazul1/converter-app/blob/master/src/components/CurrencySelector.tsx"
click node_embed "https://github.com/merazul1/converter-app/blob/master/src/components/EmbedModal.tsx"
click node_rate_service "https://github.com/merazul1/converter-app/blob/master/src/services/currencyService.ts"
click node_fallback "https://github.com/merazul1/converter-app/blob/master/src/data/fallbackRates.ts"
click node_currency_list "https://github.com/merazul1/converter-app/blob/master/src/data/currencies.ts"
click node_conversion_table "https://github.com/merazul1/converter-app/blob/master/src/components/ConversionTable.tsx"
click node_currency_matrix "https://github.com/merazul1/converter-app/blob/master/src/components/CurrencyMatrix.tsx"
click node_pair_insights "https://github.com/merazul1/converter-app/blob/master/src/components/PairInsightSection.tsx"
click node_insight_data "https://github.com/merazul1/converter-app/blob/master/src/data/currencyInsights.ts"
click node_seo_content "https://github.com/merazul1/converter-app/blob/master/src/components/SeoContent.tsx"
click node_faq "https://github.com/merazul1/converter-app/blob/master/src/components/FaqSection.tsx"
click node_faq_data "https://github.com/merazul1/converter-app/blob/master/src/data/faqData.ts"
click node_guides_hub "https://github.com/merazul1/converter-app/blob/master/src/components/GuidesHubPage.tsx"
click node_guide_article "https://github.com/merazul1/converter-app/blob/master/src/components/GuideArticlePage.tsx"
click node_guides_data "https://github.com/merazul1/converter-app/blob/master/src/data/guidesData.ts"
click node_affiliate "https://github.com/merazul1/converter-app/blob/master/src/components/AffiliateBanner.tsx"
click node_ads "https://github.com/merazul1/converter-app/blob/master/src/components/AdUnit.tsx"
click node_about "https://github.com/merazul1/converter-app/blob/master/src/components/AboutPage.tsx"
click node_legal "https://github.com/merazul1/converter-app/blob/master/src/components/LegalPage.tsx"
click node_contact_form "https://github.com/merazul1/converter-app/blob/master/src/components/ContactForm.tsx"
click node_footer "https://github.com/merazul1/converter-app/blob/master/src/components/Footer.tsx"

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_app_shell,node_converter,node_selector,node_embed,node_conversion_table,node_currency_matrix toneBlue
class node_rate_service,node_rate_api,node_browser_cache,node_fallback,node_currency_list toneAmber
class node_pair_insights,node_insight_data,node_seo_content,node_faq,node_faq_data,node_guides_hub,node_guide_article,node_guides_data toneMint
class node_affiliate,node_ads,node_about,node_legal,node_contact_form,node_footer toneRose
class node_visitor,node_contact_service toneIndigo
```

## Components

### Application shell

- [App and routing](https://github.com/merazul1/converter-app/blob/master/src/App.tsx): `src/App.tsx`
- [Converter controls](https://github.com/merazul1/converter-app/blob/master/src/components/ConverterCard.tsx): `src/components/ConverterCard.tsx`
- [Currency selector](https://github.com/merazul1/converter-app/blob/master/src/components/CurrencySelector.tsx): `src/components/CurrencySelector.tsx`
- [Embed widget](https://github.com/merazul1/converter-app/blob/master/src/components/EmbedModal.tsx): `src/components/EmbedModal.tsx`
- [Conversion table](https://github.com/merazul1/converter-app/blob/master/src/components/ConversionTable.tsx): `src/components/ConversionTable.tsx`
- [Currency matrix](https://github.com/merazul1/converter-app/blob/master/src/components/CurrencyMatrix.tsx): `src/components/CurrencyMatrix.tsx`

### Rates and conversion

- [Rate service](https://github.com/merazul1/converter-app/blob/master/src/services/currencyService.ts): `src/services/currencyService.ts`
- **Exchange-rate API**
- **Browser local storage**
- [Fallback rates](https://github.com/merazul1/converter-app/blob/master/src/data/fallbackRates.ts): `src/data/fallbackRates.ts`
- [Currency catalogue](https://github.com/merazul1/converter-app/blob/master/src/data/currencies.ts): `src/data/currencies.ts`

### Financial content

- [Pair insights](https://github.com/merazul1/converter-app/blob/master/src/components/PairInsightSection.tsx): `src/components/PairInsightSection.tsx`
- [Insight data](https://github.com/merazul1/converter-app/blob/master/src/data/currencyInsights.ts): `src/data/currencyInsights.ts`
- [SEO content](https://github.com/merazul1/converter-app/blob/master/src/components/SeoContent.tsx): `src/components/SeoContent.tsx`
- [FAQ content](https://github.com/merazul1/converter-app/blob/master/src/components/FaqSection.tsx): `src/components/FaqSection.tsx`
- [FAQ data](https://github.com/merazul1/converter-app/blob/master/src/data/faqData.ts): `src/data/faqData.ts`
- [Guides hub](https://github.com/merazul1/converter-app/blob/master/src/components/GuidesHubPage.tsx): `src/components/GuidesHubPage.tsx`
- [Guide articles](https://github.com/merazul1/converter-app/blob/master/src/components/GuideArticlePage.tsx): `src/components/GuideArticlePage.tsx`
- [Guide catalogue](https://github.com/merazul1/converter-app/blob/master/src/data/guidesData.ts): `src/data/guidesData.ts`

### Site and support

- [Affiliate banner](https://github.com/merazul1/converter-app/blob/master/src/components/AffiliateBanner.tsx): `src/components/AffiliateBanner.tsx`
- [Ad placements](https://github.com/merazul1/converter-app/blob/master/src/components/AdUnit.tsx): `src/components/AdUnit.tsx`
- [About page](https://github.com/merazul1/converter-app/blob/master/src/components/AboutPage.tsx): `src/components/AboutPage.tsx`
- [Legal pages and modal](https://github.com/merazul1/converter-app/blob/master/src/components/LegalPage.tsx): `src/components/LegalPage.tsx`
- [Contact form](https://github.com/merazul1/converter-app/blob/master/src/components/ContactForm.tsx): `src/components/ContactForm.tsx`
- [Footer navigation](https://github.com/merazul1/converter-app/blob/master/src/components/Footer.tsx): `src/components/Footer.tsx`

### Other components

- **Visitor**
- **Contact submission service**

## Connections

- Visitor → App and routing: uses (evidence: `README.md`)
- App and routing → Rate service: loads rates (evidence: `src/App.tsx`)
- Rate service → Browser local storage: reads and writes (evidence: `src/services/currencyService.ts`)
- Rate service → Exchange-rate API: fetches rates (evidence: `src/services/currencyService.ts`)
- Rate service → Fallback rates: uses fallback (evidence: `src/services/currencyService.ts`)
- App and routing → Converter controls: renders (evidence: `src/App.tsx`)
- Converter controls → Currency selector: uses (evidence: `src/components/ConverterCard.tsx`)
- Converter controls → Currency catalogue: reads currencies (evidence: `src/components/ConverterCard.tsx`)
- Converter controls → Rate service: converts amounts (evidence: `src/components/ConverterCard.tsx`)
- App and routing → Conversion table: presents (evidence: `src/App.tsx`)
- Conversion table → Rate service: uses rates (evidence: `src/components/ConversionTable.tsx`)
- App and routing → Currency matrix: presents (evidence: `src/App.tsx`)
- Currency matrix → Currency catalogue: reads currencies (evidence: `src/components/CurrencyMatrix.tsx`)
- Currency matrix → Rate service: uses rates (evidence: `src/components/CurrencyMatrix.tsx`)
- App and routing → Pair insights: presents (evidence: `src/App.tsx`)
- Pair insights → Rate service: formats rates (evidence: `src/components/PairInsightSection.tsx`)
- Pair insights → Insight data: reads insights (evidence: `src/components/PairInsightSection.tsx`)
- App and routing → SEO content: renders (evidence: `src/App.tsx`)
- App and routing → Ad placements: renders (evidence: `src/App.tsx`)
- App and routing → FAQ content: presents (evidence: `src/App.tsx`)
- FAQ content → FAQ data: reads entries (evidence: `src/components/FaqSection.tsx`)
- App and routing → Guides hub: routes to (evidence: `src/App.tsx`)
- App and routing → Guide articles: routes to (evidence: `src/App.tsx`)
- Guides hub → Guide catalogue: reads guides (evidence: `src/components/GuidesHubPage.tsx`)
- Guide articles → Guide catalogue: reads articles (evidence: `src/components/GuideArticlePage.tsx`)
- App and routing → Affiliate banner: presents (evidence: `src/App.tsx`)
- App and routing → About page: routes to (evidence: `src/App.tsx`)
- App and routing → Legal pages and modal: routes to (evidence: `src/App.tsx`)
- Legal pages and modal → Contact form: renders (evidence: `src/components/LegalPage.tsx`)
- Contact form → Contact submission service: submits to
- Contact form → Contact submission service: uses endpoint
- App and routing → Footer navigation: presents (evidence: `src/App.tsx`)
- Footer navigation → Guide catalogue: links guides (evidence: `src/components/Footer.tsx`)
- Footer navigation → Currency catalogue: links pairs (evidence: `src/components/Footer.tsx`)
