# yokoffing/betterfox architecture

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

- Interactive diagram: https://gitdiagram.com/yokoffing/betterfox
- Repository: https://github.com/yokoffing/betterfox

## Overview

Betterfox is a curated set of Firefox preference files for privacy, security, performance, and browsing experience—not a browser or runtime service. The primary workflow is to select and review `user.js`, place it in a Firefox profile (manually or using the installer), then restart Firefox so it applies the preferences. The guide files document distinct settings areas; README identifies `user.js` as curated from those guides and `Smoothfox.js` as optional. Installer internals and some profile variants are only partially sampled, so their relationships are limited to documented capabilities and visible options.

Main entry points: [`user.js`](https://github.com/yokoffing/betterfox/blob/main/user.js) (Curated preferences), [`install.py`](https://github.com/yokoffing/betterfox/blob/main/install.py) (Profile installer), [`Securefox.js`](https://github.com/yokoffing/betterfox/blob/main/Securefox.js) (Privacy and security), [`Fastfox.js`](https://github.com/yokoffing/betterfox/blob/main/Fastfox.js) (Performance tuning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guides["Preference guides"]
  node_secure["Privacy and security<br/>[Securefox.js]"]
  node_speed["Performance tuning<br/>[Fastfox.js]"]
  node_ui["Browsing experience<br/>[Peskyfox.js]"]
  node_scroll["Scrolling options<br/>[Smoothfox.js]"]
end

subgraph group_configs["Browser configurations"]
  node_combined["Curated preferences<br/>[user.js]"]
  node_personal["Personal overrides<br/>[user-overrides.js]"]
  node_waterfox["Waterfox preferences<br/>[user.js]"]
  node_zen["Zen preferences<br/>[user.js]"]
end

subgraph group_install["Installation"]
  node_installer["Profile installer<br/>[install.py]"]
end

node_user(("Firefox user"))
node_firefox[("Firefox profile")]

node_user -->|"selects and reviews"| node_combined
node_secure -->|"curated into"| node_combined
node_speed -->|"curated into"| node_combined
node_ui -->|"curated into"| node_combined
node_scroll -.->|"optional settings"| node_combined
node_combined -->|"placed in profile"| node_firefox
node_firefox -->|"applies on restart"| node_user
node_installer -->|"installs configuration"| node_firefox
node_personal -->|"override option"| node_installer

click node_secure "https://github.com/yokoffing/betterfox/blob/main/Securefox.js"
click node_speed "https://github.com/yokoffing/betterfox/blob/main/Fastfox.js"
click node_ui "https://github.com/yokoffing/betterfox/blob/main/Peskyfox.js"
click node_scroll "https://github.com/yokoffing/betterfox/blob/main/Smoothfox.js"
click node_combined "https://github.com/yokoffing/betterfox/blob/main/user.js"
click node_personal "https://github.com/yokoffing/betterfox/blob/main/personal/user-overrides.js"
click node_waterfox "https://github.com/yokoffing/betterfox/blob/main/waterfox/user.js"
click node_zen "https://github.com/yokoffing/betterfox/blob/main/zen/user.js"
click node_installer "https://github.com/yokoffing/betterfox/blob/main/install.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_secure,node_speed,node_ui,node_scroll,node_user toneBlue
class node_combined,node_personal,node_waterfox,node_zen,node_firefox toneAmber
class node_installer toneMint
```

## Components

### Preference guides

- [Privacy and security](https://github.com/yokoffing/betterfox/blob/main/Securefox.js): `Securefox.js`
- [Performance tuning](https://github.com/yokoffing/betterfox/blob/main/Fastfox.js): `Fastfox.js`
- [Browsing experience](https://github.com/yokoffing/betterfox/blob/main/Peskyfox.js): `Peskyfox.js`
- [Scrolling options](https://github.com/yokoffing/betterfox/blob/main/Smoothfox.js): `Smoothfox.js`

### Browser configurations

- [Curated preferences](https://github.com/yokoffing/betterfox/blob/main/user.js): `user.js`
- [Personal overrides](https://github.com/yokoffing/betterfox/blob/main/personal/user-overrides.js): `personal/user-overrides.js`
- [Waterfox preferences](https://github.com/yokoffing/betterfox/blob/main/waterfox/user.js): `waterfox/user.js`
- [Zen preferences](https://github.com/yokoffing/betterfox/blob/main/zen/user.js): `zen/user.js`

### Installation

- [Profile installer](https://github.com/yokoffing/betterfox/blob/main/install.py): `install.py`

### Other components

- **Firefox user**
- **Firefox profile**

## Connections

- Firefox user → Curated preferences: selects and reviews (evidence: `README.md`)
- Privacy and security → Curated preferences: curated into (evidence: `README.md`)
- Performance tuning → Curated preferences: curated into (evidence: `README.md`)
- Browsing experience → Curated preferences: curated into (evidence: `README.md`)
- Scrolling options → Curated preferences: optional settings (evidence: `README.md`)
- Curated preferences → Firefox profile: placed in profile (evidence: `README.md`)
- Firefox profile → Firefox user: applies on restart (evidence: `README.md`)
- Profile installer → Firefox profile: installs configuration (evidence: `install.py`)
- Personal overrides → Profile installer: override option (evidence: `install.py`)
