# maria-biruk/hercircle architecture

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

- Interactive diagram: https://gitdiagram.com/maria-biruk/hercircle
- Repository: https://github.com/maria-biruk/hercircle

## Overview

Her Circle is a bilingual React PWA that provides rights information, GBV support-service discovery, practical support pathways, USSD guidance, and economic-empowerment resources; it does not deliver services or training. The primary workflow is a user opening the app, choosing a topic or directory, and viewing localized information or a service profile. Source excerpts show routing, data-loading, and selected page-to-helper relationships. Other major capabilities are included from the README and source index; some internal connections remain unverified because their implementations were not excerpted.

Main entry points: [`src/App.jsx`](https://github.com/maria-biruk/hercircle/blob/dev/src/App.jsx) (App routing), [`src/hooks/useAppData.js`](https://github.com/maria-biruk/hercircle/blob/dev/src/hooks/useAppData.js) (Data hooks), [`src/pages/ServicesPage.jsx`](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/ServicesPage.jsx) (Service directory), [`src/pages/InfoCardDetailPage.jsx`](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/InfoCardDetailPage.jsx) (Information detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_app["App routing<br/>[App.jsx]"]
  node_shell["App shell<br/>[AppShell.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
end

subgraph group_content["Rights and guidance"]
  node_rights["Rights topics<br/>[RightsPage.jsx]"]
  node_carddetail["Information detail"]
  node_guide["Guided support<br/>[GuidePage.jsx]"]
  node_pathways["Support pathways"]
  node_ussd["USSD guidance<br/>[UssdPage.jsx]"]
end

subgraph group_discovery["Service discovery"]
  node_services["Service directory<br/>[ServicesPage.jsx]"]
  node_directorycard["Directory card"]
  node_serviceprofile["Service profile<br/>[ServiceCard.jsx]"]
  node_serviceutils["Service filtering<br/>[services.js]"]
end

subgraph group_future["Economic empowerment"]
  node_empower["Future resources<br/>[EmpowerPage.jsx]"]
  node_resourcecard["Resource card<br/>[ResourceCard.jsx]"]
end

subgraph group_shared["Shared data and state"]
  node_datamapping["Data hooks<br/>[useAppData.js]"]
  node_jsonloader["JSON loader<br/>[useJsonData.js]"]
  node_language["Language state"]
  node_localize["Localization<br/>[localize.js]"]
  node_demomode["Demo mode"]
  node_offline["Offline marks"]
  node_audio["Audio player<br/>[AudioPlayer.jsx]"]
  node_serviceworker["Offline cache<br/>[sw.js]"]
end

node_user(("App user"))

node_user -->|"opens app"| node_app
node_app -->|"wraps routes"| node_shell
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_rights
node_app -->|"routes to"| node_carddetail
node_app -->|"routes to"| node_guide
node_app -->|"routes to"| node_pathways
node_app -->|"routes to"| node_ussd
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_empower
node_app -->|"provides state"| node_language
node_app -->|"provides state"| node_demomode
node_app -->|"provides state"| node_offline
node_app -->|"loads config"| node_datamapping
node_rights -->|"loads cards"| node_datamapping
node_carddetail -->|"loads content"| node_datamapping
node_carddetail -->|"renders audio"| node_audio
node_carddetail -->|"tracks saved marks"| node_offline
node_guide -->|"loads services"| node_datamapping
node_pathways -->|"loads pathways"| node_datamapping
node_ussd -->|"loads data"| node_jsonloader
node_services -->|"loads services"| node_datamapping
node_services -->|"filters listings"| node_serviceutils
node_services -->|"renders results"| node_directorycard
node_services -->|"shows selection"| node_serviceprofile
node_serviceprofile -->|"formats details"| node_serviceutils
node_empower -->|"loads resources"| node_datamapping
node_empower -->|"renders resources"| node_resourcecard
node_datamapping -->|"loads JSON"| node_jsonloader
node_datamapping -->|"selects demo data"| node_demomode
node_jsonloader -.->|"uses cached fetch"| node_serviceworker
node_language -->|"translates keys"| node_localize

click node_app "https://github.com/maria-biruk/hercircle/blob/dev/src/App.jsx"
click node_shell "https://github.com/maria-biruk/hercircle/blob/dev/src/components/AppShell.jsx"
click node_landing "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/LandingPage.jsx"
click node_rights "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/RightsPage.jsx"
click node_carddetail "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/InfoCardDetailPage.jsx"
click node_guide "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/GuidePage.jsx"
click node_pathways "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/SupportDetailPage.jsx"
click node_ussd "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/UssdPage.jsx"
click node_services "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/ServicesPage.jsx"
click node_directorycard "https://github.com/maria-biruk/hercircle/blob/dev/src/components/DirectoryServiceCard.jsx"
click node_serviceprofile "https://github.com/maria-biruk/hercircle/blob/dev/src/components/ServiceCard.jsx"
click node_serviceutils "https://github.com/maria-biruk/hercircle/blob/dev/src/utils/services.js"
click node_empower "https://github.com/maria-biruk/hercircle/blob/dev/src/pages/EmpowerPage.jsx"
click node_resourcecard "https://github.com/maria-biruk/hercircle/blob/dev/src/components/ResourceCard.jsx"
click node_datamapping "https://github.com/maria-biruk/hercircle/blob/dev/src/hooks/useAppData.js"
click node_jsonloader "https://github.com/maria-biruk/hercircle/blob/dev/src/hooks/useJsonData.js"
click node_language "https://github.com/maria-biruk/hercircle/blob/dev/src/context/LanguageContext.jsx"
click node_localize "https://github.com/maria-biruk/hercircle/blob/dev/src/utils/localize.js"
click node_demomode "https://github.com/maria-biruk/hercircle/blob/dev/src/context/DemoModeContext.jsx"
click node_offline "https://github.com/maria-biruk/hercircle/blob/dev/src/context/OfflineMarksContext.jsx"
click node_audio "https://github.com/maria-biruk/hercircle/blob/dev/src/components/AudioPlayer.jsx"
click node_serviceworker "https://github.com/maria-biruk/hercircle/blob/dev/src/sw.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_app,node_shell,node_landing,node_user toneBlue
class node_rights,node_carddetail,node_guide,node_pathways,node_ussd toneAmber
class node_services,node_directorycard,node_serviceprofile,node_serviceutils toneMint
class node_empower,node_resourcecard toneRose
class node_datamapping,node_jsonloader,node_language,node_localize,node_demomode,node_offline,node_audio,node_serviceworker toneIndigo
```

## Components

### App shell

- [App routing](https://github.com/maria-biruk/hercircle/blob/dev/src/App.jsx): `src/App.jsx`
- [App shell](https://github.com/maria-biruk/hercircle/blob/dev/src/components/AppShell.jsx): `src/components/AppShell.jsx`
- [Landing page](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`

### Rights and guidance

- [Rights topics](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/RightsPage.jsx): `src/pages/RightsPage.jsx`
- [Information detail](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/InfoCardDetailPage.jsx): `src/pages/InfoCardDetailPage.jsx`
- [Guided support](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/GuidePage.jsx): `src/pages/GuidePage.jsx`
- [Support pathways](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/SupportDetailPage.jsx): `src/pages/SupportDetailPage.jsx`
- [USSD guidance](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/UssdPage.jsx): `src/pages/UssdPage.jsx`

### Service discovery

- [Service directory](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/ServicesPage.jsx): `src/pages/ServicesPage.jsx`
- [Directory card](https://github.com/maria-biruk/hercircle/blob/dev/src/components/DirectoryServiceCard.jsx): `src/components/DirectoryServiceCard.jsx`
- [Service profile](https://github.com/maria-biruk/hercircle/blob/dev/src/components/ServiceCard.jsx): `src/components/ServiceCard.jsx`
- [Service filtering](https://github.com/maria-biruk/hercircle/blob/dev/src/utils/services.js): `src/utils/services.js`

### Economic empowerment

- [Future resources](https://github.com/maria-biruk/hercircle/blob/dev/src/pages/EmpowerPage.jsx): `src/pages/EmpowerPage.jsx`
- [Resource card](https://github.com/maria-biruk/hercircle/blob/dev/src/components/ResourceCard.jsx): `src/components/ResourceCard.jsx`

### Shared data and state

- [Data hooks](https://github.com/maria-biruk/hercircle/blob/dev/src/hooks/useAppData.js): `src/hooks/useAppData.js`
- [JSON loader](https://github.com/maria-biruk/hercircle/blob/dev/src/hooks/useJsonData.js): `src/hooks/useJsonData.js`
- [Language state](https://github.com/maria-biruk/hercircle/blob/dev/src/context/LanguageContext.jsx): `src/context/LanguageContext.jsx`
- [Localization](https://github.com/maria-biruk/hercircle/blob/dev/src/utils/localize.js): `src/utils/localize.js`
- [Demo mode](https://github.com/maria-biruk/hercircle/blob/dev/src/context/DemoModeContext.jsx): `src/context/DemoModeContext.jsx`
- [Offline marks](https://github.com/maria-biruk/hercircle/blob/dev/src/context/OfflineMarksContext.jsx): `src/context/OfflineMarksContext.jsx`
- [Audio player](https://github.com/maria-biruk/hercircle/blob/dev/src/components/AudioPlayer.jsx): `src/components/AudioPlayer.jsx`
- [Offline cache](https://github.com/maria-biruk/hercircle/blob/dev/src/sw.js): `src/sw.js`

### Other components

- **App user**

## Connections

- App user → App routing: opens app (evidence: `src/App.jsx`)
- App routing → App shell: wraps routes (evidence: `src/App.jsx`)
- App routing → Landing page: routes to (evidence: `src/App.jsx`)
- App routing → Rights topics: routes to (evidence: `src/App.jsx`)
- App routing → Information detail: routes to (evidence: `src/App.jsx`)
- App routing → Guided support: routes to (evidence: `src/App.jsx`)
- App routing → Support pathways: routes to (evidence: `src/App.jsx`)
- App routing → USSD guidance: routes to (evidence: `src/App.jsx`)
- App routing → Service directory: routes to (evidence: `src/App.jsx`)
- App routing → Future resources: routes to (evidence: `src/App.jsx`)
- App routing → Language state: provides state (evidence: `src/App.jsx`)
- App routing → Demo mode: provides state (evidence: `src/App.jsx`)
- App routing → Offline marks: provides state (evidence: `src/App.jsx`)
- App routing → Data hooks: loads config (evidence: `src/App.jsx`)
- Rights topics → Data hooks: loads cards (evidence: `src/pages/RightsPage.jsx`)
- Information detail → Data hooks: loads content (evidence: `src/pages/InfoCardDetailPage.jsx`)
- Information detail → Audio player: renders audio (evidence: `src/pages/InfoCardDetailPage.jsx`)
- Information detail → Offline marks: tracks saved marks (evidence: `src/pages/InfoCardDetailPage.jsx`)
- Guided support → Data hooks: loads services (evidence: `src/pages/GuidePage.jsx`)
- Support pathways → Data hooks: loads pathways (evidence: `src/pages/SupportDetailPage.jsx`)
- USSD guidance → JSON loader: loads data (evidence: `src/pages/UssdPage.jsx`)
- Service directory → Data hooks: loads services (evidence: `src/pages/ServicesPage.jsx`)
- Service directory → Service filtering: filters listings (evidence: `src/pages/ServicesPage.jsx`)
- Service directory → Directory card: renders results (evidence: `src/pages/ServicesPage.jsx`)
- Service directory → Service profile: shows selection (evidence: `src/pages/ServicesPage.jsx`)
- Service profile → Service filtering: formats details (evidence: `src/components/ServiceCard.jsx`)
- Future resources → Data hooks: loads resources (evidence: `src/pages/EmpowerPage.jsx`)
- Future resources → Resource card: renders resources (evidence: `src/pages/EmpowerPage.jsx`)
- Data hooks → JSON loader: loads JSON (evidence: `src/hooks/useAppData.js`)
- Data hooks → Demo mode: selects demo data (evidence: `src/hooks/useAppData.js`)
- JSON loader → Offline cache: uses cached fetch
- Language state → Localization: translates keys (evidence: `src/context/LanguageContext.jsx`)
