Discord Rich Presence client that can display anything if WebSocket client is implemented.
This give an ability to any web app to connect via WebSocket and send presence packet.
It can display up to 4 different activities with different app name (if you need more please open an issue)
Activitystructure
For WebSocket (Prefer)
- Connect to
http://127.0.0.1:5579/ws - Send packet like below
{
"action": "SET" | "CLEAR",
"activity": { ... },
}For HTTP Endpoint
-
Set presence:
POSTto/api/set-presence| ifapp_idis null, it'll spawn a presence andapp_idwill be return{ "activity": { ... }, "app_id": null }
-
Clear presence:
POSTto/api/clear-presence| requiredapp_idto be the body1246549832349
- Clone this repo
Important
Web UI is currently required to build final executable
- Install
node,bunor alternatives - Install web UI dependencies
bun install- Build using command below
bun run build- Run the following
cargo b -rThis will produce 2 binaries: enoact and enoact-presence.
You can ignore enoact-presence entirely as it is just an internal tool for enoact so you only need to run enoact.
enoact rely on enoact-presence to display an activity so you will have to place them together or add enoact-presence to PATH.