# ihsakib/porimap architecture

> Architecture diagram of the GitHub repository ihsakib/porimap, 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/ihsakib/porimap
- Repository: https://github.com/ihsakib/porimap

## Overview

Porimap is a Bengali land-area conversion web app. Users choose source and target units, enter an amount, and the conversion hook calculates and synchronizes the paired values; the main screen also provides a reference table of unit sizes. The page is composed with a header and footer containing links to land services. The runtime excerpts show the app mounting and component calls. Reporting web vitals is present as a secondary runtime capability; other product behavior is not described in the generic README.

Main entry points: [`src/layouts/Footer.jsx`](https://github.com/ihsakib/porimap/blob/master/src/layouts/Footer.jsx) (Land links), [`src/pages/Home.jsx`](https://github.com/ihsakib/porimap/blob/master/src/pages/Home.jsx) (Home page), [`src/index.js`](https://github.com/ihsakib/porimap/blob/master/src/index.js) (React mount), [`src/layouts/Main.jsx`](https://github.com/ihsakib/porimap/blob/master/src/layouts/Main.jsx) (Converter screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App composition"]
  node_mount["React mount<br/>[index.js]"]
  node_appview["App shell<br/>[App.js]"]
  node_home["Home page<br/>[Home.jsx]"]
  node_header["Brand header<br/>[Header.jsx]"]
  node_vitals["Web vitals<br/>[reportWebVitals.js]"]
end

subgraph group_conversion["Area conversion"]
  node_main["Converter screen<br/>[Main.jsx]"]
  node_conversionhook["Conversion state<br/>[useConversion.jsx]"]
  node_referencepanel["Unit reference<br/>[Main.jsx]"]
end

subgraph group_reference["Land references"]
  node_footer["Land links<br/>[Footer.jsx]"]
end

node_visitor(("Visitor"))
node_landministry(("Land ministry"))
node_mutation(("Mutation service"))
node_landmap(("Land map"))
node_eporcha(("E-Porcha"))

node_visitor -->|"opens app"| node_mount
node_mount -->|"renders"| node_appview
node_appview -->|"renders"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_main
node_home -->|"renders"| node_footer
node_main -->|"uses state"| node_conversionhook
node_main -->|"renders"| node_referencepanel
node_footer -->|"links to"| node_landministry
node_footer -->|"links to"| node_mutation
node_footer -->|"links to"| node_landmap
node_footer -->|"links to"| node_eporcha
node_mount -->|"invokes"| node_vitals

click node_mount "https://github.com/ihsakib/porimap/blob/master/src/index.js"
click node_appview "https://github.com/ihsakib/porimap/blob/master/src/App.js"
click node_home "https://github.com/ihsakib/porimap/blob/master/src/pages/Home.jsx"
click node_header "https://github.com/ihsakib/porimap/blob/master/src/layouts/Header.jsx"
click node_main "https://github.com/ihsakib/porimap/blob/master/src/layouts/Main.jsx"
click node_conversionhook "https://github.com/ihsakib/porimap/blob/master/src/hooks/useConversion.jsx"
click node_referencepanel "https://github.com/ihsakib/porimap/blob/master/src/layouts/Main.jsx"
click node_footer "https://github.com/ihsakib/porimap/blob/master/src/layouts/Footer.jsx"
click node_vitals "https://github.com/ihsakib/porimap/blob/master/src/reportWebVitals.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_mount,node_appview,node_home,node_header,node_vitals toneBlue
class node_main,node_conversionhook,node_referencepanel toneAmber
class node_footer toneMint
class node_visitor,node_landministry,node_mutation,node_landmap,node_eporcha toneIndigo
```

## Components

### App composition

- [React mount](https://github.com/ihsakib/porimap/blob/master/src/index.js): `src/index.js`
- [App shell](https://github.com/ihsakib/porimap/blob/master/src/App.js): `src/App.js`
- [Home page](https://github.com/ihsakib/porimap/blob/master/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Brand header](https://github.com/ihsakib/porimap/blob/master/src/layouts/Header.jsx): `src/layouts/Header.jsx`
- [Web vitals](https://github.com/ihsakib/porimap/blob/master/src/reportWebVitals.js): `src/reportWebVitals.js`

### Area conversion

- [Converter screen](https://github.com/ihsakib/porimap/blob/master/src/layouts/Main.jsx): `src/layouts/Main.jsx`
- [Conversion state](https://github.com/ihsakib/porimap/blob/master/src/hooks/useConversion.jsx): `src/hooks/useConversion.jsx`
- [Unit reference](https://github.com/ihsakib/porimap/blob/master/src/layouts/Main.jsx): `src/layouts/Main.jsx`

### Land references

- [Land links](https://github.com/ihsakib/porimap/blob/master/src/layouts/Footer.jsx): `src/layouts/Footer.jsx`

### Other components

- **Visitor**
- **Land ministry**
- **Mutation service**
- **Land map**
- **E-Porcha**

## Connections

- Visitor → React mount: opens app (evidence: `src/index.js`)
- React mount → App shell: renders (evidence: `src/index.js`)
- App shell → Home page: renders (evidence: `src/App.js`)
- Home page → Brand header: renders (evidence: `src/pages/Home.jsx`)
- Home page → Converter screen: renders (evidence: `src/pages/Home.jsx`)
- Home page → Land links: renders (evidence: `src/pages/Home.jsx`)
- Converter screen → Conversion state: uses state (evidence: `src/layouts/Main.jsx`)
- Converter screen → Unit reference: renders (evidence: `src/layouts/Main.jsx`)
- Land links → Land ministry: links to (evidence: `src/layouts/Footer.jsx`)
- Land links → Mutation service: links to (evidence: `src/layouts/Footer.jsx`)
- Land links → Land map: links to (evidence: `src/layouts/Footer.jsx`)
- Land links → E-Porcha: links to (evidence: `src/layouts/Footer.jsx`)
- React mount → Web vitals: invokes (evidence: `src/index.js`)
