{"id":13451809,"url":"https://github.com/manrajgrover/algorithms-js","last_synced_at":"2025-04-05T14:09:07.548Z","repository":{"id":18651581,"uuid":"84843567","full_name":"manrajgrover/algorithms-js","owner":"manrajgrover","description":"Consumable Data Structures and Algorithms library in JavaScript","archived":false,"fork":false,"pushed_at":"2024-02-01T02:55:00.000Z","size":1039,"stargazers_count":199,"open_issues_count":100,"forks_count":128,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-12T15:02:15.492Z","etag":null,"topics":["algorithm","api","consumables","javascript","libary","npm"],"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/manrajgrover.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":"2017-03-13T15:35:17.000Z","updated_at":"2024-09-24T21:51:14.000Z","dependencies_parsed_at":"2024-01-07T11:08:18.975Z","dependency_job_id":"8bdc2d18-2c6b-4b3c-950a-531ee0af93da","html_url":"https://github.com/manrajgrover/algorithms-js","commit_stats":{"total_commits":447,"total_committers":5,"mean_commits":89.4,"dds":"0.015659955257270708","last_synced_commit":"cec55a339afec5a560c944859d1fd7a5b25c7aa3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manrajgrover%2Falgorithms-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manrajgrover%2Falgorithms-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manrajgrover%2Falgorithms-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manrajgrover%2Falgorithms-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manrajgrover","download_url":"https://codeload.github.com/manrajgrover/algorithms-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345854,"owners_count":20924102,"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":["algorithm","api","consumables","javascript","libary","npm"],"created_at":"2024-07-31T07:01:03.300Z","updated_at":"2025-04-05T14:09:07.530Z","avatar_url":"https://github.com/manrajgrover.png","language":"JavaScript","readme":"# algorithms-js [![Build Status](https://travis-ci.org/manrajgrover/algorithms-js.svg?branch=master)](https://travis-ci.org/manrajgrover/algorithms-js) [![Build status](https://ci.appveyor.com/api/projects/status/6l0vybrb4y0c7eh8?svg=true)](https://ci.appveyor.com/project/manrajgrover/algorithms-js) [![npm](https://img.shields.io/npm/v/algorithms-js.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/algorithms-js) [![npm](https://img.shields.io/npm/dt/algorithms-js.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/algorithms-js) ![awesome](https://img.shields.io/badge/awesome-yes-green.svg)\n\u003e Consumable Data Structures and Algorithms library in JavaScript\n\n\n## Note\n\nI'm looking for maintainers for this project. Please email me if you are interested in maintaining the project.\n\n## Installation\n\n**Run**\n\n```shell\n$ npm install algorithms-js\n```\n\nOr use `unpkg`:\n\n```html\n\u003cscript src=\"https://unpkg.com/algorithms-js/dist/algorithms.min.js\"\u003e\u003c/script\u003e\n```\n\nOr use `jsdeliver`:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/algorithms-js/dist/algorithms.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\nLibrary contains both algorithms as well as data structures:\n\n### Data Structures\nCurrently, library supports following data structures:\n\n- [Doubly Linked List](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/doubly_linked_list.js)\n- [Fenwick Tree](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/fenwick_tree.js)\n- [Graph](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/graph.js)\n- [Heap](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/heap.js)\n- [Linked List](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/linked_list.js)\n- [Queue](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/queue.js)\n- [Stack](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/stack.js)\n- [Trie](https://github.com/manrajgrover/algorithms-js/blob/master/src/data-structures/trie.js)\n\n### Algorithms\nCurrently library supports following algorithms:\n\n#### Search\nVarious Searching algorithms:\n\n- [Binary Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/binary_search.js)\n- [Breadth First Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/breadth_first_search.js)\n- [Depth First Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/depth_first_search.js)\n- [Exponential Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/exponential_search.js)\n- [Interpolation Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/interpolation_search.js)\n- [Jump Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/jump_search.js)\n- [Linear Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/linear_search.js)\n- [Ternary Search](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/search/ternary_search.js)\n\n#### Sort\nVarious Sorting algorithms:\n\n- [Bubble Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/bubble_sort.js)\n- [Count Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/count_sort.js)\n- [Heap Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/heap_sort.js)\n- [Insertion Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/insertion_sort.js)\n- [Merge Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/merge_sort.js)\n- [Quick Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/quick_sort.js)\n- [Selection Sort](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/sort/selection_sort.js)\n\n#### Math\nVarious Math algorithms:\n\n- [Extended Euclidean](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/math/extended_euclidean.js)\n- [Fast Exponentiation](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/math/fast_exp.js)\n- [GCD](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/math/gcd.js)\n- [LCM](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/math/lcm.js)\n\n#### String\nVarious String algorithms:\n\n- [Levenshtein Distance](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/string/levenshtein_distance.js)\n\n#### Geometry\nVarious Geometry algorithms:\n\n- [Tangent between circles](https://github.com/manrajgrover/algorithms-js/blob/master/src/algorithms/geometry/tangent_between_circles.js)\n\n## Development\n\nRun:\n\n```sh\n$ git clone https://github.com/manrajgrover/algorithms-js.git\n$ cd algorithms-js\n$ npm install\n```\n\nThis will setup the library dependencies for you.\n\nTo run tests, run\n\n```sh\n$ npm run test\n```\n\nTo lint your code, run\n\n```sh\n$ npm run lint\n```\n\nTo generate test coverage, run\n\n```sh\n$ npm run report\n```\n\nTo build docs, run\n\n```sh\n$ npm run docs\n```\n\nTo build for browser, run\n\n```sh\n$ npm run build-dev\n```\n\n## Get in touch\nSay hi on [twitter](https://twitter.com/manrajsgrover)\n\n## License\n\n[MIT](https://github.com/manrajgrover/algorithms-js/blob/master/LICENSE) © Manraj Singh\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanrajgrover%2Falgorithms-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanrajgrover%2Falgorithms-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanrajgrover%2Falgorithms-js/lists"}