# mgechev/javascript-algorithms

💻 JavaScript implementations of computer science algorithms

Repository: https://github.com/mgechev/javascript-algorithms
Canonical: https://ross.abutalabs.com/products/mgechev-javascript-algorithms
Homepage: https://mgechev.github.io/javascript-algorithms/
Language: JavaScript
License: MIT
License Family: permissive
Topics: computer-science-algorithms, javascript, algorithm, hacktoberfest
Last push: 2024-04-22T23:31:08+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5036, "days_push": 863, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7824, forks 1238 (observed 2026-08-28T04:10:05.301285+00:00)

## What it is
A collection of JavaScript implementations of famous computer science algorithms, with generated API documentation and usage examples. It serves primarily as an educational and reference resource for algorithms and data structures.

## Use cases
- learn computer science algorithms in javascript
- reference implementation of sorting and graph algorithms
- study data structures with example code
- prepare for coding interviews
- find javascript code for common algorithms

## When to choose
- you want readable JavaScript examples of classic algorithms
- you are learning or teaching computer science fundamentals
- you need a reference implementation to compare against your own code

## When to avoid
- you need a production-grade, performance-optimized algorithm library
- you need a maintained npm package with frequent updates
- you need algorithms in a language other than JavaScript

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, documentation, testing
- domain: education, developer-tools
- platform: -
- tags: computer-science, algorithms, javascript, learning, data-structures, nodejs

## Member repositories
- mgechev/javascript-algorithms (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:05.301285+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:34:08.937629+00:00, confidence not recorded.
  - readme: https://github.com/mgechev/javascript-algorithms (fetched 2026-08-28T04:10:05.301285+00:00, sha f944c2cea038)
  - homepage: https://mgechev.github.io/javascript-algorithms/ (fetched 2026-08-29T08:30:54.646099+00:00, sha af4aa6379188)
- Data as of 2026-08-30T08:39:29.467469+00:00.
