# @datastructures-js/priority-queue

> A heap-based implementation of priority queue in javascript with typescript support.

Latest version **6.4.0** (published 2026-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @datastructures-js/priority-queue
pnpm add @datastructures-js/priority-queue
yarn add @datastructures-js/priority-queue
bun add @datastructures-js/priority-queue
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.4.0 |
| Published | 2026-07-30 |
| First published | 2018-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 682 |
| Author | Eyas Ranjous |
| Maintainers | eyas-ranjous |
| Keywords | queue, priority queue, priority queue es6, priority queue js |

## Links

- npm: https://www.npmjs.com/package/@datastructures-js/priority-queue
- Repository: https://github.com/datastructures-js/priority-queue
- Homepage: https://github.com/datastructures-js/priority-queue#readme
- Issues: https://github.com/datastructures-js/priority-queue/issues
- npm.io page: https://npm.io/package/@datastructures-js/priority-queue

## Dependencies (1)

- [@datastructures-js/heap](https://npm.io/package/@datastructures-js/heap.md) ^4.3.7

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 6.4.0 (latest) — 2026-07-30
- 6.3.5 — 2025-10-13
- 6.3.4 — 2025-08-27
- 6.3.3 — 2025-05-06
- 6.3.2 — 2025-01-06
- 5.4.1 — 2025-01-06
- 6.3.1 — 2024-01-23
- 4.2.0 — 2024-01-08
- 5.4.0 — 2024-01-08
- 6.3.0 — 2023-05-30
- 6.2.0 — 2023-01-16
- 6.1.4 — 2022-11-07
- 6.1.3 — 2022-09-05
- 6.1.2 — 2022-08-16
- 6.1.1 — 2022-06-27
- … 20 more at https://npm.io/package/@datastructures-js/priority-queue/versions

## README

# @datastructures-js/priority-queue

## Docs
https://datastructures-js.info/docs/priority-queue

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