# mullvad/mullvad-browser architecture

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

- Interactive diagram: https://gitdiagram.com/mullvad/mullvad-browser
- Repository: https://github.com/mullvad/mullvad-browser
- Video tour (about a minute): https://gitdiagram.com/mullvad/mullvad-browser/video

## Overview

This repository snapshot is not the browser source itself; it is the public-facing coordination repo for Mullvad Browser. The README explicitly says `main` only contains documentation, while the actual source lives in branches/tags and in the Tor Project GitLab. So the architecture here is centered on release/issue management rather than application runtime.

1. **Primary purpose**
   Mullvad Browser is a privacy-focused browser distributed for Linux, Windows, and macOS. The repo’s role in this snapshot is to describe the product, route user feedback, and automate release-adjacent operations.

2. **Documentation layer**
   `README.md` is the central entry point. It explains the product positioning, supported platforms, download/verification guidance, support channels, source-code location, build instructions, and MPL 2.0 licensing.

3. **Issue intake subsystem**
   `.github/ISSUE_TEMPLATE/` contains structured issue forms for different categories: webcompat, browser, feature, and third-party issues. This indicates a triage boundary where incoming reports are classified before reaching maintainers.

4. **Issue routing and consistency**
   The issue template config file (`config.yml`) governs how those forms appear in GitHub’s issue picker. Architecturally, this is the repo’s front door for user feedback and bug reports, enforcing consistent metadata at intake time.

5. **Release automation**
   `.github/workflows/new_browser_release.yml` is the main GitHub Actions automation in this snapshot. Its name indicates a workflow for creating or publishing a new browser release, likely triggered by repository events or release lifecycle changes.

6. **Draft release preparation**
   `scripts/create_draft_release.sh` suggests a release-prep helper that assembles draft release material. This is a human-in-the-loop boundary: automation prepares artifacts or release notes, then maintainers review and finalize.

7. **External notification hook**
   `scripts/trigger_slack_webhook.sh` indicates integration with Slack for release or operational notifications. That creates an external communication path from repository events to team coordination tooling.

8. **Governance and support boundary**
   The README directs users to file issues here or email support, while also pointing to Tor Project GitLab for source access. That means this repo sits between end users, maintainers, and the upstream source-of-truth for code.

9. **Security and trust model**
   Download verification is emphasized in the README, and signatures are stated to come from Tor Browser Developers. Architecturally, trust is established via signed releases rather than code in this repository snapshot.

10. **What is not present here**
   There are no product source directories, build systems, or application runtime components in this tree. Any architecture diagram for the actual browser must be drawn from the release branches/tags or the Tor Project GitLab repository, not from `main` here.

11. **Overall flow**
   In practical terms, the flow is: source code is developed elsewhere, release artifacts are prepared through scripts/workflows, notifications may go to Slack, and users interact with the project via GitHub issues and published downloads.

12. **Best diagram framing**
   If you diagram this repo, treat it as a thin public operations layer with three main surfaces: documentation, issue intake, and release automation. The real browser architecture is external to this tree.

