PaneCord
PaneCord is an unofficial, open-source Discord client for macOS 26, built to behave like a system app rather than a website in a window. A Rust core handles QR sign-in, the gateway connection and REST with rate limiting. The SwiftUI and AppKit interface uses native lists, keyboard shortcuts and Liquid Glass.
Project facts
- Role
- Architecture, Rust core, Swift interface, documentation and CI.
- Timeline
- November 2026 · early stage
- Team
- Solo project · open source

How it works
How data moves through the app
- QRApproved on the phone, token decrypted locally
- KeychainSession stored in the macOS Keychain
- Rust coreGateway, REST, rate limits, account projection
- UniFFITyped records and a change stream into Swift
- SwiftUINative lists, shortcuts and Liquid Glass
Rust decides what to send and how to read the response. Swift makes the connection and draws the interface.
Problem
The official Mac client is a web app running in Electron. A native client still has to do everything it does: sign in without asking for a password, and keep a gateway connection alive with compression, resume and rate limits. Long message histories also must not slow down the UI thread.
Key decision
Split the work. Rust owns the protocol logic and is tested against fake transports. Swift owns networking (URLSession), the Keychain and the UI. UniFFI is the boundary between them.
How I built it
Sign-in uses Discord’s remote auth. The app shows a QR code, the user approves it on their phone, and the token is decrypted with a locally generated RSA key and stored in the macOS Keychain. The gateway decodes the zstd stream, keeps the heartbeat, resumes sessions and reconnects with backoff. The message list is an NSTableView with SwiftUI rows, cached row heights and a stable scroll position while older history loads. A demo mode runs the whole interface on sample data, with no account and no network.
Highlights
- QR sign-in: the app never asks for a password or a token.
- The session lives in the macOS Keychain and is restored on next launch.
- REST with per-route, per-bucket and global rate limits. Failed POSTs are never retried automatically.
- Message list on NSTableView, grouped by author with day separators.
- ⌘K quick switcher, light and dark appearance, and a translucent Liquid Glass interface.
- The client identifies itself as PaneCord and does not impersonate the official app.
Architecture
- Core: a Rust workspace with separate crates for auth, gateway, REST, models, account state and FFI, on a shared Tokio runtime.
- Bridge: UniFFI generates the Swift bindings, and Swift implements HTTP and WebSocket transports as foreign traits.
- App: SwiftUI with NavigationSplitView, and AppKit where list performance matters.
- Media: CDN avatars and icons are kept in memory only, with a host allowlist and a size limit.
Limitations
- Early stage: no voice, video, uploads, message editing or notifications yet.
- Some visible controls only work in demo mode for now.
- PaneCord is not affiliated with Discord. Third-party clients break Discord’s Terms of Service, and the repository says so clearly.
- The app is not notarized, so you build it from source on your own Mac.
Outcome
PaneCord signs in to a real account, loads servers, channels, DMs and history, and receives new messages live. The repository lists what works, what still needs checking on a live account and what is missing.
Screenshots

