# imputnet/helium architecture

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

- Interactive diagram: https://gitdiagram.com/imputnet/helium
- Repository: https://github.com/imputnet/helium

## Overview

This repository is Helium’s Chromium-derived browser patchset plus source-preparation and localization utilities; it does not contain the browser’s full runtime. Its tooling supports preparing Chromium sources and maintaining patches, while the patch directories define browser changes across privacy, networking, sync, and UI. The README documents the browser’s broader service and component ecosystem, but those implementations live in separate repositories. Some tool relationships are supported only by the SOURCE INDEX; unsampled patch contents and orchestration are not inferred.

Main entry points: [`utils/patches.py`](https://github.com/imputnet/helium/blob/main/utils/patches.py) (Patch Application), [`utils/_common.py`](https://github.com/imputnet/helium/blob/main/utils/_common.py) (Common Utilities), [`utils/downloads.py`](https://github.com/imputnet/helium/blob/main/utils/downloads.py) (Downloads), [`devutils/update_lists.py`](https://github.com/imputnet/helium/blob/main/devutils/update_lists.py) (Patch Inventory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Source Preparation"]
  node_download["Downloads<br/>[downloads.py]"]
  node_extract["Archive Extraction<br/>[_extraction.py]"]
  node_prune["Binary Pruning<br/>[prune_binaries.py]"]
  node_domsub["Domain Substitution"]
  node_patch_apply["Patch Application<br/>[patches.py]"]
  node_patch_validate["Patch Validation"]
  node_patch_index["Patch Inventory<br/>[update_lists.py]"]
end

subgraph group_patches["Browser Patchsets"]
  node_privacy["Privacy Changes"]
  node_network["Network Changes"]
  node_sync["Sync Vault"]
  node_browser_ui["Browser UI"]
  node_settings["Settings UI"]
end

subgraph group_i18n["Localization"]
  node_translation_gen["String Extraction<br/>[i18n_generate.py]"]
  node_translation_forage["Translation Foraging<br/>[i18n_forage.py]"]
  node_translation_apply["XTB Application<br/>[i18n_apply.py]"]
  node_name_sub["Brand Substitution"]
end

subgraph group_shared["Shared Utilities"]
  node_common["Common Utilities<br/>[_common.py]"]
end

subgraph group_ecosystem["Helium Ecosystem"]
  node_helium_services["Helium Services"]
  node_ublock["Helium uBlock"]
  node_onboarding["Onboarding Component"]
end

node_contributor(("Contributor"))
node_source["Chromium Sources"]

node_contributor -.->|"prepares sources"| node_download
node_source -.->|"supplies archives"| node_download
node_download -->|"uses extraction"| node_extract
node_extract -->|"uses platform helpers"| node_common
node_download -->|"uses shared helpers"| node_common
node_prune -->|"uses shared helpers"| node_common
node_domsub -->|"uses shared helpers"| node_common
node_domsub -->|"uses extraction"| node_extract
node_patch_apply -->|"uses shared helpers"| node_common
node_patch_validate -->|"uses patch utilities"| node_patch_apply
node_patch_index -->|"uses domain rules"| node_domsub
node_patch_index -->|"uses pruning rules"| node_prune
node_patch_index -->|"uses shared helpers"| node_common
node_source -.->|"receives patches"| node_patch_apply
node_patch_apply -.->|"applies changes"| node_privacy
node_patch_apply -.->|"applies changes"| node_network
node_patch_apply -.->|"applies changes"| node_sync
node_patch_apply -.->|"applies changes"| node_browser_ui
node_patch_apply -.->|"applies changes"| node_settings
node_translation_gen -->|"rewrites strings"| node_name_sub
node_translation_forage -->|"uses string helpers"| node_name_sub
node_translation_forage -->|"uses translation utilities"| node_translation_apply
node_translation_apply -->|"uses name helpers"| node_name_sub
node_translation_gen -.->|"extracts patch strings"| node_source
node_translation_apply -.->|"updates translations"| node_source
node_helium_services -.->|"provides cloud services"| node_source
node_ublock -.->|"adds filtering"| node_source
node_onboarding -.->|"provides setup experience"| node_source

click node_download "https://github.com/imputnet/helium/blob/main/utils/downloads.py"
click node_extract "https://github.com/imputnet/helium/blob/main/utils/_extraction.py"
click node_prune "https://github.com/imputnet/helium/blob/main/utils/prune_binaries.py"
click node_domsub "https://github.com/imputnet/helium/blob/main/utils/domain_substitution.py"
click node_patch_apply "https://github.com/imputnet/helium/blob/main/utils/patches.py"
click node_patch_validate "https://github.com/imputnet/helium/blob/main/devutils/validate_patches.py"
click node_patch_index "https://github.com/imputnet/helium/blob/main/devutils/update_lists.py"
click node_privacy "https://github.com/imputnet/helium/tree/main/patches/helium/core"
click node_network "https://github.com/imputnet/helium/tree/main/patches/helium/core/network"
click node_sync "https://github.com/imputnet/helium/tree/main/patches/helium/core/sync"
click node_browser_ui "https://github.com/imputnet/helium/tree/main/patches/helium/ui"
click node_settings "https://github.com/imputnet/helium/tree/main/patches/helium/settings"
click node_translation_gen "https://github.com/imputnet/helium/blob/main/devutils/i18n_generate.py"
click node_translation_forage "https://github.com/imputnet/helium/blob/main/devutils/i18n_forage.py"
click node_translation_apply "https://github.com/imputnet/helium/blob/main/utils/i18n_apply.py"
click node_name_sub "https://github.com/imputnet/helium/blob/main/utils/name_substitution_utils.py"
click node_common "https://github.com/imputnet/helium/blob/main/utils/_common.py"

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_download,node_extract,node_prune,node_domsub,node_patch_apply,node_patch_validate,node_patch_index toneBlue
class node_privacy,node_network,node_sync,node_browser_ui,node_settings toneAmber
class node_translation_gen,node_translation_forage,node_translation_apply,node_name_sub toneMint
class node_common toneRose
class node_helium_services,node_ublock,node_onboarding,node_contributor,node_source toneIndigo
```

## Components

### Source Preparation

- [Downloads](https://github.com/imputnet/helium/blob/main/utils/downloads.py): `utils/downloads.py`
- [Archive Extraction](https://github.com/imputnet/helium/blob/main/utils/_extraction.py): `utils/_extraction.py`
- [Binary Pruning](https://github.com/imputnet/helium/blob/main/utils/prune_binaries.py): `utils/prune_binaries.py`
- [Domain Substitution](https://github.com/imputnet/helium/blob/main/utils/domain_substitution.py): `utils/domain_substitution.py`
- [Patch Application](https://github.com/imputnet/helium/blob/main/utils/patches.py): `utils/patches.py`
- [Patch Validation](https://github.com/imputnet/helium/blob/main/devutils/validate_patches.py): `devutils/validate_patches.py`
- [Patch Inventory](https://github.com/imputnet/helium/blob/main/devutils/update_lists.py): `devutils/update_lists.py`

### Browser Patchsets

- [Privacy Changes](https://github.com/imputnet/helium/tree/main/patches/helium/core): `patches/helium/core`
- [Network Changes](https://github.com/imputnet/helium/tree/main/patches/helium/core/network): `patches/helium/core/network`
- [Sync Vault](https://github.com/imputnet/helium/tree/main/patches/helium/core/sync): `patches/helium/core/sync`
- [Browser UI](https://github.com/imputnet/helium/tree/main/patches/helium/ui): `patches/helium/ui`
- [Settings UI](https://github.com/imputnet/helium/tree/main/patches/helium/settings): `patches/helium/settings`

### Localization

- [String Extraction](https://github.com/imputnet/helium/blob/main/devutils/i18n_generate.py): `devutils/i18n_generate.py`
- [Translation Foraging](https://github.com/imputnet/helium/blob/main/devutils/i18n_forage.py): `devutils/i18n_forage.py`
- [XTB Application](https://github.com/imputnet/helium/blob/main/utils/i18n_apply.py): `utils/i18n_apply.py`
- [Brand Substitution](https://github.com/imputnet/helium/blob/main/utils/name_substitution_utils.py): `utils/name_substitution_utils.py`

### Shared Utilities

- [Common Utilities](https://github.com/imputnet/helium/blob/main/utils/_common.py): `utils/_common.py`

### Helium Ecosystem

- **Helium Services**
- **Helium uBlock**
- **Onboarding Component**

### Other components

- **Contributor**
- **Chromium Sources**

## Connections

- Contributor → Downloads: prepares sources
- Chromium Sources → Downloads: supplies archives
- Downloads → Archive Extraction: uses extraction (evidence: `utils/downloads.py`)
- Archive Extraction → Common Utilities: uses platform helpers (evidence: `utils/_extraction.py`)
- Downloads → Common Utilities: uses shared helpers (evidence: `utils/downloads.py`)
- Binary Pruning → Common Utilities: uses shared helpers (evidence: `utils/prune_binaries.py`)
- Domain Substitution → Common Utilities: uses shared helpers (evidence: `utils/domain_substitution.py`)
- Domain Substitution → Archive Extraction: uses extraction (evidence: `utils/domain_substitution.py`)
- Patch Application → Common Utilities: uses shared helpers (evidence: `utils/patches.py`)
- Patch Validation → Patch Application: uses patch utilities (evidence: `devutils/validate_patches.py`)
- Patch Inventory → Domain Substitution: uses domain rules (evidence: `devutils/update_lists.py`)
- Patch Inventory → Binary Pruning: uses pruning rules (evidence: `devutils/update_lists.py`)
- Patch Inventory → Common Utilities: uses shared helpers (evidence: `devutils/update_lists.py`)
- Chromium Sources → Patch Application: receives patches
- Patch Application → Privacy Changes: applies changes
- Patch Application → Network Changes: applies changes
- Patch Application → Sync Vault: applies changes
- Patch Application → Browser UI: applies changes
- Patch Application → Settings UI: applies changes
- String Extraction → Brand Substitution: rewrites strings (evidence: `devutils/i18n_generate.py`)
- Translation Foraging → Brand Substitution: uses string helpers (evidence: `devutils/i18n_forage.py`)
- Translation Foraging → XTB Application: uses translation utilities (evidence: `devutils/i18n_forage.py`)
- XTB Application → Brand Substitution: uses name helpers (evidence: `utils/i18n_apply.py`)
- String Extraction → Chromium Sources: extracts patch strings
- XTB Application → Chromium Sources: updates translations
- Helium Services → Chromium Sources: provides cloud services (evidence: `README.md`)
- Helium uBlock → Chromium Sources: adds filtering (evidence: `README.md`)
- Onboarding Component → Chromium Sources: provides setup experience (evidence: `README.md`)
