[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109581":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":30,"discoverSource":31},109581,"larperCord","RshaCuDeVidro\u002FlarperCord","RshaCuDeVidro","A native Discord client of about 100~ MB RAM, whose entire interface is a theme file.","https:\u002F\u002Frshacudevidro.github.io\u002FlarperCord\u002F",null,"Zig",296,25,1,7,0,2,40,110,13,75.24,false,"main",true,[],"2026-11-19 02:35:17","2026-11-23 09:34:24","\u003Cdiv align=\"center\">\n\n# larperCord\n\n**A native Discord client for Linux and Windows, at about 130 MB of RAM, whose entire interface is a theme file.**\n\nZig · SDL3 · Dear ImGui · FreeType · zero Electron\n\n**English** · [Português](README.pt-BR.md)\n\n![larperCord themes](docs\u002Fthemes.png)\n\n*The same binary and the same data, only the `.kdl` file changes. There are 11 themes, each in light and dark. The last tile is `cupertino` in light.*\n\n\u003C\u002Fdiv>\n\n> [!WARNING]\n> **Third-party clients break Discord's Terms of Service**, and your account can be banned.\n> Use it at your own risk, ideally with a secondary account. This project has no affiliation\n> with Discord Inc. With no token configured, the app runs in a **demo mode** with fake data.\n\n### If Discord locks your account\n\nDiscord disables accounts or forces a password reset when it thinks an account is a spam bot or was compromised. It can happen on any client, but third-party clients tend to trigger it more often. It already happened to this project's developer, after a day of testing. **Use a secondary account.**\n\nThese are the usual triggers people report, so do them in the official client:\n\n- joining or leaving servers, the most common one\n- disconnecting and reconnecting often, which includes restarting the app over and over\n- opening DMs with new people\n- changing your friends list\n- editing your profile while connected here\n\nIf it happens, reset your password from discord.com. If the account stays locked, [appeal here](https:\u002F\u002Fsupport.discord.com\u002Fhc\u002Fen-us\u002Frequests\u002Fnew?ticket_form_id=360000029731). Discord doesn't publish these rules, so this list comes from the experience of people who make third-party clients.\n\n### If your antivirus complains\n\nThe Windows build isn't signed, so SmartScreen warns about it. A scanner may also call it a Discord token stealer, likely because a Discord client is full of the same words a stealer has, such as \"token\" and \"Authorization\". One sandbox scored version 0.5.0 that way from a pattern rule, while its behavior report showed no credential access and, in demo mode, no network at all.\n\nThe token only goes to Discord, and it stays in the system keyring (Credential Manager on Windows) or, without one, in a private file. The code is public, so you can read it or build it yourself. Only download larperCord from this repository.\n\n## Why\n\nThe official client is a whole browser dressed up as an app. On the same PC:\n\n| | RAM (PSS) | Idle CPU | Binary |\n|---|---|---|---|\n| Vesktop (Electron) | **1279 MB** | 12–47%¹ | 287 MB |\n| Discord Phoenix (Rust) | ~290 MB² | 0.1%² | not released |\n| **larperCord**, real account | **~130 MB**³ | **0–0.4%**⁴ | **~14 MB** |\n\n\u003Csub>¹ Average since launch, measured with `ps`. Arch Linux, Hyprland, GTX 1050 Ti, 1280×800 window, `ReleaseFast` build.\n² Not measured by us and not a side-by-side test: an early Windows 11 build, from a Task Manager screenshot [posted by Discord's CTO](https:\u002F\u002Fx.com\u002Fsvishnevskiy\u002Fstatus\u002F2118081920194203799). The app isn't out yet.\n³ 125–140 MB in one account's normal use on the same PC, about 70 MB right after opening. Yours depends on your servers, members and images; Settings → Performance shows where it goes. About 35 MB of the total is the NVIDIA driver, libraries and fonts. The published Linux file carries SDL3, libcurl and OpenSSL inside: side by side in demo, it used about 2 MB more than a build using the system's copies.\n⁴ Measured with `tools\u002Fmembench.sh`, with demo data, a real window and GIF autoplay off. An animated GIF on screen costs about 2.5% CPU.\u003C\u002Fsub>\n\n## What's in it\n\n- **Themes that rearrange everything.** A layout tree (`row`\u002F`column`\u002F`flex`\u002F`gap`), 11 components\n  with variants, colors overridden per layout piece (`c-text=\"#fff\"`), styles, and color tokens with expressions (`mix(wal:0, black, 0.4)`).\n  [Theme guide →](themes\u002FREADME.md)\n- **Reloads on save.** Edit the `.kdl` and the window changes right away (inotify on Linux, folder\n  change notifications on Windows; no polling). Errors show up as `file:line:column`.\n- **Follows your wallpaper.** On Linux, themes with `palette \"wal\"` use pywal's colors and follow the change.\n  On Windows the colors are only read when the `HOME` variable is set, and they don't follow the change live\n  ([details](themes\u002FREADME.md#top-level-nodes)); otherwise these themes use the default palette.\n- **Real blur on Linux.** The `vidro` theme has a transparent background and your compositor (Hyprland, KDE…)\n  applies the blur, at no cost to the app. Windows has no blur: there, turn on the theme's \"Opaque background\"\n  option for solid cards.\n- **Connects to the real Discord**: WebSocket gateway with heartbeat, **session RESUME**,\n  **zlib-stream** and reconnects; IDENTIFY and headers in the web client's format (the same\n  approach as the web client). REST for history, sending, editing, deleting, reactions and \"typing\",\n  one request at a time and respecting the rate limit.\n- **Real voice calls**: voice gateway v8, UDP\u002FRTP, Opus at 48 kHz stereo, **DAVE (E2EE)** through\n  libdave\u002FMLS, mic and output through SDL3, mute\u002Fdeafen, a \"speaking\" ring and a **mixer with a\n  volume per person**. The voice thread only starts when you join a call.\n- **Calls in DMs and groups**: the phone button in the header calls; an incoming call shows a card with\n  Accept and Decline, a ringtone (silent in Do Not Disturb or a muted conversation), a system notification\n  and a taskbar flash, even from the tray. Right-click the mic or headphone button to switch devices\n  mid-call; `Ctrl+Shift+M` mutes and `Ctrl+Shift+D` deafens.\n- **Discord interactions**: right-click menus on messages, users, channels and servers;\n  a hover action bar; **replies** (with the little curve and a click that jumps to the\n  original); **edit** (`↑` in the empty box edits your last one); **delete**; **reactions**;\n  mouse **text selection** across several messages + `Ctrl+C`; a **profile card** with\n  \"Message @someone\"; **direct messages**; mentions highlighted by Discord's rule (you, your roles,\n  @everyone and @here, as the server allows).\n- **Sending options**: choose whether a reply pings its author, send silently (`@silent`), without link\n  previews or without pinging anyone, and mark each file as a spoiler or give it alt text. Vote in\n  polls and see who voted, see who reacted, and page through more than 50 pins.\n- **Channel tabs**, a command palette with fuzzy search (`Ctrl+K` \u002F `Ctrl+Shift+P`: channels, DMs,\n  servers, themes, status, mark as read and the toggles), keyboard shortcuts and optional\n  vim-style navigation (`j`\u002F`k`, `gg`\u002F`G`, `J`\u002F`K` switches channel, `\u002F` searches).\n- **Panels your size**: drag the edge of the channel list, the member list or the panes of a split view; a double-click goes back to the theme's width. Your choice is saved and follows you between themes, and the conversation always keeps enough room.\n- **Lua plugins**: `.lua` files in your plugins folder (`~\u002F.config\u002Flarpercord\u002Fplugins\u002F` on Linux,\n  `%APPDATA%\\larpercord\\plugins\\` on Windows) that add panels, right-click\n  entries, notes under messages, commands and reminders, on a thread of their own with an instruction\n  and a memory limit, so they can't hold up the interface. Scam guard, CVE radar, GitHub cards, what did I miss, translate,\n  reminders, highlights, clean links, and links and files come with the app. [Guide and API →](docs\u002Fplugins.md)\n- **Voice settings.** In Settings → Voice you pick the microphone and output (remembered by name, back to the default if they disappear, switchable mid-call), adjust volumes, see the mic level live and use \"Test microphone\" to hear yourself. Voice activity has an adjustable threshold on the meter or an automatic mode that learns your background noise. \"Push to talk\" takes a key or mouse button and works while the window is focused (SDL has no portable global shortcut). There's a high-pass against rumble, a noise gate and a sound for each call event (joining, leaving, someone else joining or leaving, mute, deafen, the ringtone), built-in or your own WAV or Ogg Opus file, each of which can be turned off. The voice panel shows ping, quality by color and when you're transmitting, and warns you if the mic doesn't open or if the server muted or deafened you. Other people's mute and deafen show in the call list.\n- **Runs on Linux and Windows.** Linux prefers native Wayland in a Wayland session, with X11 fallback. Windows 10\u002F11 builds come from the same code; tokens stay in Credential Manager.\n- **Stays in the tray.** The icon sits in the system tray from launch until you quit, with Open and Quit in its menu even while the window is open, and closing keeps the app connected there. A left click on the icon shows or hides the window. \"Close to tray\" in Settings → Advanced turns it all off: no icon, and closing quits. Without a tray, closing quits. Opening it a second time brings up the running window. On Linux the tray needs a StatusNotifier panel.\n- **Updates itself.** Checks when opening or from Settings → Updates. One button downloads, installs and restarts. Updates are signed, and a version without the right signature isn't installed. There's a restart button and a What's new page with the changes in each version.\n- **Video volume.** The in-app player has a volume slider, remembered between runs.\n- **Microphone noise suppression.** Settings → Voice → Noise suppression (Off \u002F RNNoise), on by default and switchable mid-call. It uses [RNNoise](https:\u002F\u002Fgithub.com\u002Fxiph\u002Frnnoise) 0.2 (BSD), built into the executable and running on your computer, with no internet. It reduces steady noise such as fans, hiss and air conditioning; typing and bangs may get through, other voices stay and yours may get a bit muffled. It delays your mic by 20 ms and costs about 2% to 3.5% of a core on a 2011 Core i5 while the mic is open, and less on newer processors; off, muted or with the push-to-talk key released, it costs nothing.\n- **Bots and apps.** Bots and webhooks carry a BOT tag (with a check mark when verified). Discord's newer component messages (Components V2) show text, thumbnails, separators, galleries, files and link buttons. Buttons, select menus and bot forms (modals) work, and `\u002F` lists the slash commands of the server's bots and of your apps, with a panel for their options and files. Forwarded messages appear as cards.\n- **Discord markdown.** Headings, `-#` small text, quotes, lists and `[text](url)` links, which show the real address on hover. Code blocks have line numbers, and text in embeds can be selected and copied.\n- **Manage what's yours.** Edit a server (name, description, icon, banner) or a group DM (name, icon, members), and edit or delete threads when you have permission. Server banners appear at the top of the channel list and on invite cards; click one to see it in full.\n- **Moderation.** Kick, ban, time out and server mute or deafen from a person's menu, only when your role allows it, with a reason for the audit log; a Bans list in the server menu. The message box shows slowmode and says why you can't send (permission, a locked thread, a timeout, an AutoMod quarantine). Joining from an invite warns first, and servers with rules or onboarding open them in the app.\n- **Your account, synced.** Block, ignore, friend requests (also by username), mute and notification levels, your status with a duration, a custom status and your profile's display name, pronouns and About me are saved to your Discord account, like the official app. Message requests and spam stay apart from your DMs. Rich Presence shows the game you're playing, off by default.\n- **Text in any language.** Arabic letters are joined and right-to-left text comes in the right order ([GNU FriBidi](https:\u002F\u002Fgithub.com\u002Ffribidi\u002Ffribidi)). A letter the theme's font lacks, in any script, comes from a system font that has it, looked up only when such text appears.\n- **Code diagnostics (optional).** See errors while typing a code block, from a language server you choose. Off by default, nothing bundled or downloaded. [Guide →](docs\u002Flsp.md)\n- **Threads and forums.** Active threads nested under the parent channel (collapsible, with unreads), opening as a normal conversation, with tabs, split view, drafts, cache and search; a card with the message count and last activity on the message that started it; create, join, leave, rename, tag, archive and lock threads from the menu, and see archived ones, private ones included. Forums and media channels show the list of posts instead of a conversation, with local search, sorting by activity, pages on demand and \"New Post\" with title, tags and text. Permissions come from the parent channel, and the member list shows who's in the thread.\n- **Emoji and autocomplete.** Custom emoji show as images (animated too), large when the message is only emoji, and in reactions. PNG, APNG and GIF stickers show as images, and the Stickers tab in the GIF picker sends them. The picker has the full Unicode list, search in Portuguese and English, recents and your servers' emoji, and warns when an emoji needs Nitro. In the text box, `@`, `#`, `:ab` and `\u002F` (slash commands) open a list (arrows, Tab\u002FEnter, Esc or click); names with spaces become real mentions when sent. In data saver mode, custom emoji become `:name:`, with nothing downloaded. To regenerate the table: `tools\u002Fgen_emoji.py`.\n- **Read state synced with Discord**: unreads and mentions correct on open, `MESSAGE_ACK` from another device clears them here, confirmations like the official client's (at most one per channel every 3 s; none on its own with the window unfocused), \"mark as read\" per channel and per server, \"mark as unread\" from a message.\n- **NEW MESSAGES line** with a button that jumps to the first one and \"mark as read\"; the channel opens at the first unread (you can turn it off in Settings → Chat).\n- **Pinned messages**: a pin in the header, pin and unpin from the menu; jumping to any old message loads around it, with \"Jump to present\".\n- **Discord links open in the app** (`ptb.` and `canary.` too); invites become a card with the server and its members, a Join button (Go to server when you're already in it) and Open in browser.\n- Clicking `@someone` opens the profile, `#channel` opens the channel; the timestamp shows the full date on hover.\n- **Inbox** (`Ctrl+I`): unread DMs and mentions from every server, by channel, with\n  previews, jump to the message and \"mark all as read\"; a tab with Discord's recent mentions.\n- **Saved messages with notes** (`Ctrl+Shift+S`, right-click → Save message): only on your\n  computer, in `~\u002F.config\u002Flarpercord\u002Fsaved-\u003Caccount>.json` (`%APPDATA%\\larpercord\\saved-\u003Caccount>.json`\n  on Windows); nothing goes to Discord.\n- **Local cache and offline search.** The last 200 messages seen in each channel stay in\n  `~\u002F.cache\u002Flarpercord\u002Fmessages` (`%LOCALAPPDATA%\\larpercord\\messages` on Windows; 50 MB cap, and on\n  Linux folders 700 and files 600): the conversation appears\n  right away on open and the real history arrives on top, without jumping the scroll. `Ctrl+F` searches\n  memory and the cache on every keystroke, without internet, with `from:name`, `in:channel`, `has:link`,\n  `has:image` and `has:file`; clicking a result jumps to the message. You can turn it off and\n  erase it in Settings → Privacy.\n- **Multiple accounts.** Your own name's menu lists the saved accounts (name and picture) and switches\n  right away; \"Add account\" goes back to sign-in without forgetting the others. The sign-in screen\n  lists them too, and a token Discord refuses is forgotten instead of being tried again.\n- **Discord-style settings** (`Ctrl+,`): 18 pages, theme switching with thumbnails,\n  accent color and corners, **custom colors per theme and mode in hex**, font scale,\n  compact mode, reduced motion, 12\u002F24 h clock, spoilers…, saved in\n  `~\u002F.config\u002Flarpercord\u002Fsettings.kdl` (`%APPDATA%\\larpercord\\settings.kdl` on Windows). If\n  `XDG_CONFIG_HOME` or `XDG_CACHE_HOME` is set, the app uses it instead, on both systems.\n- **Discord markdown**: **bold**, *italic*, ~~strikethrough~~, `code`, ||spoiler||, `\u003C@id>`\u002F`\u003C#id>`\n  mentions, links and color emoji; code blocks highlighted by their label (zig, c\u002Fcpp,\n  js\u002Fts, py, rust, go, sh, json, lua…) with a \"Copy\" button; a preview above the box while you type.\n- **Videos playing in the conversation** (attachments and direct .mp4\u002F.webm links) with **FFmpeg 7, 8\n  or 9, if present** (loaded only on the first play, no build dependency): play\u002Fpause,\n  progress bar, sound; up to 480p and about 30 fps. Without FFmpeg, the video opens in the browser. On\n  Linux it's your distro's `ffmpeg` package. Windows has none, so Settings → Chat → Videos gets it once\n  (Check for FFmpeg, then Download FFmpeg): about 80 MB from github.com\u002FBtbN\u002FFFmpeg-Builds, checked\n  against a fixed SHA-256, about 128 MB on disk in `%LOCALAPPDATA%\\larpercord\\ffmpeg`. \"Choose FFmpeg\n  folder…\" there takes a \"shared\" FFmpeg build you already have, and when FFmpeg isn't found the page\n  says why (a static `ffmpeg` on PATH without the libraries, a version the app doesn't use, a library\n  that didn't load). It also animates old Tenor GIFs that only exist as MP4.\n- **Media**: spoilers and sensitive media stay covered until you click, with nothing downloaded before;\n  expired Discord image links are refreshed on their own; voice messages have a player with a waveform;\n  long GIFs play every frame, and a star on any GIF adds it to your favorites.\n- **Proxy** (HTTP, HTTPS, SOCKS5, SOCKS5h; Tor at `socks5h:\u002F\u002F127.0.0.1:9050`), with separate fields for\n  the address, port, login and password, for media from outside Discord or for everything except voice\n  calls, which always connect directly (Settings → Network). The sign-in screen has it too (\"Connect\n  through a proxy\") and offers it when it can't reach Discord.\n- Grouped messages, day separators, \"pending\" sends confirmed by the server,\n  a typing indicator, smooth scrolling with a virtualized list.\n\n\u003Cdiv align=\"center\">\n\n![Right-click menu, profile, text selection and action bar](docs\u002Finteractions.png)\n\n![Settings](docs\u002Fsettings.png)\n\n\u003C\u002Fdiv>\n\n## Built-in themes\n\nAll of them have **light and dark modes** and **their own options** in Settings → Appearance.\n\n| Theme | Idea | Exclusive |\n|---|---|---|\n| `classico` | the layout everyone knows, in pywal's colors (or the default palette) | server banner |\n| `vidro` | translucent cards with the compositor's blur (Linux) | light reflection on the cards |\n| `terminal` | tmux + IRC; in light, dot-matrix printer paper | CRT effect, ASCII logo, green phosphor |\n| `subsolo` | underground hacking terminal, acid green and scanlines | horizontal rack, ultraviolet, ASCII logo |\n| `orbital` | a flight console among the stars, with numbered systems | star field and orbits in the background, command composer, server strip in the footer |\n| `editorial` | a printed magazine on grainy paper, masthead between rules and an index on the right | inverted layout, serif conversation, colophon |\n| `bolhas` | a messenger with chat bubbles | \"Delivered ✓✓\" and a typing bubble |\n| `zen` | one central column, larger letters | navigation hides itself |\n| `papel` | a notebook with an index in the margin and serif titles | ruled sheet with a red margin |\n| `escritorio` | a work tool, dark sidebar | top bar with search and help |\n| `cupertino` | a Mac-style desktop: wallpaper and a floating window | working traffic lights, translucent sidebar, Dock with magnifier, bubbles |\n\n## Install\n\n**Download:** [Linux](https:\u002F\u002Fgithub.com\u002FRshaCuDeVidro\u002FlarperCord\u002Freleases\u002Flatest\u002Fdownload\u002Flarpercord-linux-x86_64) · [Windows](https:\u002F\u002Fgithub.com\u002FRshaCuDeVidro\u002FlarperCord\u002Freleases\u002Flatest\u002Fdownload\u002Flarpercord-windows-x86_64.zip) · [all versions](https:\u002F\u002Fgithub.com\u002FRshaCuDeVidro\u002FlarperCord\u002Freleases).\n\nOn Linux, make the file executable and run it: `chmod +x larpercord-linux-x86_64 && .\u002Flarpercord-linux-x86_64`. It can keep that name: an update replaces that same file. Keep it in a folder you own, like `~\u002F.local\u002Fbin`, so it can update itself.\n\nOn Windows, unzip it and open `larpercord.exe` in the `larperCord` folder. Keep the three DLLs next to it (`SDL3.dll`, `libcurl-x64.dll`, `libcrypto-3-x64.dll`) and unzip it somewhere you can write to, not `C:\\Program Files`, so it can update itself. It isn't code-signed yet: if SmartScreen says \"Windows protected your PC\", click **More info**, then **Run anyway**. On the releases page, take the zip: the loose `.exe` and DLLs there are for the updater and the install script.\n\nThe Linux build runs on distros from about 2022 onward (glibc 2.34 or newer). SDL3, libcurl and OpenSSL come inside it. FreeType, fontconfig, libwebp, Opus and zlib come from the system, and a desktop distro usually has them already. Before each release it's opened in Ubuntu 22.04 and 24.04, Debian 12 and 13, Fedora, openSUSE and Arch containers, in demo mode with no GPU.\n\nOn a Wayland desktop, the app connects natively through SDL3; XWayland is not required. For window decorations on GNOME, install your distro's `libdecor` package and its decoration plugin. To force a backend, run `SDL_VIDEO_DRIVER=wayland larpercord` or `SDL_VIDEO_DRIVER=x11 larpercord`. Add `--stats` to see the selected video driver and renderer. The installer provides `dev.larpercord.desktop` for the launcher icon.\n\nDevelopers can check native Wayland at 1× and 2× scale, backend overrides and X11 fallback with `python3 tools\u002Fqa_wayland.py zig-out\u002Fbin\u002Flarpercord` after building (requires Weston, Xvfb and Python 3). This runs a separate headless compositor with demo data and no GPU or Discord account.\n\nGitHub Actions builds the Linux file from this repository's code. With the GitHub CLI you can check it: `gh attestation verify larpercord-linux-x86_64 --repo RshaCuDeVidro\u002FlarperCord`. The Windows files have no attestation yet, so compare them with `SHA256SUMS` from the same release. In PowerShell, in the folder with both files (`True` means it matches):\n\n```powershell\n(Get-FileHash .\\larpercord-windows-x86_64.zip).Hash -eq ((Select-String 'larpercord-windows-x86_64.zip' .\\SHA256SUMS).Line -split '\\s+')[0]\n```\n\nOn Linux, `sha256sum -c --ignore-missing SHA256SUMS` does the same.\n\nOr use a script:\n\n**Linux** (x86_64, no sudo: the program in `~\u002F.local\u002Fbin`, plus a menu entry and an icon):\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FRshaCuDeVidro\u002FlarperCord\u002Fmain\u002Finstall.sh | sh\n```\n\n**Windows 10\u002F11** (for your user, no administrator: the program in `%LOCALAPPDATA%\\Programs\\larperCord`, plus a Start menu entry), in PowerShell. It closes larperCord first if it's open:\n\n```powershell\nirm https:\u002F\u002Fraw.githubusercontent.com\u002FRshaCuDeVidro\u002FlarperCord\u002Fmain\u002Finstall.ps1 | iex\n```\n\nBoth download the latest [release](https:\u002F\u002Fgithub.com\u002FRshaCuDeVidro\u002FlarperCord\u002Freleases) and check it against `SHA256SUMS`. On Linux the script lists any system library that's missing. On a distro older than 2022, [build from source](#building). After that, the app updates itself: Settings → Updates. Running a script again also installs the newest version.\n\n## Connecting your account\n\nThe token is **never** in the code, in a log or in an error message, and it's wiped from memory on\nexit. On Linux and Windows, the simplest way is the sign-in screen: paste the token and keep \"Remember\"\non. The app looks in this order:\n\n1. The `LARPER_TOKEN` variable, which is never saved.\n2. The accounts saved with \"Remember\", starting with the last one used. Each has its own entry in the\n   system's safe storage: the keyring on Linux (`service larpercord-account account \u003CID>`), Credential\n   Manager on Windows (`larperCord\u002Faccount\u002F\u003CID>`). Without it, the token goes in\n   `~\u002F.config\u002Flarpercord\u002Ftokens\u002F\u003CID>` with `chmod 600` on Linux, or `%APPDATA%\\larpercord\\tokens\\\u003CID>`\n   on Windows.\n3. On Linux only, the older single entry, which you can still create by hand:\n   ```bash\n   secret-tool store --label='larperCord' service larpercord   # paste the token when asked\n   ```\n   or the file `~\u002F.config\u002Flarpercord\u002Ftoken`, which must be `chmod 600`.\n\nThe list of saved accounts (only ID, name and avatar) is in `~\u002F.config\u002Flarpercord\u002Faccounts` on Linux\nand `%APPDATA%\\larpercord\\accounts` on Windows, and they appear in the user menu for switching.\n\nTo use `LARPER_TOKEN` for one run without saving it anywhere, in bash or zsh:\n\n```bash\nread -rs LARPER_TOKEN && LARPER_TOKEN=\"$LARPER_TOKEN\" larpercord\n```\n\nIn PowerShell (use the folder where you unzipped it if you didn't use the install script). The last\nline clears the variable from the window; the app already has its own copy:\n\n```powershell\n$env:LARPER_TOKEN = [Net.NetworkCredential]::new('', (Read-Host 'Token' -AsSecureString)).Password\n& \"$env:LOCALAPPDATA\\Programs\\larperCord\\larpercord.exe\"\nRemove-Item Env:LARPER_TOKEN\n```\n\nThe variable only counts when the app starts: if larperCord is already open, even only in the tray,\nquit it first (**Quit** in the tray icon's menu).\n\n`--demo` forces demo mode even with a token. Still missing: screen sharing and camera. Channels\nwithout access only show a notice. Notifications go through `notify-send` on Linux (from libnotify)\nand through the tray on Windows, and clicking one doesn't open the channel yet. Voice uses the\nsystem's audio backend through SDL3 and only starts its thread when you join a call.\n\n## How it stays light\n\nNo magic, just many small decisions:\n\n1. **It sleeps when nothing happens.** The loop waits in `SDL_WaitEvent`. Network, file changes (inotify\n   on Linux, folder notifications on Windows) and the clock wake the app with events. No animation, no redraw. A frame that comes out the same as the last one\n   never reaches the GPU, and a mouse just moving asks for fewer frames.\n2. **No browser.** Everything is drawn with Dear ImGui's `ImDrawList` on top of SDL_Renderer.\n3. **Fonts are mapped, not copied.** Each font file is one memory map (`mmap` on Linux, `MapViewOfFile`\n   on Windows) shared by every weight and family. Only the pages read stay in RAM. (Loading 4 weights of\n   Inter + emoji the naive way cost about 90 MB.)\n4. **Only the video driver it needs.** On Linux machines with only an NVIDIA GPU, glvnd also loaded\n   Mesa + LLVM (about 23 MB) for nothing. The app detects that and avoids it.\n5. **Markdown is parsed once**, when the message arrives. The UI only lays out the\n   spans, with a **height cache per width**.\n6. **A virtualized list**: binary search for the first visible item, then draw only the screen.\n7. **Memory has ceilings**: 1,500 messages per channel and 3,000 in total, with old ones freed. After a\n   minute in the tray or minimized, images leave memory too, except small ones that were on screen.\n8. **On Linux, fontconfig gets freed** after fonts are resolved (`FcFini` + `malloc_trim`). Windows has\n   no fontconfig: fonts are opened straight from `C:\\Windows\\Fonts`.\n9. **No blinking cursor**: a cursor blinking on its own would keep the CPU awake.\n10. **A lean binary**: a release build without debug symbols. The Linux file is about 14 MB with SDL3, libcurl and OpenSSL inside, built with only the parts the app uses and no exported symbols, and about 8 MB built against the system's copies. On Windows those three come as DLLs next to the `.exe`.\n\n## Building\n\nOn Linux you need **Zig 0.17**, **SDL3**, **FreeType**, **fontconfig** and **libcurl** (with WebSocket, 7.86+).\nRecommended fonts on Linux: Inter, JetBrains Mono and Noto Color Emoji (fontconfig picks substitutes if one is\nmissing). On Windows the app uses Segoe UI, Consolas and Segoe UI Emoji.\nOptional: **FFmpeg 7, 8 or 9** (libavformat 61–63) to play video inside the app; any other version\nis ignored and the video opens in the browser.\n\n```bash\n# Arch\nsudo pacman -S zig sdl3 freetype2 fontconfig curl inter-font ttf-jetbrains-mono noto-fonts-emoji\n\nzig build -Doptimize=ReleaseFast\n.\u002Fzig-out\u002Fbin\u002Flarpercord --theme vidro\n```\n\nThe Windows build is made from Linux. `tools\u002Fwindows_deps.sh` downloads SDL3, curl, OpenSSL, FreeType, Opus,\nzlib and libwebp for Windows, at fixed versions with checked hashes:\n\n```bash\ntools\u002Fwindows_deps.sh && zig build -Dtarget=x86_64-windows-gnu\n```\n\n`zig-out\u002Fbin\u002F` then has `larpercord.exe` with `SDL3.dll`, `libcurl-x64.dll` and `libcrypto-3-x64.dll`: copy the\nfour together. Windows needs no fontconfig and no extra fonts: the app takes Segoe UI, Consolas, Georgia and\nSegoe UI Emoji from `C:\\Windows\\Fonts`.\n\n| Command | |\n|---|---|\n| `zig build test` | tests (KDL, colors, layout, markdown, Store, built-in themes, settings) |\n| `tools\u002Fsnapshots.sh` | generates the screenshots in `docs\u002F` without opening a window |\n| `tools\u002Fmembench.sh 60` | measures RAM and CPU for each theme and fails over 60 MB |\n| `tools\u002Fqa_quadros.py BIN [--slow]` | checks frame skipping and hidden-window memory with a real window in Xvfb |\n| `zig build web -Demscripten=DIR` | the browser demo in WebAssembly ([how](tools\u002Fweb\u002FREADME.md)) |\n\n```\nlarpercord [--theme NAME] [--demo] [--settings] [--list-themes] [--no-live] [--shot FILE.png] [--stats] [--version]\n```\n\nOn Windows, `larpercord.exe` has no console window, so `--help`, `--list-themes`, `--stats` and `--version` print\nnothing in a terminal. To see their output, send it to a file (`--version` writes to standard output: use\n`-RedirectStandardOutput` for it):\n\n```powershell\nStart-Process .\\larpercord.exe -ArgumentList '--list-themes' -RedirectStandardError out.txt -Wait; Get-Content out.txt\n```\n\nOn both systems, options like `--theme` only apply when larperCord isn't running yet: if it's in the tray, a\nsecond start just brings its window back.\n\nShortcuts: `Ctrl+K` palette · `Ctrl+,` settings · `Ctrl+I` inbox · `Ctrl+Shift+S` saved · `F2` next theme · `Ctrl+Tab` tabs ·\n`Alt+1…9` · `Ctrl+W` closes a tab · `Ctrl+Click` opens a channel in a new tab · `↑` edits your last\nmessage · `Esc` cancels a reply or edit · `Ctrl+C` copies the selection · `Ctrl+Shift+M` mute ·\n`Ctrl+Shift+D` deafen · right-click on everything. [All shortcuts →](https:\u002F\u002Frshacudevidro.github.io\u002FlarperCord\u002Fguide\u002Fshortcuts.html)\n\n## Architecture\n\n```\nsrc\u002F\n  core\u002F       plain data, no window: types (snowflakes), Store, markdown, events\n  net\u002F        real (Discord) and demo gateways, each on its own thread, plus the queues\n  theme\u002F      KDL parser, colors, theme loader, layout engine, manager + file watcher\n  ui\u002F         components, rich text, palette, settings, animations\n  platform\u002F   window, renderer, \"wake the loop\"; the only place that knows SDL\nthemes\u002F       the built-in themes (also compiled into the binary)\nthird_party\u002F  Dear ImGui 1.93 + dear_bindings (C), with a small patch for bitmap emoji; GNU FriBidi\n```\n\nThe flow is **UI → `Action` → app → `Command` → gateway → `Event` → Store → UI**.\nThe UI never changes data directly: it only reads the Store and asks for actions. That's why\nswapping the fake gateway for the real one doesn't touch the UI.\n\n## Roadmap\n\n- [x] Real gateway (WebSocket, heartbeat, reconnects) and REST respecting the rate limit\n- [x] Session RESUME and zlib-stream\n- [x] Presences, members and server\u002Fchannel events (GUILD_CREATE, CHANNEL_*)\n- [x] Images: avatars, attachments and custom emoji with a fixed-size cache\n- [x] Per-channel permissions (a padlock on what you can't read), threads and forums\n- [x] Windows 10\u002F11\n- [x] System tray, signed self-updates and install scripts\n- [ ] Native notifications through D-Bus on Linux\n- [x] Voice (DAVE\u002FMLS + Opus)\n- [x] Calls in DMs and groups\n- [x] Rich Presence: show the game you're playing, off by default\n- [x] Moderation: kick, ban, timeout, and server mute and deafen\n- [x] Bot buttons, menus, forms and slash commands\n- [x] Arabic and Hebrew, and fonts for any script\n- [ ] A software backend (`wl_shm`, no GPU) to get to about 15–20 MB\n- [ ] Theme components written in Lua (sandboxed)\n\n**Next**\n\n- [ ] Open from the saved servers, channels and messages, then sync when Discord answers\n- [ ] A texture atlas for avatars and emoji\n- [ ] Server and role settings\n- [ ] A better theme editor\n- [ ] More versatile and more powerful plugins\n- [ ] Windows as a single `.exe` (an experimental build option, `-Dsingle-exe=true`, already makes one)\n\n## License\n\nlarperCord is licensed under the [GNU General Public License v3.0](LICENSE) (`GPL-3.0-only`). Third-party code keeps its own license, in each folder of `third_party\u002F`: Dear ImGui and dear_bindings are MIT, RNNoise is BSD, GNU FriBidi is LGPL-2.1 or later. The file\n`third_party\u002Fimgui\u002Fmisc\u002Ffreetype\u002Fimgui_freetype.cpp` has changes marked with `[larperCord]`.\n","larperCord 是一款轻量级原生 Discord 第三方客户端，专为 Linux 和 Windows 设计，运行时内存占用约 130 MB，远低于 Electron 类客户端。其核心特点是将整个 UI 完全定义在可热重载的 KDL 格式主题文件中，支持 11 套含明\u002F暗双模式的主题，无需重新编译即可切换界面风格；技术栈基于 Zig 语言，依赖 SDL3、Dear ImGui 和 FreeType，零 Electron 依赖。适用于追求低资源占用、高响应速度及高度可定制 UI 的高级用户或开发者，但需注意其违反 Discord 服务条款，仅建议用于测试或次要账号场景。","2026-11-24 04:36:52","CREATED_QUERY"]