r/coolgithubprojects • • 12m ago

Cloud RPC: Self-hosted, tokenless 24/7 Discord Rich Presence & device spoofer dashboard powered by OAuth2 (Node.js)

Post image

I open-sourced Cloud RPC, a self-hosted Node.js web dashboard for running 24/7 Discord Rich Presence without needing raw user account tokens.

How it works under the hood: Instead of scraping or storing user tokens like traditional self-bots, users log in through Discord's official OAuth2 flow requesting only identify and sdk.social_layer_presence. The backend manages the token lifecycle (proactive refresh + 4004/401 recovery), opens a Gateway WebSocket session per user, handles op: 2 device identification (Desktop, Mobile, Web, VR, PS5, Xbox), proxies external images through Discord's external-assets endpoint with an LRU cache, and broadcasts updates via op: 3.

Main features:

  • Multi-user web dashboard (EN/AR) with live preview and hardened auth/CSP
  • 6-platform Gateway device spoofing with fast session re-identification
  • Live Spotify presence spoofer with auto-looping timestamps
  • 10 saved preset profiles, Auto-Rotator, and dual-mode Smart Sleep scheduler
  • Local searchable cache of 24,000+ Discord detectable games

Repo (MIT License): https://github.com/Mohammask/cloud-rpc

Full setup instructions (including enabling the Social SDK scope in the Discord Developer Portal) are in the README. Feedback on the architecture or security hardening is always welcome.

1 Upvotes

0 comments sorted by