# linuxmint/warpinator architecture

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

- Interactive diagram: https://gitdiagram.com/linuxmint/warpinator
- Repository: https://github.com/linuxmint/warpinator

## Overview

Warpinator is a Linux desktop application for discovering nearby peers and sending or receiving files over a local network. Its main runtime spans the desktop entry point, peer/server coordination, RPC transfer operations, and security support. The sampled server excerpt confirms its use of Zeroconf, generated gRPC services, authentication, and transfer-operation handling; the source index confirms several additional server dependencies. UI and preference wiring is not shown, so those connections are omitted.

Main entry points: [`src/server.py`](https://github.com/linuxmint/warpinator/blob/master/src/server.py) (Peer server), [`src/warpinator.py`](https://github.com/linuxmint/warpinator/blob/master/src/warpinator.py) (Warpinator application), [`src/zeroconf-0.147.0/src/zeroconf/_core.py`](https://github.com/linuxmint/warpinator/blob/master/src/zeroconf-0.147.0/src/zeroconf/_core.py) (Service discovery), [`src/transfers.py`](https://github.com/linuxmint/warpinator/blob/master/src/transfers.py) (Transfer handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop application"]
  node_app["Warpinator application<br/>[warpinator.py]"]
  node_preferences["Preferences<br/>[prefs.py]"]
  node_misc["Main-loop utilities<br/>[misc.py]"]
end

subgraph group_discovery["Peer discovery"]
  node_server["Peer server<br/>[server.py]"]
  node_zeroconf["Service discovery<br/>[_core.py]"]
  node_remote["Remote peers<br/>[remote.py]"]
  node_registration["Peer registration"]
end

subgraph group_transfer["Transfer service"]
  node_transfer_ops["Transfer operations<br/>[ops.py]"]
  node_transfers["Transfer handling<br/>[transfers.py]"]
  node_grpc["Warp gRPC API<br/>[server.py]"]
end

subgraph group_security["Security and isolation"]
  node_auth["Authentication<br/>[auth.py]"]
  node_landlock["Filesystem isolation<br/>[porcelain.py]"]
end

node_user(("User"))
node_peer(("Nearby Warpinator peer"))

node_user -.->|"uses"| node_app
node_app -.->|"starts"| node_server
node_server -->|"registers services"| node_zeroconf
node_server -->|"registers RPCs"| node_grpc
node_server -->|"gets credentials"| node_auth
node_server -->|"handles operations"| node_transfer_ops
node_server -->|"updates peer operations"| node_remote
node_zeroconf -.->|"announces services"| node_peer
node_grpc -.->|"serves transfer RPCs"| node_peer
node_user -.->|"configures"| node_preferences
node_transfers -.->|"isolates writes"| node_landlock

click node_app "https://github.com/linuxmint/warpinator/blob/master/src/warpinator.py"
click node_preferences "https://github.com/linuxmint/warpinator/blob/master/src/prefs.py"
click node_misc "https://github.com/linuxmint/warpinator/blob/master/src/misc.py"
click node_server "https://github.com/linuxmint/warpinator/blob/master/src/server.py"
click node_zeroconf "https://github.com/linuxmint/warpinator/blob/master/src/zeroconf-0.147.0/src/zeroconf/_core.py"
click node_remote "https://github.com/linuxmint/warpinator/blob/master/src/remote.py"
click node_registration "https://github.com/linuxmint/warpinator/blob/master/src/remote_registration.py"
click node_transfer_ops "https://github.com/linuxmint/warpinator/blob/master/src/ops.py"
click node_transfers "https://github.com/linuxmint/warpinator/blob/master/src/transfers.py"
click node_grpc "https://github.com/linuxmint/warpinator/blob/master/src/server.py"
click node_auth "https://github.com/linuxmint/warpinator/blob/master/src/auth.py"
click node_landlock "https://github.com/linuxmint/warpinator/blob/master/src/landlock/porcelain.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_app,node_preferences,node_misc,node_user toneBlue
class node_server,node_zeroconf,node_remote,node_registration toneAmber
class node_transfer_ops,node_transfers,node_grpc toneMint
class node_auth,node_landlock toneRose
class node_peer toneIndigo
```

## Components

### Desktop application

- [Warpinator application](https://github.com/linuxmint/warpinator/blob/master/src/warpinator.py): `src/warpinator.py`
- [Preferences](https://github.com/linuxmint/warpinator/blob/master/src/prefs.py): `src/prefs.py`
- [Main-loop utilities](https://github.com/linuxmint/warpinator/blob/master/src/misc.py): `src/misc.py`

### Peer discovery

- [Peer server](https://github.com/linuxmint/warpinator/blob/master/src/server.py): `src/server.py`
- [Service discovery](https://github.com/linuxmint/warpinator/blob/master/src/zeroconf-0.147.0/src/zeroconf/_core.py): `src/zeroconf-0.147.0/src/zeroconf/_core.py`
- [Remote peers](https://github.com/linuxmint/warpinator/blob/master/src/remote.py): `src/remote.py`
- [Peer registration](https://github.com/linuxmint/warpinator/blob/master/src/remote_registration.py): `src/remote_registration.py`

### Transfer service

- [Transfer operations](https://github.com/linuxmint/warpinator/blob/master/src/ops.py): `src/ops.py`
- [Transfer handling](https://github.com/linuxmint/warpinator/blob/master/src/transfers.py): `src/transfers.py`
- [Warp gRPC API](https://github.com/linuxmint/warpinator/blob/master/src/server.py): `src/server.py`

### Security and isolation

- [Authentication](https://github.com/linuxmint/warpinator/blob/master/src/auth.py): `src/auth.py`
- [Filesystem isolation](https://github.com/linuxmint/warpinator/blob/master/src/landlock/porcelain.py): `src/landlock/porcelain.py`

### Other components

- **User**
- **Nearby Warpinator peer**

## Connections

- User → Warpinator application: uses
- Warpinator application → Peer server: starts
- Peer server → Service discovery: registers services (evidence: `src/server.py`)
- Peer server → Warp gRPC API: registers RPCs (evidence: `src/server.py`)
- Peer server → Authentication: gets credentials (evidence: `src/server.py`)
- Peer server → Transfer operations: handles operations (evidence: `src/server.py`)
- Peer server → Remote peers: updates peer operations (evidence: `src/server.py`)
- Service discovery → Nearby Warpinator peer: announces services
- Warp gRPC API → Nearby Warpinator peer: serves transfer RPCs
- User → Preferences: configures
- Transfer handling → Filesystem isolation: isolates writes
