Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

algorithms-js

> 包管理
Open source

Consumable Data Structures and Algorithms library in JavaScript

200 stars0 likes1 views
WebsiteGitHub

About

Consumable Data Structures and Algorithms library in JavaScript

algorithms-js

Consumable Data Structures and Algorithms library in JavaScript

Note

I'm looking for maintainers for this project. Please email me if you are interested in maintaining the project.

Installation

Run

bash
$ npm install algorithms-js

Or use unpkg:

xml

Or use jsdeliver:

xml

Usage

Library contains both algorithms as well as data structures:

Data Structures

Currently, library supports following data structures:

  • Doubly Linked List
  • Fenwick Tree
  • Graph
  • Heap
  • Linked List
  • Queue
  • Stack
  • Trie

Algorithms

Currently library supports following algorithms:

Search

Various Searching algorithms:

  • Binary Search
  • Breadth First Search
  • Depth First Search
  • Exponential Search
  • Interpolation Search
  • Jump Search
  • Linear Search
  • Ternary Search

Sort

Various Sorting algorithms:

  • Bubble Sort
  • Count Sort
  • Heap Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort

Math

Various Math algorithms:

  • Extended Euclidean
  • Fast Exponentiation
  • GCD
  • LCM

String

Various String algorithms:

  • Levenshtein Distance

Geometry

Various Geometry algorithms:

  • Tangent between circles

Development

Run:

bash
$ git clone https://github.com/manrajgrover/algorithms-js.git
$ cd algorithms-js
$ npm install

This will setup the library dependencies for you.

To run tests, run

bash
$ npm run test

To lint your code, run

bash
$ npm run lint

To generate test coverage, run

bash
$ npm run report

To build docs, run

bash
$ npm run docs

To build for browser, run

bash
$ npm run build-dev

Get in touch

Say hi on twitter

License

MIT © Manraj Singh

Issues· 105 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptalgorithmapiconsumablesjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image