Skip to content
Projets

punarinta/make-slack-great-again

Voir sur GitHub

À propos

Native, pure C++, Slack client for Linux, macOS and Windows. Lightweight alternative to the official Electron app.

Productivité et automatisation

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+2
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Make Slack Great Again

A fast native Slack client built in C++, on its own platform, network and graphics layers: no Electron, no web view, no GUI toolkit.

About

msga is a Slack client first and foremost. Channels, DMs, threads, reactions, files and notifications all work the way you expect from Slack, in a window that starts instantly and needs a fraction of the memory of the official app. As a side feature, msga can also show your Claude Code sessions in the same workspace rail, each one as a direct message.

Everything below the UI is msga's own code: a thin OS layer for windows, input and desktop services (Wayland and X11 on Linux and the BSDs, AppKit on macOS, Win32 on Windows), an HTTP and WebSocket client (WinHTTP on Windows, NSURLSession on macOS, msga's own client over Mbed TLS on Linux and the BSDs), and a CPU renderer with FreeType and HarfBuzz for text. The first goal is a small binary that uses few resources.

Platform C++ Release

Demo

msga in action

Download

Linux macOS macOS Intel Windows FreeBSD OpenBSD

The Linux, macOS and Windows downloads are each a single self-contained file. The Linux binary is fully static and runs on any x86_64 distribution, on Wayland or X11. The macOS app comes for Apple Silicon and for Intel Macs and needs macOS 14 or later. msga checks for updates itself. On Linux and Windows it swaps in the new version for the next start; on macOS it downloads the new DMG for you to open.

The FreeBSD and OpenBSD downloads are a .tar.gz with the binary, its icon, a .desktop file and a README.txt naming the few packages to install first (pkg install / pkg_add). The FreeBSD build runs on FreeBSD 14; the OpenBSD build is for OpenBSD 7.9, as each OpenBSD release renumbers its libraries. On the BSDs msga doesn't update itself: download the new archive.

