# FeatherRPC | Full Technical & Site Reference > Ultra-lightweight, privacy-first Discord Rich Presence client in Rust for Windows 10 and Windows 11, paired with a standalone Manifest V3 browser companion extension installed via ZIP. ## Canonical URLs - Website: https://feather.kuberbassi.com/ - Sitemap: https://feather.kuberbassi.com/sitemap.xml - Robots: https://feather.kuberbassi.com/robots.txt - LLM Summary: https://feather.kuberbassi.com/llms.txt - GitHub Repository: https://github.com/kuberbassi/FeatherRPC - Releases: https://github.com/kuberbassi/FeatherRPC/releases - Windows Executable: https://github.com/kuberbassi/FeatherRPC/releases/latest/download/feather-rpc.exe - Windows Bundle ZIP: https://github.com/kuberbassi/FeatherRPC/releases/latest/download/FeatherRPC-v1.6.0-Windows.zip - Browser Extension ZIP: https://github.com/kuberbassi/FeatherRPC/releases/latest/download/FeatherRPC-Browser-Extension.zip - Privacy Policy: https://github.com/kuberbassi/FeatherRPC/blob/main/PRIVACY.md - Changelog: https://github.com/kuberbassi/FeatherRPC/blob/main/CHANGELOG.md ## Website Structure (Human-Readable vs Machine-Readable) - `docs/index.html` presents the light-theme product landing page with download buttons, an interactive Discord Rich Presence preview card (YouTube Music, Netflix, Prime Video, JioHotstar), feature highlights, 3-step extension ZIP setup, and privacy summary. - Structured metadata is embedded in `` via JSON-LD (`WebSite`, `SoftwareApplication`, `Person`) and `` tags pointing to `llms.txt` and `llms-full.txt`. - Visual branding assets live under `docs/assets/` (`logo.png`, `logo.svg`, `feather-bg.svg`, `feather-plume.svg`, and `platforms/*.png`). ## Author & Maintainer - Name: Kuber Bassi - Website: https://kuberbassi.com - Email: me@kuberbassi.com - GitHub: https://github.com/kuberbassi - Location: New Delhi, India - Education: B.Tech in Computer Science and Engineering, Guru Gobind Singh Indraprastha University (GGSIPU), Delhi - Profile: Independent full-stack software engineer, product builder, guitarist, and music producer (releasing music as KUBER BASSI). - Core Stack: Rust, Win32 APIs, TypeScript, JavaScript, Python, C, C++, React, Next.js, Vite, Tailwind CSS, Node.js, Express, FastAPI, PostgreSQL, SQLite, Docker. - Other Open-Source Projects: - Mimora (https://github.com/kuberbassi/mimora): Local-first Liquid Glass GIF and reaction library for Windows 11 built with Tauri 2, React, Rust, and SQLite. - Savewave: On-device privacy-focused media saver for desktop and Android. - Compactor: Browser-based lightweight file compression utilities. - Semester: Academic operating system built with TypeScript, Next.js, and PostgreSQL. - Inkscript: Utility converting typed notes and Markdown into handwritten notebook sheets. ## Desktop Application Architecture (`src/`) - `src/main.rs`: - Single-instance lock using `CreateMutexW("Local\\FeatherRPC_SingleInstance")` plus `CreateToolhelp32Snapshot` fallback for legacy versions; invokes `taskkill` only when another `feather-rpc.exe` process exists. - Event-driven Win32 UI loop using `CreateEventW` + `MsgWaitForMultipleObjectsEx(..., QS_ALLINPUT, MWMO_INPUTAVAILABLE)` for 0% idle UI CPU and modal-loop-safe wakeups. - Working-set memory trimming via `SetProcessWorkingSetSize(GetCurrentProcess(), usize::MAX, usize::MAX)` after startup, update checks, and idle transitions. - Background media/Discord RPC thread woken immediately via `Condvar` (`WakeSignal`) on companion updates or config changes; polls every 2s when playing and 4s when idle. - `SentActivity` diffing skips redundant Discord IPC `SET_ACTIVITY` pipe writes when metadata is unchanged and timestamps stay within 2 seconds. - Periodic background updater checking GitHub releases 5 seconds after startup (with up to 3 offline retries at 60s) and every 4 hours thereafter. - `src/media.rs`: - Polls Windows `GlobalSystemMediaTransportControlsSessionManager` (GSMTC) for standalone non-browser desktop media apps, computes live track position from `Position + (now - LastUpdatedTime)`, enforces keyword and platform filters, and defers configured native apps (`spotify`, `crunchyroll`) plus generic browser and browser-PWA sessions (`chrome`, `microsoftedge`, `msedge`, `brave`, `opera`, `firefox`, `vivaldi`) so unrelated browser audio is never mislabeled. - Because browser and Chrome/Edge PWA sessions are skipped by GSMTC, broadcasting from YouTube Music, Netflix, Prime Video, or JioHotstar in a browser or PWA requires the Browser Companion Extension (`127.0.0.1:46273`). - `src/companion.rs`: - Loopback-only HTTP server on `127.0.0.1:46273` handling `POST /update`, `GET /health` (`{"ok":true}`), and CORS + Private Network Access `OPTIONS` preflight. - Enforces `https://` artwork URLs (max 512 characters) and wakes the background loop via `WakeSignal`. - `src/discord.rs`: - Pure-Rust Discord named-pipe IPC client (`\\.\pipe\discord-ipc-0..9`) with a 5-second reconnect backoff when Discord is closed. - `src/artwork.rs`: - Shared `OnceLock` (4s connect, 5s request timeout) querying YouTube Music and YouTube InnerTube search APIs for square album art, backed by a bounded 200-entry cache. - `src/updater.rs`: - Semantic version comparison (`is_newer_version`), strict download URL allowlist (`https://github.com//releases/download/` or `https://objects.githubusercontent.com/`), PE `MZ` header and SHA-256 verification, atomic in-place `.exe` replacement via `.exe.old` with rollback on spawn failure, and startup cleanup of `.old` and `.part` files. - `src/startup.rs`: - Manages `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\FeatherRPC` directly via Win32 Registry APIs (`RegOpenKeyExW`, `RegQueryValueExW`, `RegSetValueExW`, `RegDeleteValueW`). - `src/config.rs`: - Persists `config.toml` via `directories::ProjectDirs`, auto-backs up valid configurations to `config.toml.bak`, and provides 1-click Reset to Defaults. ## Default Configuration (`config.toml`) ```toml [general] privacy_mode = false show_timestamps = true defer_apps = ["spotify", "crunchyroll"] [privacy] hide_keywords = ["incognito", "inprivate", "private", "password"] [platforms] youtube_music = true netflix = true prime_video = true jiohotstar = true other_media = true [app_ids] youtube_music = "" netflix = "" prime_video = "" jiohotstar = "" [updater] repo = "kuberbassi/FeatherRPC" check_on_startup = true auto_install = false ``` ## Browser Companion Extension (`extension/`) - Manifest V3 (`extension/manifest.json`) with `16x16`, `48x48`, and `128x128` PNG icons, status popup (`popup.html` / `popup.js`), MV3 service worker (`background.js`), and content script (`content.js`). - Supported Sites: `music.youtube.com`, `www.netflix.com`, `www.primevideo.com`, `www.amazon.com/*/video/*`, `www.hotstar.com`, `www.jiohotstar.com`. - Installation: Download `FeatherRPC-Browser-Extension.zip`, extract it, open `chrome://extensions` or `edge://extensions`, enable Developer mode, and select Load unpacked. - Deduplication: Sends updates only on track/state changes, seeks > 3s, `pagehide`, or a 5s heartbeat while playing. ## Privacy Guarantees - Operates 100% locally on the user's machine. - Browser extension sends active media metadata solely to `http://127.0.0.1:46273`. - Zero remote servers, analytics, cookies, or third-party data sharing.