# theus/instantgram architecture

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

- Interactive diagram: https://gitdiagram.com/theus/instantgram
- Repository: https://github.com/theus/instantgram

## Overview

instantgram is a browser bookmarklet for downloading Instagram media. The documented workflow is to install it from the landing page, open a photo post on Instagram, and click the bookmarklet. The README also describes canvas-image support and handling multiple images or videos with a modal. The source excerpt shows Astro navigation code, not the bookmarklet implementation, so implementation-level media-processing links are not asserted.

Main entry points: [`index.html`](https://github.com/theus/instantgram/blob/gh-pages/index.html) (Media download bookmarklet), [`lang`](https://github.com/theus/instantgram/tree/gh-pages/lang) (Localized pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_landing["Bookmarklet page<br/>[index.html]"]
  node_localized["Localized pages"]
  node_astro["Astro navigation runtime"]
end

subgraph group_bookmarklet["Bookmarklet"]
  node_bookmarklet_action["Media download bookmarklet<br/>[index.html]"]
end

node_visitor(("Visitor"))
node_instagram["Instagram post"]
node_media["Instagram media"]

node_visitor -->|"opens"| node_landing
node_landing -->|"offers installation"| node_bookmarklet_action
node_visitor -->|"opens post"| node_instagram
node_visitor -->|"clicks"| node_bookmarklet_action
node_bookmarklet_action -->|"reads post media"| node_instagram
node_bookmarklet_action -->|"downloads"| node_media
node_landing -->|"links languages"| node_localized

click node_landing "https://github.com/theus/instantgram/blob/gh-pages/index.html"
click node_localized "https://github.com/theus/instantgram/tree/gh-pages/lang"
click node_astro "https://github.com/theus/instantgram/blob/gh-pages/_astro/hoisted.D-2wbxhY.js"
click node_bookmarklet_action "https://github.com/theus/instantgram/blob/gh-pages/index.html"

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_landing,node_localized,node_astro toneBlue
class node_bookmarklet_action toneAmber
class node_visitor,node_instagram,node_media toneIndigo
```

## Components

### Website

- [Bookmarklet page](https://github.com/theus/instantgram/blob/gh-pages/index.html): `index.html`
- [Localized pages](https://github.com/theus/instantgram/tree/gh-pages/lang): `lang`
- [Astro navigation runtime](https://github.com/theus/instantgram/blob/gh-pages/_astro/hoisted.D-2wbxhY.js): `_astro/hoisted.D-2wbxhY.js`

### Bookmarklet

- [Media download bookmarklet](https://github.com/theus/instantgram/blob/gh-pages/index.html): `index.html`

### Other components

- **Visitor**
- **Instagram post**
- **Instagram media**

## Connections

- Visitor → Bookmarklet page: opens (evidence: `README.md`)
- Bookmarklet page → Media download bookmarklet: offers installation (evidence: `README.md`)
- Visitor → Instagram post: opens post (evidence: `README.md`)
- Visitor → Media download bookmarklet: clicks (evidence: `README.md`)
- Media download bookmarklet → Instagram post: reads post media (evidence: `README.md`)
- Media download bookmarklet → Instagram media: downloads (evidence: `README.md`)
- Bookmarklet page → Localized pages: links languages (evidence: `README.md`)