Main entry points: [`.github/ISSUE_TEMPLATE/config.yml`](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/config.yml) (Template config), [`README.md`](https://github.com/mullvad/mullvad-browser/blob/main/README.md) (README), [`.github/workflows/new_browser_release.yml`](https://github.com/mullvad/mullvad-browser/blob/main/.github/workflows/new_browser_release.yml) (Release workflow), [`.github/ISSUE_TEMPLATE/1-webcompat.yml`](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/1-webcompat.yml) (Webcompat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Documentation"]
  node_readme["README<br/>docs<br/>[README.md]"]
end

subgraph group_intake["Issue Intake"]
  node_issue_webcompat["Webcompat<br/>issue form<br/>[1-webcompat.yml]"]
  node_issue_browser["Browser bug<br/>issue form<br/>[2-browser.yml]"]
  node_issue_feature["Feature request<br/>issue form<br/>[3-feature.yml]"]
  node_issue_thirdparty["Third-party<br/>issue form<br/>[4-thirdparty.yml]"]
  node_issue_config["Template config<br/>issue routing<br/>[config.yml]"]
end

subgraph group_release["Release Ops"]
  node_release_workflow["Release workflow<br/>ci workflow"]
  node_draft_release["Draft release<br/>release script"]
  node_slack_hook["Slack hook<br/>notify script"]
end

subgraph group_external["External Systems"]
  node_upstream_source[("Source repo<br/>upstream code")]
  node_tor_gitlab(("Tor GitLab<br/>upstream host"))
  node_users(("Users<br/>audience"))
  node_maintainers(("Maintainers<br/>team"))
  node_slack(("Slack<br/>chatops"))
end

node_readme -->|"guides"| node_users
node_readme -->|"points to"| node_upstream_source
node_readme -->|"references"| node_tor_gitlab
node_users -->|"file issues"| node_issue_config
node_issue_config -->|"offers"| node_issue_webcompat
node_issue_config -->|"offers"| node_issue_browser
node_issue_config -->|"offers"| node_issue_feature
node_issue_config -->|"offers"| node_issue_thirdparty
node_issue_webcompat -->|"routes to"| node_maintainers
node_issue_browser -->|"routes to"| node_maintainers
node_issue_feature -->|"routes to"| node_maintainers
node_issue_thirdparty -->|"routes to"| node_maintainers
node_release_workflow -->|"runs"| node_draft_release
node_draft_release -->|"handoff"| node_maintainers
node_release_workflow -->|"invokes"| node_slack_hook
node_slack_hook -->|"notifies"| node_slack
node_release_workflow -->|"coordinates with"| node_upstream_source

click node_readme "https://github.com/mullvad/mullvad-browser/blob/main/README.md"
click node_issue_webcompat "https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/1-webcompat.yml"
click node_issue_browser "https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/2-browser.yml"
click node_issue_feature "https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/3-feature.yml"
click node_issue_thirdparty "https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/4-thirdparty.yml"
click node_issue_config "https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/config.yml"
click node_release_workflow "https://github.com/mullvad/mullvad-browser/blob/main/.github/workflows/new_browser_release.yml"
click node_draft_release "https://github.com/mullvad/mullvad-browser/blob/main/scripts/create_draft_release.sh"
click node_slack_hook "https://github.com/mullvad/mullvad-browser/blob/main/scripts/trigger_slack_webhook.sh"

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_readme toneBlue
class node_issue_webcompat,node_issue_browser,node_issue_feature,node_issue_thirdparty,node_issue_config toneAmber
class node_release_workflow,node_draft_release,node_slack_hook toneMint
class node_upstream_source,node_tor_gitlab,node_users,node_maintainers,node_slack toneRose
```

## Components

### Documentation

Public-facing product and support entry point

- [README](https://github.com/mullvad/mullvad-browser/blob/main/README.md): docs · Product overview, support, verification, and source pointers · `README.md`

### Issue Intake

Structured user feedback and triage boundary

- [Webcompat](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/1-webcompat.yml): issue form · Issue form for site compatibility reports · `.github/ISSUE_TEMPLATE/1-webcompat.yml`
- [Browser bug](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/2-browser.yml): issue form · Issue form for browser behavior problems · `.github/ISSUE_TEMPLATE/2-browser.yml`
- [Feature request](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/3-feature.yml): issue form · Issue form for enhancement requests · `.github/ISSUE_TEMPLATE/3-feature.yml`
- [Third-party](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/4-thirdparty.yml): issue form · Issue form for third-party or bundled component issues · `.github/ISSUE_TEMPLATE/4-thirdparty.yml`
- [Template config](https://github.com/mullvad/mullvad-browser/blob/main/.github/ISSUE_TEMPLATE/config.yml): issue routing · Controls issue form chooser and intake defaults · `.github/ISSUE_TEMPLATE/config.yml`

### Release Ops

Automation and helpers for release preparation

- [Release workflow](https://github.com/mullvad/mullvad-browser/blob/main/.github/workflows/new_browser_release.yml): ci workflow · GitHub Actions workflow for browser release handling · `.github/workflows/new_browser_release.yml`
- [Draft release](https://github.com/mullvad/mullvad-browser/blob/main/scripts/create_draft_release.sh): release script · Helper for preparing draft release content · `scripts/create_draft_release.sh`
- [Slack hook](https://github.com/mullvad/mullvad-browser/blob/main/scripts/trigger_slack_webhook.sh): notify script · Webhook helper for outbound team notifications · `scripts/trigger_slack_webhook.sh`

### External Systems

Upstream source and notification targets outside this snapshot

- **Source repo**: upstream code · Actual browser source and release branches live elsewhere
- **Tor GitLab**: upstream host · Upstream GitLab location referenced by the README
- **Users**: audience · Report issues, verify downloads, and read project guidance
- **Maintainers**: team · Review issues and finalize release actions
- **Slack**: chatops · Notification target for release and operations events

## Connections

- README → Users: guides · Explains downloads, verification, support, and issue channels
- README → Source repo: points to · Directs readers to the real code source outside this snapshot
- README → Tor GitLab: references · Names the Tor Project GitLab as the source location
- Users → Template config: file issues · Start issue creation through the configured picker
- Template config → Webcompat: offers · Makes the web compatibility form available
- Template config → Browser bug: offers · Makes the browser bug form available
- Template config → Feature request: offers · Makes the feature request form available
- Template config → Third-party: offers · Makes the third-party form available
- Webcompat → Maintainers: routes to · Structured report enters maintainer triage
- Browser bug → Maintainers: routes to · Structured report enters maintainer triage
- Feature request → Maintainers: routes to · Structured request enters maintainer triage
- Third-party → Maintainers: routes to · Structured report enters maintainer triage
- Release workflow → Draft release: runs · Workflow likely prepares or publishes release materials
- Draft release → Maintainers: handoff · Draft artifacts are reviewed and finalized by humans
- Release workflow → Slack hook: invokes · Release automation can trigger notification delivery
- Slack hook → Slack: notifies · Sends outbound webhook messages to Slack
- Release workflow → Source repo: coordinates with · Release automation depends on code or artifacts maintained elsewhere
