How do use Discord RPC

How do you use discord RPC?
Can anyone help?
and send a example code that works?
Please and thank you!

3 things

  1. What language are you using?
  2. What framework or library are you using?
  3. What part of discord RPC do you want to use. Would you like to change the part where it says “playing…”
  1. javascript/node
  2. discord RPC/npm
  3. I whant to have stats and have the logo and small image

im using ipc now, so thats my libarry

RPC apps need to be run on your computer to connect to your client; you can’t run them in Glitch.