[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111129":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},111129,"Serein","ViceVerse-cz\u002FSerein","ViceVerse-cz","Tiny, Performant & 100% Native client for Discord made in Rust",null,"https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein","Rust",1742,181,7,124,0,35,373,537,292,101.75,false,"main","2026-11-23 15:22:53","2026-11-23 18:19:50","# Serein\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\">\n    \u003Cimg src=\"docs\u002Fpreview.png\" alt=\"Serein Native Discord Client\" width=\"900\" style=\"max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);\" \u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>A lightweight, native Discord desktop client written in Rust, powered by egui and wgpu.\u003C\u002Fstrong>\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FUqTDGCENaN\">💬 Join our Discord server for updates\u003C\u002Fa>\n\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#downloads--installation\">\u003Cstrong>📦 Downloads\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#highlights\">\u003Cstrong>⚡ Highlights\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#feature-showcase\">\u003Cstrong>✨ Showcase\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#measured-performance-vs-official-discord\">\u003Cstrong>📊 Benchmarks\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#quick-start\">\u003Cstrong>🛠️ Quick Start\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#feature-matrix\">\u003Cstrong>📋 Features\u003C\u002Fstrong>\u003C\u002Fa> &nbsp;•&nbsp;\n  \u003Ca href=\"#architecture-overview\">\u003Cstrong>🏗️ Architecture\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FUqTDGCENaN\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-Join%20our%20Discord%20server%20for%20updates-5865F2?logo=discord&logoColor=white\" alt=\"Discord\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FViceVerse-cz\u002FSerein?label=release&color=blue\" alt=\"GitHub Release\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"Cargo.toml\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frust-1.99.1_pinned-blue.svg?logo=rust\" alt=\"Rust 1.99.1 Pinned\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"crates\u002Fui\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fui-egui%20%2F%20wgpu-orange.svg\" alt=\"UI egui\u002Fwgpu\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"docs\u002Fplatform-support.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-macOS%20%7C%20Linux%20%7C%20Windows-informational.svg\" alt=\"Platform Support\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"LICENSE-MIT\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT%20OR%20Apache--2.0-green.svg\" alt=\"License: MIT or Apache-2.0\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n> [!WARNING]\n> **Unofficial and not endorsed by Discord.**\n> Serein communicates directly with Discord's public gateway and REST endpoints for your existing account. Automating normal accounts outside the official OAuth2\u002Fbot API violates Discord's Terms of Service and carries risk of account termination. Technical interoperability does not imply platform approval. Review the [compatibility matrix](docs\u002Fdiscord-compatibility.md) and [authentication guide](docs\u002Fauthentication.md) before use.\n\n---\n\n## Downloads & Installation\n\nPre-compiled releases for macOS, Linux, and Windows are published on GitHub [Releases](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases).\n\n| Platform | Format | Architectures | Details |\n|---|---|---|---|\n| **Windows** | `-Setup.exe`, `.zip` | `x86_64`, `aarch64` | Per-user NSIS installer (recommended) or standalone portable archive |\n| **macOS** | Homebrew Cask, `.zip`, Nix flake | Apple Silicon (`aarch64`) | Signed and notarized `.app` bundle; the Nix build is unsigned |\n| **Linux** | Flatpak (recommended), Repositories (`apt`, `dnf`, `zypper`, `pacman`), Gentoo ebuild, Nix flake, `.AppImage` | `x86_64` | Flatpak with automatic updates; signed package repositories; portable AppImage |\n\n---\n\n\u003Cdetails open>\n\u003Csummary>\u003Ch3>🐧 Linux (Flatpak, Repositories, Gentoo, Nix, AppImage)\u003C\u002Fh3>\u003C\u002Fsummary>\n\n#### 1. Flatpak (Recommended)\n\nFlatpak is the recommended distribution format for Linux, featuring sandbox isolation, bundled GNOME\u002FWebKit runtimes, and automatic background updates.\n\n- **One-Click Repository Install (Automatic Updates)**:\n  ```sh\n  flatpak install --user https:\u002F\u002Fviceverse-cz.github.io\u002FSerein\u002Fflatpak\u002Fserein.flatpakref\n  ```\n  Once installed, your desktop software store (GNOME Software, KDE Discover) or `flatpak update` will automatically discover and install updates.\n\n- **Standalone Offline Bundle**:\n  Download `Serein-linux.flatpak` from [Releases](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases):\n  ```sh\n  flatpak install --user .\u002FSerein-linux.flatpak\n  flatpak run cz.viceverse.serein\n  ```\n\nSee [Flatpak guide](packaging\u002Fflatpak\u002FREADME.md) for sandbox permissions and source build details.\n\n#### 2. Native Package Repositories (apt, dnf, zypper, pacman)\n\nConfigure the signed package repository for your distribution with one command:\n```sh\ncurl -fsSL https:\u002F\u002Fviceverse-cz.github.io\u002FSerein\u002Fsetup.sh | sh\n```\nThe script detects your distribution (Ubuntu\u002FDebian, Fedora, openSUSE, Arch Linux), cryptographically verifies the GPG signing key, and configures the repository with an option to install immediately.\n\nAfter setup, manage Serein with your native package manager:\n```sh\n# Ubuntu \u002F Debian: sudo apt install serein\n# Fedora:          sudo dnf install serein\n# openSUSE:        sudo zypper install serein\n# Arch Linux:      sudo pacman -S serein\n```\nYour normal system updates (`apt upgrade`, `dnf upgrade`, `zypper update`, `pacman -Syu`) will keep Serein updated. See [Signed package repositories](packaging\u002Frepositories\u002FREADME.md) for manual GPG verification steps.\n\n#### 3. Gentoo (source or binary)\n\nGentoo users can install Serein from the [vitaly-zdanevich-overlay](https:\u002F\u002Fgithub.com\u002Fvitaly-zdanevich\u002Fgentoo-overlay) overlay. It provides a source ebuild ([net-im\u002Fserein](https:\u002F\u002Fgithub.com\u002Fvitaly-zdanevich\u002Fgentoo-overlay\u002Ftree\u002Fmain\u002Fnet-im\u002Fserein)) and a prebuilt amd64 ebuild ([net-im\u002Fserein-bin](https:\u002F\u002Fgithub.com\u002Fvitaly-zdanevich\u002Fgentoo-overlay\u002Ftree\u002Fmain\u002Fnet-im\u002Fserein-bin)).\n\n```sh\nsudo eselect repository add vitaly-zdanevich-overlay git https:\u002F\u002Fgithub.com\u002Fvitaly-zdanevich\u002Fgentoo-overlay.git\nsudo emaint sync -r vitaly-zdanevich-overlay\necho 'net-im\u002Fserein ~amd64' | sudo tee \u002Fetc\u002Fportage\u002Fpackage.accept_keywords\u002Fserein\nsudo emerge --ask net-im\u002Fserein\n```\n\nUse `net-im\u002Fserein-bin` in the keyword file and emerge command to install the prebuilt binary instead. The source ebuild requires Rust 1.99 or newer or newer. The binary ebuild targets amd64 systems with glibc 2.43 or newer. The two ebuilds install the same files, so choose one.\n\n#### 4. Nix (flake)\n\nNix installs are updated through Nix, not the in-app updater. On macOS the build produces an unsigned, non-notarized `Serein.app`. See the [Nix package guide](packaging\u002Fnix\u002FREADME.md) for the development shell and details.\n\nThe repository flake builds Serein from source for `x86_64-linux` and `aarch64-darwin`:\n\n```sh\nnix run github:ViceVerse-cz\u002FSerein#serein\nnix profile install github:ViceVerse-cz\u002FSerein#serein\n```\n\nOr declaring it in the flake\n\nBoth modules below take `inputs` as an argument, so your flake must pass it through `specialArgs` (NixOS) and `extraSpecialArgs` (Home Manager). Without this, importing the modules fails with a missing `inputs` argument.\n\n`flake.nix`\n```nix\n{\n    inputs = {\n        nixpkgs.url = \"github:NixOS\u002Fnixpkgs\u002Fnixos-unstable\";\n        home-manager = {\n            url = \"github:nix-community\u002Fhome-manager\";\n            inputs.nixpkgs.follows = \"nixpkgs\";\n        };\n        serein = {\n            url = \"github:ViceVerse-cz\u002FSerein\";\n            inputs.nixpkgs.follows = \"nixpkgs\";\n        };\n    };\n\n    outputs = { nixpkgs, home-manager, ... }@inputs: {\n        # NixOS\n        nixosConfigurations.hostname = nixpkgs.lib.nixosSystem {\n            system = \"x86_64-linux\";\n            specialArgs = { inherit inputs; };\n            modules = [ .\u002Fconfiguration.nix ];\n        };\n\n        # Standalone Home Manager\n        homeConfigurations.username = home-manager.lib.homeManagerConfiguration {\n            pkgs = nixpkgs.legacyPackages.x86_64-linux;\n            extraSpecialArgs = { inherit inputs; };\n            modules = [ .\u002Fhome-manager.nix ];\n        };\n    };\n}\n```\n\nIf you use Home Manager as a NixOS module instead, pass `inputs` through its own option:\n\n```nix\n{\n    nixosConfigurations.hostname = nixpkgs.lib.nixosSystem {\n        system = \"x86_64-linux\";\n        specialArgs = { inherit inputs; };\n        modules = [\n            .\u002Fconfiguration.nix\n            home-manager.nixosModules.home-manager\n            {\n                home-manager.extraSpecialArgs = { inherit inputs; };\n                home-manager.users.username = import .\u002Fhome-manager.nix;\n            }\n        ];\n    };\n}\n```\n\n`configuration.nix`\n```nix\n{\n    inputs,\n    pkgs,\n    ...\n}: {\n    environment.systemPackages = [\n        inputs.serein.packages.${pkgs.stdenv.hostPlatform.system}.default\n    ];\n}\n```\n\n`home-manager.nix`\n```nix\n{\n    inputs,\n    pkgs,\n    ...\n}: {\n    home.packages = [\n        inputs.serein.packages.${pkgs.stdenv.hostPlatform.system}.default\n    ];\n}\n```\n\n#### 5. Standalone AppImage (Portable)\n\nDownload `serein-\u003Cversion>-Linux-X64.AppImage` from [Releases](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases), make it executable, and run:\n```sh\nchmod +x .\u002Fserein-*-Linux-X64.AppImage\n.\u002Fserein-*-Linux-X64.AppImage\n```\nKeep the AppImage in a writable directory to receive in-app updates via **Settings → Updates**. Note that the AppImage uses host GTK4 and WebKitGTK 6.0 libraries; see [AppImage setup and runtime dependencies](packaging\u002Fappimage\u002FREADME.md) for host requirements.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Ch3>🪟 Windows (Installer, PowerShell, Portable)\u003C\u002Fh3>\u003C\u002Fsummary>\n\n#### 1. Setup Installer (Recommended)\nDownload the `Windows-X64-Setup.exe` or `Windows-ARM64-Setup.exe` asset for your system from [Releases](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases) and run it:\n- Installs per-user to `%LOCALAPPDATA%\\Programs\\Serein` without requiring administrator\u002FUAC elevation.\n- Automatically registers Start Menu shortcuts and configures AppUserModelID (`cz.viceverse.serein`) for native Windows toast notifications.\n- Registers in Windows Settings (Installed Apps \u002F Add or Remove Programs) with full uninstall support.\n- Fully compatible with in-app self-updates: updates automatically synchronize the registered version.\n\n#### 2. Standalone PowerShell Setup\nExtract the `Windows-X64.zip` or `Windows-ARM64.zip` asset for your system and run:\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\setup.ps1\n```\nTo uninstall later:\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\setup.ps1 -Uninstall\n```\n\n#### 3. Portable Archive\nExtract the `Windows-X64.zip` or `Windows-ARM64.zip` asset for your system anywhere and launch `serein.exe`. To enable native desktop notifications:\n```powershell\npowershell -File .\\install-notifications.ps1\n```\nRun the script from the extracted folder beside `serein.exe`. If PowerShell's `RemoteSigned` policy blocks the downloaded script, review it and run `Unblock-File -LiteralPath .\\install-notifications.ps1` in that folder before retrying. The Windows installer registers the shortcut automatically, so installed builds do not need this script.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Ch3>🍎 macOS (Homebrew Cask, Standalone .app)\u003C\u002Fh3>\u003C\u002Fsummary>\n\n#### Homebrew Cask\n```sh\nbrew tap ViceVerse-cz\u002Fserein\nbrew install --cask serein\n```\nThe cask lives in the small [`homebrew-serein`](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002Fhomebrew-serein) tap, so installing does not clone this repository. If you tapped the old URL, run `brew untap ViceVerse-cz\u002Fserein` first and tap again.\n\n#### Standalone Bundle\nDownload `serein-\u003Cversion>-macOS-ARM64.zip` from [Releases](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Freleases), unzip, and drag `Serein.app` to your `\u002FApplications` folder.\n\n\u003C\u002Fdetails>\n\n---\n\n## Highlights\n\n- ⚡ **Pure Native Performance:** Built with pure Rust, `egui`, and `wgpu`. Immediate-mode rendering with minimal idle CPU, low memory footprint, and instantaneous launch times—zero Electron, Node.js, or web runtime overhead.\n- 🌐 **Direct Gateway & REST Transports:** Direct connection to Discord's official endpoints with active rate-limiting cooldowns, heartbeat handling, reconnect\u002Fresume loops, and partial payload patching.\n- 🔒 **Secure OS Credential Storage:** Session tokens use your operating system's secure vault by default (macOS Keychain, Windows Credential Manager, or Linux Secret Service). Settings › Storage offers an explicit, unencrypted plaintext fallback when the keyring does not work.\n- 🛡️ **Ephemeral Authentication Webview:** Sign-in uses Discord's official hosted login page inside a temporary native webview (WKWebView, WebView2, or WebKitGTK) supporting email\u002Fpassword, QR login, and MFA. An origin-checked handoff secures the session credential and immediately terminates the webview.\n- 💾 **Bounded Local Persistence:** Recent chat history, drafts, image previews, settings, and diagnostics are stored in an account-isolated, bounded local SQLite database. All local data is strictly cleared upon explicit logout.\n- 🎙️ **Voice Calls, Video & Screen Sharing:** Complete native voice engine with 1-to-1 and group DM calls, server voice channels, push-to-talk, Sonora AEC3 acoustic echo cancellation, RNNoise noise suppression, Opus codec, and DAVE v1 end-to-end encryption. Includes native screen capture (macOS ScreenCaptureKit, Windows Graphics Capture, Linux portal\u002FPipeWire with VA-API\u002FNVENC hardware encoding and software fallback; Linux native capture remains unverified) and incoming stream & camera video playback with hardware-accelerated decoding (VideoToolbox, VA-API, DirectX).\n- 🧵 **Forum Channels & Active Threads:** Browse forum channels, view posts sorted by recent activity, read message threads with unread indicators, and create new forum posts directly in-app.\n- ⚙️ **Server Administration Suite:** Full server management interface including Server Profiles (banners, icons, traits, descriptions), custom sticker management, role editor with fine-grained permission matrix, paginated audit logs with action filters, invite manager with revocation, integrations and webhooks, and member moderation.\n- ✨ **GIF & Twemoji Picker:** Instant KLIPY GIF search with favorites and one-click sending, full Twemoji picker with search and quick-reactions, plus custom guild emojis.\n- 📎 **Multi-Attachment Batch Uploads:** Composer staging tray supporting multiple files of any type (PDF, ZIP, 3D STL, videos, audio, images) with file-type badges, thumbnails, size indicators, individual removal, and progress tracking.\n- 👤 **Native Profile Customization:** In-app profile editor for global display names, bios \u002F about me, pronouns, and custom accent colors with real-time live preview cards.\n- 🎨 **Extensions & Theme Shop:** Git-backed plugin engine and community theme shop with preview cards, color preset toggles, permission verification, and a built-in deleted-message retention protector.\n- 🎬 **Rich Media & Video Player:** Inline video playback for MOV, MP4, and WebM attachments where platform codecs are available, interactive seekable voice message waveforms, right-click media save\u002Fcopy context menus, and full-resolution image viewer modals.\n- ⌨️ **Keybinds & Shortcuts:** Built-in keybind reference sheet styled with raised keycaps, quick edit (`Up`), quick delete (`Backspace`), and intuitive keyboard navigation.\n- 🎮 **Rich Presence & Game Detection:** Built-in Discord IPC and WebSocket RPC servers, plus executable-based detection of running games, showing live game activities in member rosters, DM lists, and user profiles, with opt-in system tray integration.\n\n---\n\n## Feature Showcase\n\n| Voice Calls & Live Screen Sharing | User Settings & Profile Customizer |\n| :---: | :---: |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fvoice-calls-screenshare.png\" alt=\"Voice Calls & Screen Sharing\" width=\"450\" \u002F> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fuser-settings.png\" alt=\"User Settings & Profile Customizer\" width=\"450\" \u002F> |\n| **Server Administration & Profiles** | **Threads & Forum Channels** |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fserver-settings.png\" alt=\"Server Administration & Profiles\" width=\"450\" \u002F> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fthreads-forums.png\" alt=\"Threads & Forum Channels\" width=\"450\" \u002F> |\n| **Multi-File Attachment Uploads** | **GIFs & Twemoji Picker** |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Ffile-uploads.png\" alt=\"Multi-File Attachment Uploads\" width=\"450\" \u002F> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fgifs-and-emojis.png\" alt=\"GIFs & Twemoji Picker\" width=\"450\" \u002F> |\n\n---\n\n## Measured Performance vs. Official Discord\n\n> **Testing Scenario:** Browsing channels while joined in a Voice Channel (VC) and streaming screen at 60 FPS on macOS.\n\n| Metric | Official Discord Client (Electron) | Serein (Native Rust + egui\u002Fwgpu) | Advantage |\n|---|:---:|:---:|:---:|\n| **Memory (RAM)** | **1,178.4 MB** *(across 7 helper processes)* | **129.7 MB** *(single unified process)* | **~9× less memory (-89%)** |\n| **CPU Usage** | **22.8%** *(Renderer + Helper processes)* | **8.1%** | **~2.8× lower CPU (-64%)** |\n\n| Official Discord (Electron) | Serein (Native Rust) |\n| :---: | :---: |\n| **RAM: ~1,178.4 MB across 7 processes** | **RAM: 129.7 MB single process** |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fperf-discord-ram.png\" alt=\"Discord RAM Usage\" width=\"450\" \u002F> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fperf-serein-ram.png\" alt=\"Serein RAM Usage\" width=\"450\" \u002F> |\n| **CPU: 22.8% total** | **CPU: 8.1% total** |\n| \u003Cimg src=\"docs\u002Fscreenshots\u002Fperf-discord-cpu.png\" alt=\"Discord CPU Usage\" width=\"450\" \u002F> | \u003Cimg src=\"docs\u002Fscreenshots\u002Fperf-serein-cpu.png\" alt=\"Serein CPU Usage\" width=\"450\" \u002F> |\n\n---\n\n## Quick Start\n\n### Prerequisites\nRust **1.99.1** is pinned. Ensure you have the standard C\u002FC++ toolchain, CMake, Git and libclang installed for your platform (the bundled BoringSSL TLS library is built from source):\n- **macOS:** Xcode command-line tools (`xcode-select --install`)\n- **Linux:** GCC\u002FClang, ALSA development headers, `pkg-config`, GTK 4, WebKitGTK 6.0, fontconfig, and Vulkan drivers (see [Platform Support](docs\u002Fplatform-support.md))\n- **Windows:** Visual Studio C++ build tools and WebView2 Runtime\n\n### Running Locally\n\n```sh\n# 1. Run synthetic conversations; extension browsing uses public GitHub downloads\ncargo run --locked --features demo -- --demo\n\n# 2. Launch standard client with voice (uses saved login or official webview)\ncargo run --locked\n```\n\nDefault source builds keep SQLite, image caches, extensions and game metadata in the OS-local\n`serein-development` directory, isolated from installed Serein data and safe from `cargo clean`.\nSet `SEREIN_DATA_DIR` to another absolute path when development copies need separate data roots;\npackaged builds use the normal `serein` directory when the variable is absent. Login tokens remain\nin the operating-system credential store under separate development and packaged-build entries.\n\n### Workspace Commands\n\n```sh\n# Run full workspace validation (formatting, Clippy, tests, policy checks)\ncargo xtask check\n\n# Run release reducer benchmark\ncargo replay\n\n# Run authentication bridge JS test harness\nnode tests\u002Flogin-handoff.cjs\n\n# Package release including voice (macOS .app bundle, Linux .deb by default)\ncargo xtask package\n```\n\n---\n\n## Feature Matrix\n\n| Capability | Status | Notes |\n|---|---|---|\n| **Navigation & Guilds** | Implemented | Collapsible categories, cached icons, guild channels, forum channels, active threads, DM lists, People pane, and server channel context menus |\n| **Message Timeline** | Implemented | Virtualized variable-height rows, inline link confirmations, spoiler text\u002Fmedia reveal, unread message banners, deleted message protector, and local timezone timestamps |\n| **Markdown & System Messages** | Implemented | Bold, italics, code blocks, blockquotes, clickable links, and styled system events with tinted Phosphor icons and clickable member names |\n| **Reactions & Emojis** | Implemented | Twemoji rendering, native reaction counts, eight-emoji quick picker, full emoji picker integration, custom guild emojis, and add\u002Fremove reaction controls |\n| **GIFs & Media Search** | Implemented | KLIPY GIF picker with search, favorites category, and one-click direct sending |\n| **User Mentions & Autocomplete** | Implemented | Clickable user mentions with interactive composer autocompletion and visual highlight styling |\n| **Media Previews & Video Player** | Implemented | Inline MOV, MP4, and WebM playback where platform codecs are available; media copy\u002Fsave context menus, inline image cards, embed cards, related embed image galleries, and full-resolution image viewer modals |\n| **File & Attachment Uploads** | Implemented | Multi-attachment batch staging with file-type badges (PDF, ZIP, STL, images), thumbnail previews, individual file removal, upload progress bar, and drag-and-drop |\n| **Voice Engine & Calls** | Implemented | 1-to-1\u002Fgroup DM calls & server channels, Opus codec, DAVE v1 E2EE, Sonora AEC3 acoustic echo cancellation, RNNoise suppression, push-to-talk (`V`), audio device selector |\n| **Voice Messages** | Implemented | Inline voice message playback with interactive waveforms and bounded streaming audio buffering |\n| **Screen Sharing & Video** | Implemented | Native screen capture (macOS ScreenCaptureKit, Windows Graphics Capture, Linux portal\u002FPipeWire with VA-API\u002FNVENC hardware encoding and software fallback; Linux native capture remains unverified), quality presets (480p\u002F720p\u002F1080p\u002F1440p\u002F2160p, up to 60fps), and local camera\u002Fscreen previews |\n| **Camera Video & Stream Viewing** | Implemented | Hardware-accelerated decoding (macOS VideoToolbox, Linux VA-API, Windows DXVA\u002FD3D11) for incoming screen streams and camera video feeds |\n| **Threads & Forum Channels** | Implemented | Forum post listing, recent activity sorting, active thread browsing, and new forum post \u002F thread creation |\n| **Server Administration** | Implemented | Server profile editor (banners, icons, traits), custom sticker upload\u002Fedit\u002Fdelete, role management with permissions matrix, audit log viewer, invite tracking and revocation, integrations\u002Fwebhooks, and member moderation |\n| **Extensions & Theme Shop** | Implemented | Git-backed plugins, community theme catalog with preview cards and color presets, permission prompt modals, and deleted-message protector |\n| **Keybinds & Shortcuts** | Implemented | In-app keybind cheat sheet with raised keycaps, quick edit (`Up`), quick delete (`Backspace`), and keyboard navigation hotkeys |\n| **Rich Presence & Game IPC** | Implemented | Discord IPC and WebSocket RPC servers plus running-game detection; displays activities in member rosters, DMs, and user profiles; opt-in system tray |\n| **Profile Cards & Editing** | Implemented | On-demand profile popouts with banners, bios, badges, connections; native in-app editor for display name, bio, pronouns, and custom accent color with live preview |\n| **Server & Group Actions** | Implemented | Server dropdown with friend invites and leave server; group DM actions (edit name\u002Ficon preview, mute, leave) |\n| **Context Menus & Shortcuts** | Implemented | Right-click context menus for messages, media (save\u002Fcopy), server channels, and members |\n| **Typing Indicators** | Implemented | Displays incoming typing with short expiry; Serein strictly avoids emitting outgoing typing signals |\n| **Persistence & Drafts** | Implemented | Bounded SQLite cache for history, drafts, settings, and diagnostics; OS credential store for auth tokens; sanitary logout |\n| **Internationalization** | Partial | Bundled Inter font, CJK and Arabic font fallbacks included; full IME and bidirectional editing unverified |\n\n---\n\n## Architecture Overview\n\nSerein is engineered as a clean multi-crate Cargo workspace, isolating UI rendering from networking, persistence, and service protocols:\n\n```\nserein\u002F\n├── apps\u002F\n│   └── desktop\u002F          # Application entrypoint, CLI flags, window lifecycle\n├── crates\u002F\n│   ├── client-core\u002F      # Client state coordinator, generation tracking, events\n│   ├── session-cache\u002F    # In-memory bounded cache and state reconciliation\n│   ├── ui\u002F               # egui widgets, message virtualizer, themes, design tokens\n│   ├── model\u002F            # Strongly-typed Discord domain entities\n│   ├── discord-protocol\u002F # Wire protocol serialization and partial payload patches\n│   ├── discord-api\u002F      # HTTP\u002F2 REST client with rate limiting and backoff\n│   ├── discord-gateway\u002F  # WebSocket gateway client with heartbeat and resume\n│   ├── discord-voice\u002F    # Opus codecs, RTP\u002FUDP transport, DAVE v1, Sonora AEC, RNNoise, video decoding\n│   ├── local-store\u002F      # Bounded SQLite database for history, drafts, settings\n│   ├── platform\u002F         # OS credential store (Keychain\u002FCredManager\u002FSecretService)\n│   └── test-support\u002F     # Deterministic synthetic fixtures and mocks\n└── tools\u002F\n    ├── replay-bench\u002F     # Benchmarking harness for state reducers\n    └── xtask\u002F            # Workspace automation tasks (packaging, checks, linting)\n```\n\n---\n\n## Security & Storage Policy\n\n- **Token Protection:** Tokens use the native OS credential store by default (macOS Keychain, Windows Credential Manager, Linux Secret Service). An explicit Storage setting allows private, bounded plaintext files when OS saving fails; disabling it deletes those secret files. Active tokens remain redacted in memory.\n- **Local Cache Bounds:** SQLite databases store recent channel history, drafts, settings, diagnostics, and image preview metadata within bounded byte and count limits. The local SQLite store is **not** encrypted by the application.\n- **Sanitary Logout:** Executing an explicit logout destroys active network sessions, purges active secrets from memory, deletes the token from the OS credential store, and erases that account's local cache and drafts.\n- **Zero Telemetry:** Serein contains no analytics, telemetry, background crash collectors, or tracking beacons.\n- **Platform Integrity:** No CAPTCHA\u002FMFA bypasses, bot substitutions, token scrapers, or third-party relays. Every Discord connection presents one consistent browser identity matching the platform webview (unofficial; see [authentication](docs\u002Fauthentication.md)); it is not randomized or rotated to evade detection.\n\nFor full details, review the [Storage Policy](docs\u002Fstorage-policy.md) and [Threat Model](docs\u002Fthreat-model.md).\n\n---\n\n## Documentation\n\n- [Architecture & Monorepo Design](docs\u002Farchitecture.md)\n- [Discord Compatibility & Protocol Details](docs\u002Fdiscord-compatibility.md)\n- [Authentication & Login Handoff](docs\u002Fauthentication.md)\n- [Storage Policy & Cache Retention](docs\u002Fstorage-policy.md)\n- [Platform Support & Build Requirements](docs\u002Fplatform-support.md)\n- [Nix Package & Development Shell](packaging\u002Fnix\u002FREADME.md)\n- [Voice Architecture & Procedure](docs\u002Fvoice.md)\n- [Design Tokens & UI Styling](docs\u002Fdesign.md)\n- [Extensions & Plugin Architecture](docs\u002Fextensions.md)\n- [Extension SDK Creator Wiki](https:\u002F\u002Fgithub.com\u002FViceVerse-cz\u002FSerein\u002Fwiki)\n- [SDK Examples and Offline Authoring Guide](examples\u002Fextensions\u002FREADME.md)\n- [Theme API Specification](docs\u002Ftheme-api.md)\n- [Threat Model & Security](docs\u002Fthreat-model.md)\n- [Third-Party Licenses & Notices](THIRD_PARTY_NOTICES.md)\n\n---\n\n## License\n\nOriginal Serein code is dual-licensed under either:\n- **MIT License** ([LICENSE-MIT](LICENSE-MIT))\n- **Apache License, Version 2.0** ([LICENSE-APACHE](LICENSE-APACHE))\n\nat your option. Third-party library notices, bundled font licenses (Inter, Noto Sans CJK\u002FArabic), and Twemoji graphics licenses are cataloged in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n\nDemo fixtures and simulated actions are excluded from normal app and CI packages.\nBuild with `--features demo` and launch with `--demo` to enable them; `--demo-*`\nscenario flags additionally require `--demo`. `cargo xtask package` always builds\nwithout demo support, while offline tests can still use synthetic fixtures.\n","Serein 是一款轻量、高性能的原生 Discord 桌面客户端，专为追求低资源占用与快速响应的用户设计。它基于 Rust 构建，采用 egui + wgpu 渲染架构，支持 macOS、Linux 和 Windows 三大平台，启动快、内存占用低，并提供原生系统集成体验（如通知、快捷键、深色模式等）。项目不依赖 Electron 或 WebView，避免了传统 Web 客户端的性能开销和沙箱限制。适用于对隐私敏感、硬件配置有限（如老旧设备或 ARM 笔记本），或偏好原生应用质感的 Discord 日常使用者。",2,"2026-11-24 04:40:13","trending"]