open-index/open-npm huggingface dataset:
npm package: @ovencord/next
Description: A powerful TypeScript library for interacting with the Discord API
Latest version: 0.1.4

<div align="center">
	<br />
	<p>
		<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
	</p>
	<br />
	<p>
		<a href="https://discord.gg/djs"><img src="https://img.shields.io/badge/join_us-on_discord-5865F2?logo=discord&logoColor=white" alt="Discord server" /></a>
		<a href="https://github.com/ovencord/ovencord/actions"><img src="https://github.com/ovencord/ovencord/actions/workflows/tests.yml/badge.svg" alt="Build status" /></a>
		<a href="https://github.com/ovencord/ovencord/commits/main/packages/next"><img alt="Last commit." src="https://img.shields.io/github/last-commit/ovencord/ovencord?logo=github&logoColor=ffffff&path=packages%2Fnext" /></a>
		<a href="https://opencollective.com/discordjs"><img src="https://img.shields.io/opencollective/backers/discordjs?maxAge=3600&logo=opencollective" alt="backers" /></a>
	</p>
	<p>
		<a href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"><img src="https://raw.githubusercontent.com/ovencord/ovencord/main/.github/powered-by-vercel.svg" alt="Vercel" /></a>
		<a href="https://www.cloudflare.com"><img src="https://raw.githubusercontent.com/ovencord/ovencord/main/.github/powered-by-workers.png" alt="Cloudflare Workers" height="44" /></a>
	</p>
</div>

## Installation

**Node.js 22.12.0 or newer is required.**

```sh
npm install @ovencord/next
yarn add @ovencord/next
pnpm add @ovencord/next
bun add @ovencord/next
```

## Links

- [Website][website] ([source][website-source])
- [Guide][guide] ([source][guide-source])
  Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
- [discord.js Discord server][discord]
- [Discord Developers Discord server][discord-developers]
- [GitHub][source]
- [npm][npm]
- [Related libraries][related-libs]

## Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
[documentation][documentation].  
See [the contribution guide][contributing] if you'd like to submit a PR.

## Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org
[website-source]: https://github.com/ovencord/ovencord/tree/main/apps/website
[documentation]: https://discord.js.org/docs/packages/next/stable
[guide]: https://discordjs.guide
[guide-source]: https://github.com/ovencord/ovencord/tree/main/apps/guide
[guide-update]: https://discordjs.guide/legacy/additional-info/changes-in-v14
[discord]: https://discord.gg/djs
[discord-developers]: https://discord.gg/discord-developers
[source]: https://github.com/ovencord/ovencord/tree/main/packages/next
[npm]: https://www.npmjs.com/package/@ovencord/next
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
[contributing]: https://github.com/ovencord/ovencord/blob/main/.github/CONTRIBUTING.md
npm package: @ovencord/rest
Description: The REST API for discord.js
Latest version: 2.6.1

<div align="center">
	<br />
	<p>
		<a href="https://ovencord.dev"><img src="https://github.com/ovencord.png" width="150" alt="ovencord" /></a>
	</p>
	<br />
	<p>
		<a href="https://discord.gg/ovencord"><img src="https://img.shields.io/badge/join_us-on_discord-5865F2?logo=discord&logoColor=white" alt="Discord server" /></a>
		<a href="https://www.npmjs.com/package/@ovencord/rest"><img src="https://img.shields.io/npm/v/@ovencord/rest.svg?maxAge=3600" alt="npm version" /></a>
		<a href="https://github.com/ovencord/ovencord/actions"><img src="https://github.com/ovencord/ovencord/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
	</p>
</div>

# @ovencord/rest

**High-performance, Bun-native Discord REST client.**

`@ovencord/rest` is a modernized fork of `@ovencord/rest`, rebuilt from the ground up to leverage the full power of the Bun runtime. It maintains 100% API compatibility with the original package while offering superior performance and zero legacy bloat.

## 🥟 Why Ovencord-REST?

