# swapnilalase25/ram_mandir_aarti_pass_autofiller architecture

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

- Interactive diagram: https://gitdiagram.com/swapnilalase25/ram_mandir_aarti_pass_autofiller
- Repository: https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller

## Overview

This Chrome extension collects predefined details for up to four people and a contact/address, then sends them to the active tab so a content script can populate the Ram Mandir pass form. The popup also supports saving, loading, and resetting those details. The message flow and storage operations are visible in the sampled scripts; the manifest and popup markup were not sampled, so their configuration and wiring are not inferred. Bootstrap files are bundled vendor UI code, not core extension behavior.

Main entry points: [`ext/script.js`](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/script.js) (Popup actions), [`content.js`](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/content.js) (Form autofiller), [`ext/index.html`](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/index.html) (Popup form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_popup["Popup data entry"]
  node_popup_ui["Popup form<br/>[index.html]"]
  node_popup_logic["Popup actions<br/>[script.js]"]
end

subgraph group_fill["Form autofill"]
  node_content_script["Form autofiller<br/>[content.js]"]
end

node_user(("Extension user"))
node_sync_storage[("Chrome sync storage")]
node_active_tab["Active pass tab"]

node_user -->|"enters details"| node_popup_ui
node_popup_logic -->|"sends details"| node_active_tab
node_active_tab -->|"delivers message"| node_content_script
node_content_script -->|"fills form fields"| node_active_tab
node_popup_logic -->|"saves and loads"| node_sync_storage
node_user -->|"triggers actions"| node_popup_logic

click node_popup_ui "https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/index.html"
click node_popup_logic "https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/script.js"
click node_content_script "https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/content.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_popup_ui,node_popup_logic,node_user toneBlue
class node_content_script,node_sync_storage toneAmber
class node_active_tab toneIndigo
```

## Components

### Popup data entry

- [Popup form](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/index.html): `ext/index.html`
- [Popup actions](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/ext/script.js): `ext/script.js`

### Form autofill

- [Form autofiller](https://github.com/swapnilalase25/ram_mandir_aarti_pass_autofiller/blob/main/content.js): `content.js`

### Other components

- **Extension user**
- **Chrome sync storage**
- **Active pass tab**

## Connections

- Extension user → Popup form: enters details (evidence: `README.md`)
- Popup actions → Active pass tab: sends details (evidence: `ext/script.js`)
- Active pass tab → Form autofiller: delivers message (evidence: `content.js`)
- Form autofiller → Active pass tab: fills form fields (evidence: `content.js`)
- Popup actions → Chrome sync storage: saves and loads (evidence: `ext/script.js`)
- Extension user → Popup actions: triggers actions (evidence: `ext/script.js`)
