{"id":23957110,"url":"https://github.com/yaxingson/es-containers","last_synced_at":"2026-02-04T18:02:49.691Z","repository":{"id":269247770,"uuid":"893854652","full_name":"yaxingson/es-containers","owner":"yaxingson","description":"Implementation of various data structures and algorithms in javascript","archived":false,"fork":false,"pushed_at":"2024-12-16T11:27:39.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T14:15:48.113Z","etag":null,"topics":["algorithm","datastructures","list","map","set","sort"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaxingson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":"2024-11-25T10:26:37.000Z","updated_at":"2024-12-16T11:27:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"369823e1-8b3c-45f0-a8ac-d51e0a6077b9","html_url":"https://github.com/yaxingson/es-containers","commit_stats":null,"previous_names":["yaxingson/es-containers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yaxingson/es-containers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fes-containers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fes-containers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fes-containers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fes-containers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaxingson","download_url":"https://codeload.github.com/yaxingson/es-containers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fes-containers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29092731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["algorithm","datastructures","list","map","set","sort"],"created_at":"2025-01-06T16:39:43.127Z","updated_at":"2026-02-04T18:02:49.670Z","avatar_url":"https://github.com/yaxingson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es-containers\n\n![](https://img.shields.io/npm/v/es-containers.svg)\n![](https://img.shields.io/npm/dm/es-containers.svg)\n![](https://img.shields.io/bundlejs/size/es-containers)\n![](https://img.shields.io/github/languages/top/yaxingson/es-containers)\n![](https://img.shields.io/npm/l/es-containers)\n\n## Get started\n\n### Install\n\nUse package manager:\n\n```shell\n$ npm i es-containers --save\n\n```\n\nCDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/es-containers@latest/dist/es-containers.js\"\u003e\u003c/script\u003e\n\n```\n\n### Usage\n\n```js\n// commonjs\nconst { Stack, HashMap, BinaryTree } = require('es-containers')\nconst { ArrayList, Queue } = require('es-containers/list')\n\n// esm\nimport { Stack, HashMap, BinaryTree } from 'es-containers'\nimport { ArrayList, Queue } from 'es-containers/list'\n\n```\n\n## Containers\n\n- lists\n\t- `ArrayList`: A list backed by a dynamic array that grows and shrinks implicitly.\n\t- `LinkedList`: A list where each element points to the next element in the list.\n\t- `DoublyLinkedList`: A list where each element points to the next and previous elements in the list.\n\t- `LinkedListStack`\n\t- `ArrayStack`\n\t- `LinkedListQueue`\n\t- `ArrayQueue`\n\t- `PriorityQueue`\n\n- Sets\n\t- `HashSet`: A set backed by a hash table. It makes no guarantees as to the iteration order of the set.\n\t- `TreeSet`: A set backed by a red-black tree to keep the elements ordered with respect to the comparator.\n\t- `LinkedHashSet`: A set that preserves insertion-order. Data structure is backed by a hash table to store values an`d doubly-linked list to store insertion ordering.\n\n- Maps\n\t- `HashMap`: A map based on hash tables. Keys are unordered.\n\t- `TreeMap`: A map based on red-black tree. Keys are ordered with respect to the comparator.\n\t- `LinkedHashMap`: A map that preserves insertion-order. It is backed by a hash table to store values and doubly-linked list to store ordering.\n\t- `HashBidiMap`: A map based on two hashmaps. Keys are unordered.\n\t- `TreeBidiMap`: A map based on red-black tree\n\n- Trees\n\t- `RedBlackTree`\n\t- `BinaryTree`\n\t- `BTree`\n\t- `AVLTree`\n\n- Graphs\n\t- `DirectedGraph`\n\n## Examples\n\n### Lists\n\n```js\nimport { LinkedList, ArrayStack } from 'es-containers/list'\nimport { StringComparator } from 'es-containers/util'\n\n```\n\n### Sets\n\n```js\nimport { HashSet } from 'es-containers/set'\n\n````\n\n### Maps\n\n```js\nimport { HashMap } from 'es-containers/map'\n\n```\n\n### Trees\n\n```js\nimport { BinaryTree } from 'es-containers/tree'\n\n```\n\n### Graphs\n\n```js\nimport { DirectedGraph } from 'es-containers/graph'\n\n```\n\n## Test \u0026 Benchmark\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxingson%2Fes-containers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaxingson%2Fes-containers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxingson%2Fes-containers/lists"}