{"id":15132483,"url":"https://github.com/mauriciosantos/buckets-js","last_synced_at":"2026-03-11T19:31:26.431Z","repository":{"id":55562502,"uuid":"3068532","full_name":"mauriciosantos/Buckets-JS","owner":"mauriciosantos","description":"A complete, fully tested and documented data structure library written in pure JavaScript.","archived":false,"fork":false,"pushed_at":"2020-12-21T23:37:28.000Z","size":1434,"stargazers_count":1255,"open_issues_count":7,"forks_count":113,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-05-09T20:51:39.716Z","etag":null,"topics":["bag","binary-heap","binary-search","binary-search-tree","collection","collections","data-structures","dictionary","javascript","linked-list","map","multimap","priority-queue","queue","set","stack","tree","tree-structure"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauriciosantos.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}},"created_at":"2011-12-29T12:15:06.000Z","updated_at":"2025-04-17T12:27:52.000Z","dependencies_parsed_at":"2022-08-15T03:11:09.886Z","dependency_job_id":null,"html_url":"https://github.com/mauriciosantos/Buckets-JS","commit_stats":null,"previous_names":["mauriciosantos/buckets"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauriciosantos%2FBuckets-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauriciosantos%2FBuckets-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauriciosantos%2FBuckets-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauriciosantos%2FBuckets-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauriciosantos","download_url":"https://codeload.github.com/mauriciosantos/Buckets-JS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535829,"owners_count":22087399,"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":["bag","binary-heap","binary-search","binary-search-tree","collection","collections","data-structures","dictionary","javascript","linked-list","map","multimap","priority-queue","queue","set","stack","tree","tree-structure"],"created_at":"2024-09-26T04:04:51.392Z","updated_at":"2025-12-12T04:46:42.295Z","avatar_url":"https://github.com/mauriciosantos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Buckets](https://github.com/mauriciosantos/buckets/)\n\n[![Build Status](https://travis-ci.org/mauriciosantos/Buckets-JS.svg?branch=master)](https://travis-ci.org/mauriciosantos/Buckets-JS)\n[![NPM Version](https://img.shields.io/npm/v/buckets-js.svg)](https://img.shields.io/npm/v/buckets-js.svg)\n\n**A JavaScript Data Structure Library**\n\nBuckets is a complete, fully tested and documented data structure library written in pure JavaScript.\n\n## Included data structures\n\n- [Linked List](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.LinkedList.html)\n- [Dictionary](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Dictionary.html)\n- [Multi Dictionary](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.MultiDictionary.html)\n- [Binary Search Tree](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.BSTree.html)\n- [Stack](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Stack.html)\n- [Queue](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Queue.html)\n- [Set](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Set.html)\n- [Bag](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Bag.html)\n- [Binary Heap](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.Heap.html)\n- [Priority Queue](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.PriorityQueue.html)\n\nBuckets also includes several functions for manipulating [arrays](http://mauriciosantos.github.io/Buckets-JS/symbols/buckets.arrays.html).\n\n## Supported platforms\n\n- Every desktop and mobile browser (including IE6)\n- Node.js\n\nIf it supports JavaScript, it probably supports buckets.\n\n## Downloading Buckets\n\nDownload directly\n\n- [buckets.js](https://github.com/mauriciosantos/Buckets-JS/releases/latest) (for development) or\n- [buckets.min.js](https://github.com/mauriciosantos/Buckets-JS/releases/latest) (for production)\n\nThen, add it as a script tag to your page:\n\n```html\n\u003cscript src=\"buckets.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var aSet = new buckets.Set();\n\u003c/script\u003e\n```\n\nOr install `bucketsjs` using [bower](http://bower.io/)\n\n```shell\nbower install bucketsjs\n```\n\nOr use an [AMD](https://github.com/amdjs/amdjs-api) loader\n\n```javascript\nrequire([\"./bower/bucketsjs/buckets.js\"], function(buckets) {\n  var hm = new buckets.Dictionary();\n});\n```\n\nOr install `buckets-js` using [npm](https://www.npmjs.com/)\n\n```shell\nnpm install buckets-js\n```\n\nIn [Node.js](https://nodejs.org/): `var buckets = require('buckets-js');`.\n\n## Usage\n\n```javascript\nvar a = new buckets.Set();\nvar b = new buckets.Set();\na.add(1);\na.add(2);\nb.add(2);\na.union(b); // {1,2}\n```\nRead the [documentation](http://mauriciosantos.github.io/Buckets-JS/).\n\n## Building Buckets\n\nThere's nothing else you need to use buckets. However, this [guide](./BUILD.md) may help you if you wish to contribute to the project or modify it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauriciosantos%2Fbuckets-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauriciosantos%2Fbuckets-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauriciosantos%2Fbuckets-js/lists"}