{"library":"heap-js","type":"library","category":null,"description":"heap-js is an efficient JavaScript/TypeScript library providing a binary heap data structure, often used as a priority queue. It offers interfaces familiar to developers accustomed to Python's `heapq` module and Java's `PriorityQueue`, making it versatile for various algorithm implementations. The library is actively maintained, with the current stable version being 2.7.1, and receives frequent minor updates focusing on performance enhancements and new features like the `HeapAsync` class for asynchronous operations and comparators. Key differentiators include its robust performance, comprehensive testing, and support for both synchronous and asynchronous heap management, allowing it to handle complex prioritization logic. Instances default to an integer min-heap, with full customization options available for element comparison, aiming to be significantly faster than array sorting for common push/pop/peek operations in many scenarios.","language":"javascript","status":"active","version":"2.7.1","tags":["javascript","heap","binary heap","priority queue","tree","binary tree","data structure","algorithm","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install heap-js","imports":["import { Heap } from 'heap-js';","import { HeapAsync } from 'heap-js';","import type { Comparator } from 'heap-js';"]},{"cmd":"yarn add heap-js","imports":[]},{"cmd":"pnpm add heap-js","imports":[]}],"homepage":null,"github":"https://github.com/ignlg/heap-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/heap-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/heap-js/compatibility"}}