Package
heap-js
Efficient Binary heap (priority queue, binary tree) data structure for JavaScript / TypeScript. Includes JavaScript methods, Python's heapq module methods, and Java's PriorityQueue methods.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 6.3m
- +223% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 11 months ago
- v2.7.1
- GitHub stars
- 167
- 12 forks
- Open issues / PRs
- 3 / 1
- Contributors
- -
- Commits, last 52 weeks
- 12
Downloads
Last week 2026-09-15 to 2026-09-21
6,260,189 downloads last week, 31,473,471 in the last month. The 12-month change of +223% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 124 in total
- Latest version
- 2.7.1, 30 Sept 202511 months ago
- First published
- 26 Jul 2017
- Last push to GitHub
- 9 Jan 2026258 days before the snapshot
- Repository archived
- No
- Open issues
- 3
- Open pull requests
- 1
- Commits, last 52 weeks
- 12
- Dependents on npm
- 65
Major versions
- v2 first release 2.0.0, 2 May 2020
- v1 first release 1.1.0, 26 Jul 2017
Recent releases
| Version | Published |
|---|---|
| 2.7.1 | 30 Sept 2025 |
| 2.6.0 | 28 Dec 2024 |
| 2.5.0 | 1 Mar 2024 |
| 2.3.0 | 24 May 2023 |
| 2.2.0 | 10 May 2022 |
| 2.1.6 | 12 Jul 2021 |
| 2.1.5 | 26 Mar 2021 |
| 2.1.4 | 18 Dec 2020 |
| 2.1.3 | 23 Nov 2020 |
| 2.1.2 | 1 Sept 2020 |
| 2.1.1 | 28 May 2020 |
| 2.1.0 | 28 May 2020 |
| 2.0.0 | 2 May 2020 |
| 1.5.2 | 30 Mar 2020 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=10.0.0
- Runtimes
- -
- Unpacked size (npm)
- 218 kB
- Dependencies (0)
- None
npm install heap-js- jsDelivr
https://cdn.jsdelivr.net/npm/heap-js@2.7.1/ - unpkg
https://unpkg.com/heap-js@2.7.1/ - esm.sh
https://esm.sh/heap-js@2.7.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| bun-types | 11.4m | - | 19 days ago | - | - |
| grammy | 3.8m | - | 29 days ago | CommonJS | - |
| @clickhouse/client | 2.3m | - | 2 months ago | CommonJS | - |
| inversify | 1.9m | - | 2 months ago | ESM only | - |
| @inversifyjs/core | 1.1m | - | 2 months ago | ESM only | - |
| @inversifyjs/reflect-metadata-utils | 1.1m | - | 6 months ago | ESM only | - |
| @inversifyjs/common | 1.1m | - | 6 months ago | ESM only | - |
| junit-report-builder | 950.2k | - | 5 months ago | ESM + CommonJS | - |
Indexability: Indexed.