# 1eezzy/party-p2p architecture

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

- Interactive diagram: https://gitdiagram.com/1eezzy/party-p2p
- Repository: https://github.com/1eezzy/party-p2p

## Overview

Party P2P is an Electron app for party-based text chat, voice, and screen sharing. The main user workflow runs through the chat interface: participants join a party, use text or voice channels, and communicate directly over P2P connections, with a local server coordinating party membership and signaling. The app also provides profile, activity, and audio controls, plus a Windows updater. The sampled files show the main-to-server/store wiring; some renderer-to-IPC and updater launch details are not fully visible, so those relationships are omitted or marked unverified.

Main entry points: [`main.js`](https://github.com/1eezzy/party-p2p/blob/main/main.js) (App controller), [`renderer.js`](https://github.com/1eezzy/party-p2p/blob/main/renderer.js) (Chat and calls), [`server.js`](https://github.com/1eezzy/party-p2p/blob/main/server.js) (Party server), [`updater/Program.cs`](https://github.com/1eezzy/party-p2p/blob/main/updater/Program.cs) (Windows updater)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Party interface"]
  node_renderer["Chat and calls<br/>[renderer.js]"]
  node_workspace["Workspace views<br/>[workspace.js]"]
end

subgraph group_runtime["Party runtime"]
  node_bridge["Electron bridge<br/>[preload.js]"]
  node_main["App controller<br/>[main.js]"]
  node_server["Party server<br/>[server.js]"]
end

subgraph group_persistence["Local persistence"]
  node_store[("Party data store<br/>[party-store.js]")]
end

subgraph group_updates["Windows updates"]
  node_updater["Windows updater<br/>[Program.cs]"]
end

node_participant(("Participant"))
node_peers(("Other participants"))
node_github["GitHub releases"]

node_participant -->|"uses"| node_renderer
node_main -->|"starts"| node_server
node_main -->|"persists through"| node_store
node_main -->|"supplies persistence callbacks"| node_server
node_server -->|"signals"| node_peers
node_renderer -.->|"communicates P2P"| node_peers
node_renderer -.->|"shares session views"| node_workspace
node_main -->|"checks releases"| node_github
node_main -.->|"launches helper"| node_updater
node_updater -->|"downloads releases"| node_github

click node_renderer "https://github.com/1eezzy/party-p2p/blob/main/renderer.js"
click node_workspace "https://github.com/1eezzy/party-p2p/blob/main/workspace.js"
click node_bridge "https://github.com/1eezzy/party-p2p/blob/main/preload.js"
click node_main "https://github.com/1eezzy/party-p2p/blob/main/main.js"
click node_server "https://github.com/1eezzy/party-p2p/blob/main/server.js"
click node_store "https://github.com/1eezzy/party-p2p/blob/main/party-store.js"
click node_updater "https://github.com/1eezzy/party-p2p/blob/main/updater/Program.cs"

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_renderer,node_workspace toneBlue
class node_bridge,node_main,node_server toneAmber
class node_store toneMint
class node_updater toneRose
class node_participant,node_peers,node_github toneIndigo
```

## Components

### Party interface

- [Chat and calls](https://github.com/1eezzy/party-p2p/blob/main/renderer.js): `renderer.js`
- [Workspace views](https://github.com/1eezzy/party-p2p/blob/main/workspace.js): `workspace.js`

### Party runtime

- [Electron bridge](https://github.com/1eezzy/party-p2p/blob/main/preload.js): `preload.js`
- [App controller](https://github.com/1eezzy/party-p2p/blob/main/main.js): `main.js`
- [Party server](https://github.com/1eezzy/party-p2p/blob/main/server.js): `server.js`

### Local persistence

- [Party data store](https://github.com/1eezzy/party-p2p/blob/main/party-store.js): `party-store.js`

### Windows updates

- [Windows updater](https://github.com/1eezzy/party-p2p/blob/main/updater/Program.cs): `updater/Program.cs`

### Other components

- **Participant**
- **Other participants**
- **GitHub releases**

## Connections

- Participant → Chat and calls: uses (evidence: `README.md`)
- App controller → Party server: starts (evidence: `main.js`)
- App controller → Party data store: persists through (evidence: `main.js`)
- App controller → Party server: supplies persistence callbacks (evidence: `main.js`)
- Party server → Other participants: signals (evidence: `server.js`)
- Chat and calls → Other participants: communicates P2P (evidence: `README.md`)
- Chat and calls → Workspace views: shares session views
- App controller → GitHub releases: checks releases (evidence: `main.js`)
- App controller → Windows updater: launches helper
- Windows updater → GitHub releases: downloads releases (evidence: `README.md`)