msga Multibackend is the same app with more services: it adds Mattermost servers (every team you're in becomes a workspace) next to Slack and Claude Code. It comes for Linux, Windows and Apple Silicon Macs and updates itself like the standard build: Linux · macOS Apple Silicon · Windows. To build it yourself, configure with -DMSGA_MULTIBACKEND=ON.

On Wayland, launch with QT_WAYLAND_DISABLE_WINDOWDECORATION=1 to hide msga's title bar and the inset along the right and bottom edges.

On macOS you can also install with Homebrew: brew install --cask punarinta/msga/msga. msga isn't notarized by Apple, so on first launch open System Settings → Privacy & Security and click "Open Anyway".

Connecting to Slack

Grab a prebuilt build and you can connect Slack straight away. Click + (Add workspace) in the rail and choose Slack. There are two ways to sign in:

  • Slack session (recommended). Click Sign in with Chrome (or Chromium, Brave, Edge or Vivaldi, whichever you have) and log in to Slack the normal way. msga picks the session up from a private, throwaway browser profile and closes the window. There is nothing to register, nothing to build and no tokens to copy, and everything runs on your own account's limits. New messages arrive by polling, as there is no live push in this mode. (Already have the Slack desktop app on Linux? Import from local Slack takes its session in one click. You can also paste the session cookie by hand.)
  • Your own Slack app. Register a free Slack app for live message push (Socket Mode), then paste its client ID, client secret and app-level token into Settings → System → Slack connection.

Both are covered step by step in the Slack setup guide. Most people want session sign-in, because it needs no setup at all.

Coming from slk?

slk is a great Slack client if you live in a terminal. If you want the same speed in a desktop window, msga is the closest thing:

  • No Slack desktop app needed. msga signs in through your browser, so the Electron app doesn't have to be installed to hold a session.
  • Images where you expect them. Images, animated GIFs and custom emoji are drawn in the window on every platform, whatever your terminal supports.
  • Even smaller. 4.3 MB on Linux, 3.8 MB on Windows, a 2.2 MB DMG on macOS. One file each.

The full side-by-side is at slk vs msga.

Connecting Claude Code

Click + (Add workspace) in the rail and choose Claude Code. msga needs a working Claude Code install. If claude has never been run on this computer, run it once in a terminal first.

msga reads the sessions from Claude Code's own state, so sessions you started in a terminal show up too (read-only while a terminal drives them). What you send from msga runs as a Claude Code background session, which keeps working if msga quits. Sessions can be started with a role from your team (the built-in specialists or teammates you add), and when you remove a session that msga started, msga cleans up its git worktrees as well.

Mention a teammate (@Engineer, @Designer, …) in a session and it gets to work in a thread of its own, where you can reply to it directly. Slash commands, files Claude makes (shown as attachments) and new teammates with their own instructions all work from the same window:

Claude Code sessions in msga

Or build your own version

You can build msga yourself, for example to bake your own Slack app keys into the binary. Note that Slack session sign-in and Claude Code need no keys at all: they work with a plain build.

Step 1. Add Slack app keys (optional)

To build in your own Slack app's keys, follow the Slack setup guide: create a Slack app with its scopes, Socket Mode and events. The guide ends by writing the keys into credentials.cmake (copy credentials.cmake.example; the file is gitignored). The same file takes an optional GIPHY key for the GIF picker. Keys pasted in Settings → System take precedence over the built-in ones.

The app version lives in version.cmake (tracked in git). Increment MSGA_VERSION there before each public release.

Step 2. Configure build environment

Prerequisites: CMake ≥ 3.21, Ninja, a C++20 compiler (Clang with lld preferred, GCC works too), pkg-config and Python 3. On Windows the compiler is MSYS2's mingw64 GCC; MSVC is not supported.

The configure scripts install and check everything a build needs:

./scripts/configure-linux.sh    # for Linux (Debian/Ubuntu, apt)
./scripts/configure-mac.sh      # for macOS (Xcode command line tools + Homebrew)
sh scripts/configure-bsd.sh     # for FreeBSD and OpenBSD (pkg / pkg_add)
  • Linux: installs the compiler and build tools plus the development packages of FreeType, HarfBuzz, xkbcommon, Wayland, XCB and D-Bus. On other distributions, install the equivalents (the script lists them when apt isn't there). Add --release to also install what the release scripts use: Docker (checked, not installed), Xvfb and Wine.
  • macOS: only cmake, ninja and clang-format come from Homebrew. The app links nothing but the system frameworks, and msga's CMake builds FreeType and HarfBuzz itself.
  • FreeBSD and OpenBSD: a plain sh script, so it runs before bash is installed. It uses the base system's clang and lld, and installs cmake, ninja, git, Python 3, bash and the development packages of xkbcommon, Wayland, XCB and D-Bus (on OpenBSD, XCB comes from the X11 sets, which must be installed), plus the Noto Sans font. On FreeBSD it also adds DejaVu fonts, the en_US Hunspell dictionary, sndio for the notification sound and an LLVM package for clang-format. msga's CMake builds FreeType and HarfBuzz itself. Run it as root, or as a user with doas or sudo. FreeBSD 14 and OpenBSD 7.9 are built and tested natively.

On Windows, run the PowerShell script from an elevated (Administrator) terminal. It uses winget to install Git and LLVM (for clang-format), and installs MSYS2 to C:\msys64 (or $env:MSYS2_ROOT) with its mingw64 GCC, CMake, Ninja and Python:

scripts\configure-windows.ps1

If you see "running scripts is disabled", enable local scripts first (one-time, machine-wide):

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

Or bypass the policy for a single run without changing the system setting:

powershell -ExecutionPolicy Bypass -File scripts\configure-windows.ps1

Step 3. Build and run

./scripts/build.sh
./build/msga                            # for Linux, FreeBSD and OpenBSD
./build/msga.app/Contents/MacOS/msga    # for macOS

On Windows (needs MSYS2 at C:\msys64, or set MSYS2_ROOT):

scripts\build.ps1
build\msga.exe

build.ps1 copies the GCC runtime DLLs next to msga.exe, so it also starts from Explorer. If you see "running scripts is disabled", see the execution policy note in Step 2, or run directly:

powershell -ExecutionPolicy Bypass -File scripts\build.ps1

Both build scripts take the same options:

Option What it does
(none) Size-optimised (MinSizeRel) build into build/
--debug Debug build into build-debug/
--test Also builds and runs the test suites (combines with --debug)

--test stays on in that build directory once you've used it.

On Linux you can also cross-build for FreeBSD and OpenBSD (amd64), for example to check that a change still compiles there: scripts/build-bsd-cross.sh freebsd (or openbsd) fetches a sysroot once and builds into build-freebsd/. See src/README.md for the details.

Step 4. Release builds (optional)

scripts/release.sh (Linux, macOS) and scripts\release.ps1 (Windows) make a stripped release-flags build for the machine you're on, always from a clean configure with no tests. They write to build-release/ and print the per-module size report. release.ps1 links the exe fully static, like the shipped one.

For the source layout and the size rules, see src/README.md.

Porting to another OS

msga needs little from an operating system: a surface to draw into, input events, TLS networking, threads, files and a clock. A new OS implements one small C interface for those and gets the rest of the app as it is. Porting msga anywhere lists what to provide and the steps.

License

msga is free software under the GNU General Public License v3.0 or later. The third-party code it uses is listed in THIRD_PARTY_LICENSES.

Explorer des projets similaires

Chargement…