# @xhayper/discord-rpc

> a fork of discordjs/RPC

Latest version **1.5.0** (published 2026-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @xhayper/discord-rpc
pnpm add @xhayper/discord-rpc
yarn add @xhayper/discord-rpc
bun add @xhayper/discord-rpc
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2026-09-24 |
| First published | 2022-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 94 |
| Author | xhayper |
| Maintainers | xhayper |
| Keywords | typescript, discord, ipc, rpc, rich-presence, discord-rpc, discord-ipc |

## Links

- npm: https://www.npmjs.com/package/@xhayper/discord-rpc
- Repository: https://github.com/xhayper/discord-rpc
- Homepage: https://github.com/xhayper/discord-rpc#readme
- Issues: https://github.com/xhayper/discord-rpc/issues
- npm.io page: https://npm.io/package/@xhayper/discord-rpc

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.5.0 (latest) — 2026-09-24
- 1.4.0 — 2026-09-24
- 1.3.5 — 2026-09-24
- 1.3.4 — 2026-04-24
- 1.3.3 — 2026-03-26
- 1.3.2 — 2026-03-26
- 1.3.1 — 2026-02-24
- 1.3.0 — 2025-07-20
- 1.2.2 — 2025-05-27
- 1.2.1 — 2025-03-18
- 1.2.0 — 2024-07-30
- 1.1.8 — 2024-07-29
- 1.1.7 — 2024-07-29
- 1.1.6 — 2024-07-29
- 1.1.5 — 2024-07-29
- … 42 more at https://npm.io/package/@xhayper/discord-rpc/versions

## README

<!-- markdownlint-disable -->
<div align="center">
    <br />
    <h3>@xhayper/discord-rpc</h3>
    <br />
    <p>
        <a href="https://www.npmjs.com/package/@xhayper/discord-rpc" target="_blank"><img src="https://img.shields.io/npm/v/@xhayper/discord-rpc.svg" alt="npm version"/></a>
        <a href="https://discord.com/invite/xTAR8nUs2g" target="_blank"><img src="https://img.shields.io/discord/965168309731487805.svg" alt="discord"/></a>
    </p>
</div>
<!-- markdownlint-enable -->

## About

`@xhayper/discord-rpc` is a fork of [discordjs/RPC](https://github.com/discordjs/RPC) with type safety and some additional features.

## Example

```ts
import { Client } from "@xhayper/discord-rpc";

const client = new Client({
    clientId: "123456789012345678"
});

client.on("ready", () => {
    client.user?.setActivity({
        state: "Hello, world!"
    });
});

client.login();
```

## Credits

- [discordjs](https://github.com/discordjs): Making [discordjs/RPC](https://github.com/discordjs/RPC)
- [JakeMakesStuff](https://github.com/JakeMakesStuff): [snap support](https://github.com/discordjs/RPC/pull/152)
- [Snazzah](https://github.com/Snazzah): [snap + flatpak support](https://github.com/Snazzah/SublimeDiscordRP/blob/c13e60cdbc5de8147881bb232f2339722c2b46b4/discord_ipc/__init__.py#L208)
- [leonardssh](https://github.com/leonardssh): Making [coc-discord-rpc](https://github.com/leonardssh/coc-discord-rpc) which inspried me to make this package due to how old [discordjs/RPC](https://github.com/discordjs/RPC) is

---
_Source: https://npm.io/package/@xhayper/discord-rpc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