| Feature | @ovencord/rest | @ovencord/rest |
|---------|-----------------|----------------|
| **Runtime** | Node.js | **Bun Native** |
| **HTTP Client** | undici (Legacy) | **Bun.fetch** (Native Zig) |
| **File Handling** | node:fs / Buffer | **Bun.file** / Uint8Array |
| **Dependencies** | ~10+ | **Minimal** |
| **Build Step** | Required (CJS/ESM) | **None** (Source-only) |
| **Speed** | Standard | **Up to 2x faster request cycle** |

### ✨ Architectural Shift
We replaced the complex `undici` dispatcher and Node.js-specific stream handling with a clean, Web-Standard implementation powered by Bun's native Zig-accelerated `fetch`.

## 📦 Installation

**Bun 1.0.0 or newer is required.**

```sh
bun add @ovencord/rest
```

## 🚀 Examples

### Send a basic message

```typescript
import { REST } from '@ovencord/rest';
import { Routes } from 'discord-api-types/v10';

const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN!);

try {
	await rest.post(Routes.channelMessages(CHANNEL_ID), {
		body: {
			content: 'Cooked with Bun! 🥟',
		},
	});
} catch (error) {
	console.error(error);
}
```

### Uploading a file (Bun Native)

```typescript
import { REST } from '@ovencord/rest';
import { Routes } from 'discord-api-types/v10';

const rest = new REST({ version: '10' }).setToken(TOKEN);

await rest.post(Routes.channelMessages(CHANNEL_ID), {
	files: [
		{
			attachment: Bun.file('./logo.png'),
			name: 'logo.png',
		},
	],
});
```

## 🛠️ Performance Features

- **Zero-Copy**: Optimized binary handling using `Uint8Array` instead of `Buffer` where possible.
- **Native Fetch**: Uses Bun's specialized `fetch` implementation for lower overhead.
- **Source-Only**: No more `dist` folders. Bun loads the TypeScript source directly, leading to faster startup times and better stack traces.

## 🤝 Contributing

See [the contribution guide](https://github.com/ovencord/ovencord/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.

## 📜 License

Apache-2.0 © Ovencord Contributors  
Original discord.js code © Discord.js Contributors
npm package: @ovencord/ui
Description: <div align="center"> 	<br /> 	<p> 		<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a> 	</p> 	<br /> 	<p> 		<a href="https://discord.gg/djs"><img src="https://img.shields.io/badge/join_us
Latest version: 0.1.3

<div align="center">
	<br />
	<p>
		<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
	</p>
	<br />
	<p>
		<a href="https://discord.gg/djs"><img src="https://img.shields.io/badge/join_us-on_discord-5865F2?logo=discord&logoColor=white" alt="Discord server" /></a>
		<a href="https://github.com/ovencord/ovencord/actions"><img src="https://github.com/ovencord/ovencord/actions/workflows/tests.yml/badge.svg" alt="Build status" /></a>
		<a href="https://opencollective.com/discordjs"><img src="https://img.shields.io/opencollective/backers/discordjs?maxAge=3600&logo=opencollective" alt="backers" /></a>
	</p>
	<p>
		<a href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"><img src="https://raw.githubusercontent.com/ovencord/ovencord/main/.github/powered-by-vercel.svg" alt="Vercel" /></a>
		<a href="https://www.cloudflare.com"><img src="https://raw.githubusercontent.com/ovencord/ovencord/main/.github/powered-by-workers.png" alt="Cloudflare Workers" height="44" /></a>
	</p>
</div>

## Links

- [Website][website] ([source][website-source])
- [Guide][guide] ([source][guide-source])
  Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
- [discord.js Discord server][discord]
- [Discord Developers Discord server][discord-developers]
- [GitHub][source]
- [Related libraries][related-libs]

## Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested.  
See [the contribution guide][contributing] if you'd like to submit a PR.

## Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org
[website-source]: https://github.com/ovencord/ovencord/tree/main/apps/website
[guide]: https://discordjs.guide
[guide-source]: https://github.com/ovencord/ovencord/tree/main/apps/guide
[guide-update]: https://discordjs.guide/legacy/additional-info/changes-in-v14
[discord]: https://discord.gg/djs
[discord-developers]: https://discord.gg/discord-developers
[source]: https://github.com/ovencord/ovencord/tree/main/packages/ui
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
[contributing]: https://github.com/ovencord/ovencord/blob/main/.github/CONTRIBUTING.md