npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

arrpc

v3.3.1

Published

Open Discord RPC server for atypical setups

Downloads

27

Readme

arRPC is an open source implementation of Discord's half-documented local RPC servers for their desktop client. This open source implementation purely in NodeJS allows it to be used in many places where it is otherwise impossible to do: Discord web and alternative clients like ArmCord/etc. It opens a simple bridge WebSocket server which messages the JSON of exactly what to dispatch with in the client with no extra processing needed, allowing small and simple mods or plugins. arRPC is experimental and a work in progress, so expect bugs, etc.

Rich Presence (RPC) is the name for how some apps can talk to Discord desktop on your PC via localhost servers to display detailed info about the app's state. This usually works via parts of Discord desktop natively doing things + parts of Discord web interpreting that and setting it as your status. arRPC is an open source implementation of the local RPC servers on your PC, allowing apps to talk to it thinking it was just normal Discord. It can then send that info to apps which usually don't get RPC, like Discord Web, ArmCord, etc. which can then set that as your status. This would otherwise not be possible, as web apps/browsers/etc can't just use Discord's already existing code and version.

  • App with Discord RPC
  • ~~Discord Desktop's native server~~ arRPC
  • ~~Discord Web's setting~~ mod/plugin

Usage

Server (REQUIRED)

  1. Have latest (>=18) Node installed
  2. Clone GitHub repo
  3. npm install
  4. Run server with node src

Web

No Mods

  1. Get the arRPC server running
  2. With Discord open, run the content of examples/bridge_mod.js in Console (Ctrl+Shift+I).

Vencord

  1. Get the arRPC server running
  2. Just enable the WebRichPresence (arRPC) Vencord plugin!

Custom Clients

ArmCord

ArmCord has arRPC specially integrated, just enable the option in it's settings (server not required)!

Webcord

  1. Get the arRPC server running
  2. Disable the Use built-in Content Security Policy option in Advanced settings: image
  3. With Webcord open, run the content of examples/bridge_mod.js in the DevTools Console (Ctrl+Shift+I).

Then just use apps with Discord RPC like normal and they should work!

Supported

Transports

  • [X] WebSocket Server
    • [X] JSON
    • [ ] Erlpack
  • [ ] HTTP Server
  • [X] IPC
  • [X] Process Scanning

Commands

  • [X] DISPATCH
  • [X] SET_ACTIVITY
  • [X] INVITE_BROWSER
  • [X] GUILD_TEMPLATE_BROWSER
  • [X] DEEP_LINK