# @sapphire/pieces

> Sapphire's piece loader.

Latest version **4.4.1** (published 2025-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sapphire/pieces
pnpm add @sapphire/pieces
yarn add @sapphire/pieces
bun add @sapphire/pieces
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 4.4.1 |
| Published | 2025-06-06 |
| First published | 2020-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=v14.0.0 |
| Dependencies | 3 |
| Unpacked size | 324.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 21 |
| Author | @sapphire |
| Maintainers | favna, vladfrangu, kyranet |
| Keywords | discordjs, bot, typescript, ts, yarn, discord, sapphire |

## Links

- npm: https://www.npmjs.com/package/@sapphire/pieces
- Repository: https://github.com/sapphiredev/pieces
- Homepage: https://www.sapphirejs.dev
- Issues: https://github.com/sapphiredev/pieces/issues
- npm.io page: https://npm.io/package/@sapphire/pieces

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [@sapphire/utilities](https://npm.io/package/@sapphire/utilities.md) ^3.18.2
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^2.1.1

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 4.4.1 (latest) — 2025-06-06
- 4.4.2-next.dd25553 (next) — 2026-03-08
- 4.2.3-pr-379.9f487c4.0 (pr-379) — 2024-01-20
- 4.2.0-pr-369.8d91a55.0 (pr-369) — 2023-12-23
- 4.0.0 (upcoming) — 2023-12-04
- 4.4.2-next.f3830bd — 2026-03-01
- 4.4.2-next.ca866ff — 2026-02-22
- 4.4.2-next.a5a5de2 — 2026-02-15
- 4.4.2-next.58e4e52 — 2026-02-08
- 4.4.2-next.59ae949 — 2026-02-01
- 4.4.2-next.8bd0d27 — 2026-01-25
- 4.4.2-next.e5909f9 — 2026-01-18
- 4.4.2-next.9177116 — 2026-01-11
- 4.4.2-next.081b724 — 2026-01-04
- 4.4.2-next.e95b4a8 — 2025-12-21
- … 570 more at https://npm.io/package/@sapphire/pieces/versions

## README

<div align="center">

![Sapphire Logo](https://raw.githubusercontent.com/sapphiredev/assets/main/banners/SapphireCommunity.png)

# @sapphire/pieces

**Sapphire's piece loader.**

[![GitHub](https://img.shields.io/github/license/sapphiredev/pieces)](https://github.com/sapphiredev/pieces/blob/main/LICENSE.md)
[![npm](https://img.shields.io/npm/v/@sapphire/pieces?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@sapphire/pieces)

</div>

## Description

Pieces make up the core of the [Sapphire Framework][]. In the design of [Sapphire Framework][] your commands, events, preconditions and more are "pieces". They are pieces of your code, that make up the whole.

## Buy us some doughnuts

Sapphire Community is and always will be open source, even if we don't get donations. That being said, we know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!

We accept donations through Open Collective, Ko-fi, Paypal, Patreon and GitHub Sponsorships. You can use the buttons below to donate through your method of choice.

|   Donate With   |                       Address                       |
| :-------------: | :-------------------------------------------------: |
| Open Collective | [Click Here](https://sapphirejs.dev/opencollective) |
|      Ko-fi      |      [Click Here](https://sapphirejs.dev/kofi)      |
|     Patreon     |    [Click Here](https://sapphirejs.dev/patreon)     |
|     PayPal      |     [Click Here](https://sapphirejs.dev/paypal)     |

## Contributors

Please make sure to read the [Contributing Guide][contributing] before making a pull request.

Thank you to all the people who already contributed to Sapphire!

<a href="https://github.com/sapphiredev/pieces/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=sapphiredev/pieces" />
</a>

[contributing]: https://github.com/sapphiredev/.github/blob/main/.github/CONTRIBUTING.md
[sapphire framework]: https://github.com/sapphiredev/framework
[klasa]: https://github.com/dirigeants/klasa

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