# kathir57/instadownloader-frontend architecture

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

## Overview

InstaGet is a browser-based Instagram media downloader. The main workflow accepts an Instagram URL, requests media information from a proxy API, displays available formats, and downloads a selected file. The source also includes clipboard assistance and a standalone canvas particle effect. The README is empty, and the excerpts do not show page markup or all event wiring, so the graph omits unsupported connections and treats the proxy as an external service.

Main entry points: [`js/main.js`](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js) (Media lookup), [`index.html`](https://github.com/kathir57/instadownloader-frontend/blob/main/index.html) (Downloader page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_download["Download workflow"]
  node_downloader_ui["Downloader page<br/>[index.html]"]
  node_url_handling["URL handling<br/>[main.js]"]
  node_clipboard_assist["Clipboard assist<br/>[main.js]"]
  node_media_lookup["Media lookup<br/>[main.js]"]
  node_result_display["Result display<br/>[main.js]"]
  node_file_download["File download<br/>[main.js]"]
end

subgraph group_presentation["Site presentation"]
  node_site_pages["About, FAQ, privacy<br/>[about.html]"]
  node_particle_effect["Particle effect<br/>[particles.js]"]
end

subgraph group_external["External services"]
  node_proxy_api["Info proxy"]
  node_media_host["Media host"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_downloader_ui
node_downloader_ui -.->|"submits URL"| node_url_handling
node_clipboard_assist -->|"checks URL"| node_url_handling
node_media_lookup -->|"requests info"| node_proxy_api
node_media_lookup -->|"passes data"| node_result_display
node_result_display -->|"offers formats"| node_file_download
node_file_download -->|"fetches file"| node_media_host

click node_downloader_ui "https://github.com/kathir57/instadownloader-frontend/blob/main/index.html"
click node_url_handling "https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js"
click node_clipboard_assist "https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js"
click node_media_lookup "https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js"
click node_result_display "https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js"
click node_file_download "https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js"
click node_site_pages "https://github.com/kathir57/instadownloader-frontend/blob/main/about.html"
click node_particle_effect "https://github.com/kathir57/instadownloader-frontend/blob/main/js/particles.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_downloader_ui,node_url_handling,node_clipboard_assist,node_media_lookup,node_result_display,node_file_download toneBlue
class node_site_pages,node_particle_effect toneAmber
class node_proxy_api,node_media_host toneMint
class node_visitor toneIndigo
```

## Components

### Download workflow

- [Downloader page](https://github.com/kathir57/instadownloader-frontend/blob/main/index.html): `index.html`
- [URL handling](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js): `js/main.js`
- [Clipboard assist](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js): `js/main.js`
- [Media lookup](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js): `js/main.js`
- [Result display](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js): `js/main.js`
- [File download](https://github.com/kathir57/instadownloader-frontend/blob/main/js/main.js): `js/main.js`

### Site presentation

- [About, FAQ, privacy](https://github.com/kathir57/instadownloader-frontend/blob/main/about.html): `about.html`
- [Particle effect](https://github.com/kathir57/instadownloader-frontend/blob/main/js/particles.js): `js/particles.js`

### External services

- **Info proxy**
- **Media host**

### Other components

- **Visitor**

## Connections

- Visitor → Downloader page: uses
- Downloader page → URL handling: submits URL
- Clipboard assist → URL handling: checks URL (evidence: `js/main.js`)
- Media lookup → Info proxy: requests info (evidence: `js/main.js`)
- Media lookup → Result display: passes data (evidence: `js/main.js`)
- Result display → File download: offers formats (evidence: `js/main.js`)
- File download → Media host: fetches file (evidence: `js/main.js`)
