True P2P Email on top of Yggdrasil Network for Desktop
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go 58.6%
  • TypeScript 38.3%
  • CSS 1%
  • JavaScript 0.9%
  • Shell 0.6%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-03 09:23:54 +03:00
assets/build Fix tray, build scripts 2025-12-26 14:15:57 +03:00
frontend fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
internal fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
.gitignore chore: ignore local AI-tool files 2026-11-02 23:52:44 +03:00
app.go fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
build-linux.sh Added portable mode - all data now stored in ./data/ directory next to executable. Automatic migration from legacy locations (AppData/~/.config) on first launch. Centralized version management in internal/version/version.go. Fixed: system tray behavior, backup restore error handling for wrong password, UI not updating after restore, database path after migration. Updated README files and added CHANGELOG.md. 2026-01-27 17:30:39 +03:00
build-windows.bat Added portable mode - all data now stored in ./data/ directory next to executable. Automatic migration from legacy locations (AppData/~/.config) on first launch. Centralized version management in internal/version/version.go. Fixed: system tray behavior, backup restore error handling for wrong password, UI not updating after restore, database path after migration. Updated README files and added CHANGELOG.md. 2026-01-27 17:30:39 +03:00
CHANGELOG.md fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
go.mod fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
go.sum fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00
LICENSE Initial commit 2025-12-19 18:23:51 +00:00
main.go Upd to 2.0.0 2025-12-19 21:25:39 +03:00
models.go Added the ability to adjust the size of received messages, similar to the mobile version. The yggmail library has been updated. The Backup item has been moved to settings. The correct instructions for configuring DeltaChat and other Email clients have been added. Notifications have been moved down, and the timeout has been reduced. The operation of the system tray and its translation have been adjusted. 2025-12-30 15:23:49 +03:00
README.md docs: note the move to https://git.shd.company/bubblegum/Tyr-Desktop 2026-11-03 09:23:54 +03:00
README.ru.md Unified visual design: Slate + Emerald palette, glassmorphism, dark-only theme. Redesigned sidebar, updated core components (Button, Input, GlassCard, Modal), rewrote CSS architecture, removed light/system theme options. Updated to v2.2.0 2026-02-04 20:58:06 +03:00
wails.json fix: add outbound queue management and reduce undeliverable timeout (#25) 2026-03-30 17:53:49 +03:00

Moved / Переехал: development continues at https://git.shd.company/bubblegum/Tyr-Desktop. This GitHub copy is archived.

Tyr Desktop

True Peer-to-Peer Email on Yggdrasil Network

License Go Version React TypeScript Wails Platform Downloads Visitors

English | Русский


🌐 What is Tyr Desktop?

We're taught that email must go through servers. Why? Because the Internet was built around centralized infrastructure. Every email you send travels through multiple servers - your provider's server, maybe a few relay servers, and finally your recipient's provider's server. Each hop is a potential point of surveillance, censorship, or failure.

Even "encrypted" email solutions still rely on these centralized servers. They encrypt the message content but the metadata - who you're talking to, when, how often - is visible to anyone watching the servers.

But there is a network, called Yggdrasil, that gives everyone a free IPv6 and doesn't need a blessing from your ISP. We finally have this possibility to use true P2P email. And moreover, this network has strong encryption to protect all data that flows from one IP to another.

Tyr Desktop brings true peer-to-peer email to your computer using these unusual conditions. Unlike traditional email clients, Tyr doesn't need:

  • ❌ Centralized mail servers (the connections are straight P2P)
  • ❌ Message encryption layers (the network takes care of that)
  • ❌ Port forwarding or STUN/TURN servers (Yggdrasil handles NAT traversal)

✨ Features

Feature Description
🔗 DeltaChat Integration One-click automatic setup with the best decentralized messenger
📧 Local SMTP/IMAP Server Complete mail server running directly on your desktop (ports 1025/1143)
🔐 Cryptographic Identity Automatic Ed25519 key generation - your mail identity cannot be spoofed
🌍 Yggdrasil Network Connect via configurable peers - censorship-resistant by design
🚀 Auto-Start on Boot Optional system startup integration for always-on availability
💾 Encrypted Backup & Restore Password-protected AES-256-GCM backups with optional key export
🔒 OS Keyring Integration Secure password storage via Windows Credential Manager / GNOME Keyring
💻 Modern Web UI React-based interface with Y2K Dark Theme and glassmorphic effects
🌓 System-Aware Themes Automatic light/dark theme switching based on OS preferences
⚡ Hot Reload Real-time peer management without service restart
📊 Real-Time Monitoring Live service status, peer connections, and log viewer

🛠️ How It Works

graph LR
    A[DeltaChat/Mail Client] -->|SMTP/IMAP| B[Tyr Desktop Service]
    B -->|Yggmail Protocol| C[Yggdrasil Network]
    C -->|P2P Encrypted| D[Recipient's Tyr]
    D -->|SMTP/IMAP| E[Recipient's Mail Client]

Tyr Desktop runs a complete email server right on your computer, using the Yggdrasil network for transport. The Yggmail mail server (built in Go) is embedded directly into the application.

It provides standard SMTP and IMAP protocols on localhost (127.0.0.1:1025 and 127.0.0.1:1143). Any email client can connect to these ports - but we recommend DeltaChat for the best P2P messaging experience.

📬 Mail Address Format

Every Tyr installation generates unique Ed25519 cryptographic keys. Your mail address is derived from your public key:

<64-hex-characters>@yggmail

This means your identity is cryptographically verifiable and cannot be spoofed.


System Requirements

Windows

  • Windows 10 or later (64-bit or 32-bit)
  • 150 MB free disk space
  • No administrator rights required
  • WebView2 runtime (usually pre-installed on Windows 11, auto-downloaded on Windows 10)

Linux

  • Ubuntu 22.04+, Debian 12+, or compatible distribution
  • X11 or Wayland desktop environment
  • 150 MB free disk space
  • WebKitGTK (usually pre-installed)

Installation

Windows

  1. Download from releases: Tyr-Desktop-{version}-windows-amd64.exe
  2. Place in any folder (e.g., C:\Program Files\Tyr)
  3. Run Tyr-Desktop-*.exe
  4. (Optional) Enable auto-start in Settings → General

Option 2: Build from Source

git clone https://github.com/JB-SelfCompany/Tyr-Desktop.git
cd Tyr-Desktop
build-windows.bat

Binary will be created at build\bin\

Linux

System Requirements

  • Required packages:
    • Ubuntu 22.04 / Debian 12 and earlier: build-essential libgtk-3-dev libwebkit2gtk-4.0-dev
    • Ubuntu 24.04+ / Debian 13+: build-essential libgtk-3-dev libwebkit2gtk-4.1-dev
# Download binary
wget https://github.com/JB-SelfCompany/Tyr-Desktop/releases/download/v2.0.0/Tyr-Desktop-2.0.0-linux-amd64

# Make executable
chmod +x Tyr-Desktop-*-linux-amd64

# Run
./Tyr-Desktop-*-linux-amd64

Option 2: Build from Source

# Install build dependencies
# For Ubuntu 24.04+ / Debian 13+:
sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.1-dev

# For Ubuntu 22.04 / Debian 12 and earlier:
# sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev

# Clone repository
git clone https://github.com/JB-SelfCompany/Tyr-Desktop.git
cd Tyr-Desktop

# Make build script executable
chmod +x build-linux.sh

# Build (script automatically detects and uses correct webkit version)
./build-linux.sh

Binary will be created at build/bin/

🔄 Updating

To update Tyr Desktop to a new version on both Windows and Linux:

  1. Download or build the new binary:

    • Download from Releases
    • Or build using scripts: build-windows.bat (Windows) / ./build-linux.sh (Linux)
  2. Replace the old executable with the new binary

  3. Start the application - your data will be preserved

Portable Mode (v2.1.0+)

All data is stored in ./data/ subdirectory next to the executable. When updating:

  • Your configuration, database, and settings are preserved automatically
  • Just replace the executable file, the data/ folder remains untouched

Upgrading from v2.0.x

When first launching v2.1.0+, your data will be automatically migrated from the old location (%APPDATA%\Tyr on Windows or ~/.config/tyr on Linux) to the new portable ./data/ directory.

Note

: No need to stop the service before updating. Simply close the application, replace the binary, and restart.

📱 Quick Start

First Run Setup

  1. Welcome Screen: Read the introduction about P2P email and click Next
  2. Password Setup:
    • Create a password (minimum 6 characters)
    • This password encrypts your Yggmail database
    • Stored securely in OS keyring (Windows Credential Manager / GNOME Keyring)
  3. Peer Configuration:
    • Default peer is pre-configured: tcp://bra.zbin.eu:7743
    • Add custom peers if needed (format: tcp://host:port or tls://host:port)
  4. Complete: Service initializes and dashboard opens

Setting up DeltaChat

  1. Start Tyr Desktop and complete the onboarding
  2. Start the Yggmail service from the dashboard
  3. Install DeltaChat Desktop
  4. In Tyr's dashboard, click "Setup DeltaChat"
  5. Tyr will automatically open DeltaChat with pre-configured settings
  6. Complete the setup and start chatting!

Option 2: Manual Setup

If automatic setup doesn't work:

  1. Complete Tyr onboarding and start the service
  2. Copy your mail address from Tyr's dashboard (looks like abc123...@yggmail)
  3. In DeltaChat, create a new profile
  4. Select "Advanced" → "Use a different server"
  5. Enter your Yggmail address and the password you set in Tyr
  6. Server settings will auto-configure to localhost
  7. Tap "✓" to complete setup

Important: Tyr must be running for DeltaChat to send and receive messages. Enable auto-start in Settings for seamless experience.

Usage

Main Dashboard

  • Service Status: Shows if Yggmail service is running/stopped/error
  • Mail Address: Your cryptographic email address (based on Ed25519 public key)
    • Format: <64-char-hex-pubkey>@yggmail
    • Click "Copy" to copy to clipboard
  • DeltaChat Setup: Click to auto-configure DeltaChat mail client
  • Server Info: Local SMTP (127.0.0.1:1025) and IMAP (127.0.0.1:1143) addresses
  • Connected Peers: Real-time list of active Yggdrasil peer connections
  • Start/Stop Service: Control Yggmail service lifecycle

Peer Management

Access via Dashboard or Settings → Network:

  • Add Peer: Enter peer URL (e.g., tcp://example.com:7743)
  • Enable/Disable: Toggle peers without removing them
  • Delete: Remove peer from list
  • Connection Status: Green = connected, gray = disconnected
  • Hot Reload: Changes apply immediately without service restart

Settings

General

  • Auto-start: Launch Tyr on system startup
  • Language: Choose between English and Russian
  • Theme: Light, Dark, or System-based

Network

  • Manage Peers: Add, remove, enable/disable Yggdrasil peers
  • Peer Discovery: Browse recommended peers by region

Security

  • Change Password: Update Yggmail database encryption password
  • Log Collection: Enable detailed logging for troubleshooting

Backup & Restore

Create Backup:

  • Password-protected AES-256-GCM encrypted backup
  • Optionally include mail database (yggmail.db)
  • Saved as .tyrbackup file

Restore Backup:

  • Select .tyrbackup file
  • Enter backup password
  • Restores configuration and optionally database

Mail Client Configuration

  1. Click "Setup DeltaChat" on dashboard
  2. DeltaChat opens with auto-configuration URL
  3. Password is pre-filled
  4. Start chatting!

Manual Configuration (Thunderbird, K-9 Mail, etc.)

  • Email Address: Your Yggmail address from dashboard
  • Password: Your Yggmail password
  • IMAP Server: 127.0.0.1, Port 1143, No SSL/TLS
  • SMTP Server: 127.0.0.1, Port 1025, No SSL/TLS
  • Authentication: Normal password

Note: No SSL/TLS because connections are localhost-only. All peer-to-peer traffic is encrypted by Yggdrasil.

System Tray

Tyr runs in the system tray (notification area):

  • Left Click: Show/Hide main window
  • Right Click: Context menu
    • Show: Restore main window
    • Settings: Open settings
    • Quit: Exit application

Important: Closing the main window minimizes to tray. Use "Quit" from tray menu to fully exit.

Configuration Files (Portable Mode)

Starting from version 2.1.0, Tyr Desktop operates in portable mode. All data is stored in a data/ subdirectory next to the executable, making the application fully portable - just copy the folder to move your installation.

File Structure

Tyr-Desktop.exe (or Tyr-Desktop on Linux)
data/
├── config.toml              # Configuration file
├── yggmail.db               # Mail database
├── yggmail.db.maildata/     # Mail content and attachments
│   ├── INBOX/
│   ├── Sent/
│   ├── Drafts/
│   ├── Outbox/
│   └── Trash/
├── logs/                    # Application logs
└── cache/                   # Cache files

Password Storage

  • Windows: Windows Credential Manager (service: Tyr, user: default)
  • Linux: GNOME Keyring / KWallet (service: Tyr, user: default)
    • Fallback: ./data/.password (AES-encrypted)

Migration from Previous Versions

When upgrading from version 2.0.x, Tyr will automatically migrate your data from the old location:

  • Windows: %APPDATA%\Tyr → ./data/
  • Linux: ~/.config/tyr → ./data/

The old directory is removed after successful migration.

Troubleshooting

Service won't start

  • Check peers: Ensure at least one peer is enabled in Settings → Network → Manage Peers
  • Check logs: Settings → Logs
  • Restart service: Stop and start again from dashboard

Password errors

  • Linux only: If keyring unavailable, password stored in encrypted file
  • Reset: Delete config file and restart (creates new identity)

DeltaChat won't connect

  • Verify service is running: Dashboard should show "Running" status
  • Check ports: Ensure SMTP 1025 and IMAP 1143 are not blocked by firewall
  • Manual config: Copy DCLOGIN URL from dashboard and open in browser

Backup/Restore fails

  • Check password: Minimum 8 characters for backup password
  • Database too large: Try backup without database option
  • Permissions: Ensure write access to backup location

Auto-start not working

  • Windows: Check registry key exists: regedit → HKCU\Software\Microsoft\Windows\CurrentVersion\Run
  • Linux: Check desktop entry: ls ~/.config/autostart/Tyr.desktop
  • Executable path: Verify path in autostart entry points to correct location

Building from Source

Prerequisites

  • Go 1.25 or later
  • Node.js 18+ and npm
  • Wails CLI: Install with go install github.com/wailsapp/wails/v2/cmd/wails@latest
  • C compiler:
    • Windows: MinGW-w64 or MSVC
    • Linux: gcc (usually pre-installed)

WebView Requirements

Windows:

  • WebView2 runtime (included in Windows 11, auto-installed on first run in Windows 10)

Linux:

  • Ubuntu 22.04 / Debian 12 and earlier:

    sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev
    
  • Ubuntu 24.04+ / Debian 13+:

    sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.1-dev
    

    When building on Ubuntu 24.04+, use the webkit2_41 build tag:

    wails build -tags webkit2_41
    

Build Commands

# Install frontend dependencies
cd frontend && npm install && cd ..

# Development mode (hot reload)
wails dev

# Production build
wails build

# Platform-specific scripts
# Windows:
build-windows.bat

# Linux:
./build-linux.sh

Output locations:

  • Windows: build/bin/Tyr-Desktop.exe
  • Linux: build/bin/Tyr-Desktop

Development Server

The Wails dev server runs on http://localhost:34115 with hot reload for frontend changes. Go methods are accessible from browser devtools.

Command-Line Arguments

  • --minimized - Start application minimized to system tray (used by autostart)

Security Considerations

  • Localhost IMAP/SMTP: No SSL/TLS - connections are localhost-only
  • Peer-to-Peer Encryption: All Yggdrasil traffic is end-to-end encrypted
  • Password Storage: Uses OS keyring (Windows Credential Manager / Secret Service)
  • Backup Encryption: AES-256-GCM with PBKDF2 (100,000 iterations)
  • No Telemetry: No data collection or external connections except Yggdrasil peerss

🔧 Technical Details

Component Details
Backend Go 1.25+
Frontend React 19, TypeScript 5.9
Framework Wails v2.11
State Management Zustand
Routing React Router v6
Styling TailwindCSS with Y2K Dark Theme
Animations Framer Motion
Mail Server Yggmail (Go library, direct integration)
Network Yggdrasil overlay mesh network
Encryption AES-256-GCM (backups), OS Keyring (passwords), Yggdrasil (network)
Localization English, Russian (i18next)
Platforms Windows 10+, Linux (X11/Wayland)

  • Tyr Android: P2P email for Android devices - same protocol, mobile experience
  • Yggmail: The mail transfer agent that powers Tyr
  • Mimir: P2P messenger on Yggdrasil (sister project)
  • Yggdrasil Network: The mesh network infrastructure
  • DeltaChat: Recommended email-based messenger client

🌟 Why P2P Email Matters

Censorship Circumvention: Connect to any of hundreds of available Yggdrasil nodes, host your own, or even build a private network. Email freedom is literally in your hands.

Privacy by Design: No metadata collection, no server logs, no third-party surveillance. Your conversations belong to you.

Decentralization: No single point of failure, no corporate control. True peer-to-peer architecture.


📄 License

Tyr Desktop is open source software. The Yggmail library uses Mozilla Public License v. 2.0.

See LICENSE file for full details.


Made with ❤️ by JB-SelfCompany