Modern C++ Discord RPC library
  • C++ 96.6%
  • CMake 3.4%
Find a file
2026-02-25 19:01:44 +02:00
.github/workflows assembly for masm 2025-02-22 03:11:06 +02:00
cmake Initial commit 2025-02-21 18:38:25 +02:00
include fix static dtor ordering issues 2026-02-25 19:01:44 +02:00
src fix static dtor ordering issues 2026-02-25 19:01:44 +02:00
test split into headers, use actual queue 2025-07-23 15:13:30 +03:00
.gitignore fix: cleanup in Connection destructor 2026-01-07 16:01:15 +02:00
CMakeLists.txt bump glaze version to the latest - 7.0.2 (#9) 2026-02-23 16:45:36 +02:00
LICENSE.md year 2026 2026-01-07 23:17:19 +02:00
README.md split into headers, use actual queue 2025-07-23 15:13:30 +03:00

Discord RPC

A simple Discord Rich Presence library for C++ made from scratch.

Note

: Project is still in development. Please report any issues you find.

Checklist:

  • Handshake
  • Update presence with custom data
  • More features (buttons, activity type, etc.)
  • Linux support
  • MacOS support
  • Windows support
  • Out-of-the-box Wine support (Only supports Wine Staging 10.2+ because of AF_UNIX socket support)
  • Events (join, spectate, etc.)
  • Auto register (for steam games)
  • Social SDK features
  • Documentation
  • Examples

What's new?

In spite of the deprecation of the original library, many people still want to use it. This library is a complete rewrite of the original library that uses a modern C++ style and has more features.

Features

  • Modern C++: This library is written in C++23 and follows builder patterns as much as possible.
  • More features: Implements new features from Discord RPC documentation that is not present in the original library, such as buttons, activity type, and more.
  • Project integration: Say goodbye to copying library files or dealing with RapidJSON errors. This library can be easily integrated into your project without any hassle.
  • Cross-platform: This library is designed to work on all supported platforms, including Linux, macOS, and Windows.
  • Wine support: Library provides internal layer to support Wine, no extra configuration needed.

Prerequisites

  • CMake: This project uses CMake to build the library. Make sure you have CMake installed on your system.
  • C++23: Required for Glaze, a fast JSON library used in this project.
  • Discord Developer Portal: You need to create an application on the Discord Developer Portal to use this library. You can create an application here.

Credits

  • Discord: For creating the original library.
  • Glaze: JSON library
  • fmtlib: Formatting library

License

This project is licensed under the MIT License. See the LICENSE.md file for details.