# naveen-squadl/onepe-pricing-calculator architecture

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

- Interactive diagram: https://gitdiagram.com/naveen-squadl/onepe-pricing-calculator
- Repository: https://github.com/naveen-squadl/onepe-pricing-calculator

## Overview

The repository appears to be a small OnePe pricing-calculator web app. The available README identifies the product but does not describe its calculation workflow, and no calculator implementation was excerpted, so the graph does not infer calculation stages. The shown service worker precaches the app shell and manifest and handles GET requests with cache-first behavior; its cache behavior is the only detailed runtime flow evidenced here.

Main entry points: [`sw.js`](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/sw.js) (Service Worker), [`index.html`](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/index.html) (Pricing Calculator), [`manifest.json`](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/manifest.json) (App Manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_calculator["Pricing Calculator<br/>[index.html]"]
node_worker["Service Worker<br/>[sw.js]"]
node_manifest["App Manifest<br/>[manifest.json]"]

node_user -->|"uses"| node_calculator
node_worker -->|"precaches shell"| node_calculator
node_worker -->|"precaches"| node_manifest

click node_calculator "https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/index.html"
click node_worker "https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/sw.js"
click node_manifest "https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/manifest.json"

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_user toneBlue
class node_calculator,node_manifest toneTeal
class node_worker toneRose
```

## Components

### Other components

- **User**
- [Pricing Calculator](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/index.html): `index.html`
- [Service Worker](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/sw.js): `sw.js`
- [App Manifest](https://github.com/naveen-squadl/onepe-pricing-calculator/blob/main/manifest.json): `manifest.json`

## Connections

- User → Pricing Calculator: uses (evidence: `README.md`)
- Service Worker → Pricing Calculator: precaches shell (evidence: `sw.js`)
- Service Worker → App Manifest: precaches (evidence: `sw.js`)
