{"id":16795641,"url":"https://github.com/heap-data-structure/d-ary-heap","last_synced_at":"2025-10-16T11:33:13.640Z","repository":{"id":32837386,"uuid":"36430713","full_name":"heap-data-structure/d-ary-heap","owner":"heap-data-structure","description":":octopus: d-ary heap data structure library for JavaScript","archived":false,"fork":false,"pushed_at":"2024-10-11T01:38:55.000Z","size":5046,"stargazers_count":0,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T09:16:57.589Z","etag":null,"topics":["agpl","binary-heap","computer-science","d-ary-heap","data-structures","heaps","javascript","worst-case"],"latest_commit_sha":null,"homepage":"https://heap-data-structure.github.io/d-ary-heap","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heap-data-structure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-28T10:17:03.000Z","updated_at":"2024-10-11T01:38:57.000Z","dependencies_parsed_at":"2023-02-10T01:00:35.245Z","dependency_job_id":"fc95032b-d052-4f17-abec-1513d5e20844","html_url":"https://github.com/heap-data-structure/d-ary-heap","commit_stats":{"total_commits":630,"total_committers":9,"mean_commits":70.0,"dds":0.5555555555555556,"last_synced_commit":"37ea632cd782f0e6e4e8982734e931b5fad0a56d"},"previous_names":["aureooms/js-d-ary-heap"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heap-data-structure%2Fd-ary-heap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heap-data-structure%2Fd-ary-heap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heap-data-structure%2Fd-ary-heap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heap-data-structure%2Fd-ary-heap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heap-data-structure","download_url":"https://codeload.github.com/heap-data-structure/d-ary-heap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893385,"owners_count":20527584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agpl","binary-heap","computer-science","d-ary-heap","data-structures","heaps","javascript","worst-case"],"created_at":"2024-10-13T09:16:57.727Z","updated_at":"2025-10-16T11:33:08.609Z","avatar_url":"https://github.com/heap-data-structure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":":octopus:\n[@heap-data-structure/d-ary-heap](https://heap-data-structure.github.io/d-ary-heap)\n==\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/heap-data-structure/d-ary-heap/main/media/sketch.svg\" width=\"600\"\u003e\n\u003c/p\u003e\n\n`d`-ary heap data structure library for JavaScript.\nSee [docs](https://heap-data-structure.github.io/d-ary-heap).\nParent is [@heap-data-structure](https://github.com/heap-data-structure/about).\n\n```js\nimport {_calloc} from '@array-like/alloc';\nconst calloc = _calloc(Int32Array);\nconst array = calloc(10000);\n\nimport {iota} from '@array-like/fill';\niota(array, 0, array.length, 0);\n\nimport {shuffle} from '@randomized/random';\nshuffle(array, 0, array.length);\n\nimport {swap} from '@array-like/swap';\nimport {increasing} from '@total-order/primitive';\nimport {makeheap} from '@heap-data-structure/d-ary-heap';\nmakeheap( 2 , increasing , swap , array , 0 , array.length ) ;\n//        ^       ^         ^       ^     ^        ^\n//      arity  ordering    swap   input [left  , right[\n//                        method\n//\n\nimport {DAryHeap} from '@heap-data-structure/d-ary-heap';\nlet heap = new DAryHeap( 2 , increasing ) ;\n//                       ^       ^\n//                     arity  ordering\n//\n```\n\n[![License](https://img.shields.io/github/license/heap-data-structure/d-ary-heap.svg)](https://raw.githubusercontent.com/heap-data-structure/d-ary-heap/main/LICENSE)\n[![Version](https://img.shields.io/npm/v/@heap-data-structure/d-ary-heap.svg)](https://www.npmjs.org/package/@heap-data-structure/d-ary-heap)\n[![Tests](https://img.shields.io/github/actions/workflow/status/heap-data-structure/d-ary-heap/ci.yml?branch=main\u0026event=push\u0026label=tests)](https://github.com/heap-data-structure/d-ary-heap/actions/workflows/ci.yml?query=branch:main)\n[![Dependencies](https://img.shields.io/librariesio/github/heap-data-structure/d-ary-heap.svg)](https://github.com/heap-data-structure/d-ary-heap/network/dependencies)\n[![GitHub issues](https://img.shields.io/github/issues/heap-data-structure/d-ary-heap.svg)](https://github.com/heap-data-structure/d-ary-heap/issues)\n[![Downloads](https://img.shields.io/npm/dm/@heap-data-structure/d-ary-heap.svg)](https://www.npmjs.org/package/@heap-data-structure/d-ary-heap)\n\n[![Code issues](https://img.shields.io/codeclimate/issues/heap-data-structure/d-ary-heap.svg)](https://codeclimate.com/github/heap-data-structure/d-ary-heap/issues)\n[![Code maintainability](https://img.shields.io/codeclimate/maintainability/heap-data-structure/d-ary-heap.svg)](https://codeclimate.com/github/heap-data-structure/d-ary-heap/trends/churn)\n[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/heap-data-structure/d-ary-heap/main.svg)](https://codecov.io/gh/heap-data-structure/d-ary-heap)\n[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/heap-data-structure/d-ary-heap.svg)](https://codeclimate.com/github/heap-data-structure/d-ary-heap/trends/technical_debt)\n[![Documentation](https://heap-data-structure.github.io/d-ary-heap/badge.svg)](https://heap-data-structure.github.io/d-ary-heap/source.html)\n[![Package size](https://img.shields.io/bundlephobia/minzip/@heap-data-structure/d-ary-heap)](https://bundlephobia.com/result?p=@heap-data-structure/d-ary-heap)\n\n## :newspaper: Description\nThis package contains a `d`-ary heap implementation that can be parametrized\nwith any `d \u003e 0`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheap-data-structure%2Fd-ary-heap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheap-data-structure%2Fd-ary-heap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheap-data-structure%2Fd-ary-heap/lists"}