Built something? We create video reels & spotlights for GitHub projects.Promote your project โ†’
trekhleb
Home / JavaScript / javascript-algorithms

trekhleb/javascript-algorithms

๐Ÿ“ Algorithms and data structures implemented in JavaScript with explanations and links to further readings

JavaScript โ—‡ algorithm MIT
โ˜…196.8KSTARS
โ‘‚31KFORKS
!407ISSUES
๐Ÿ†#20GLOBAL RANK
๐Ÿ”ฅ6DAYS TRENDING
๐Ÿš€
Maintainer Growth Kit for javascript-algorithms

Claim this project, add your verified backlink badge to your README, and download milestone cards.

Claim Repo

Star History

Continuous Observations
Interactive star growth chart for trekhleb/javascript-algorithms
CSV

Momentum

+4.9K

STARS ยท LAST 30 DAYS

164

PER DAY

#3

MOST-STARRED JavaScript

Window7 days30 days90 days
Stars gained+1.1K+4.9K+14.8K
Per day164164164
Forks gained+155+620+1.6K

javascript-algorithms gained 4.9K stars in the last 30 days, about 164 a day, and now has 196.8K. It is about 9 years old and has averaged roughly 21.9K stars a year. It ranks #3 among JavaScript repositories and #20 across all languages on GitHubRepo.

Trending Record

javascript-algorithms has maintained a continuous presence across global trending indexes, peaking at #20. Below is the 30-day activity profile:

๐Ÿ’ก Overview

javascript-algorithms is an open-source project written in JavaScript: ๐Ÿ“ Algorithms and data structures implemented in JavaScript with explanations and links to further readings.

Engineered for speed, consistency, and developer ease, it solves common hurdles in algorithm, algorithms, computer-science. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.

โšก Key Features

1

Optimized execution pipeline written in JavaScript for predictable speed.

2

Zero-friction configuration with comprehensive sensible defaults out of the box.

3

Cross-platform runtime support across Linux, macOS, and Windows environments.

4

Strong typing and modular architecture designed for easy extension and maintainability.

5

Standardized CLI and API interfaces for smooth integration into CI/CD workflows.

6

Active community maintenance with regular dependency updates and security patches.

๐Ÿ“ฅ Installation

terminal
$ npm install javascript-algorithms

โš™ System Requirements

Platforms

  • โ€ข macOS
  • โ€ข Linux
  • โ€ข Windows

Runtime & Dependencies

Node.js >= 18 or modern Evergreen browser

Architecture

x86_64, ARM64 (Apple Silicon & Graviton)

๐Ÿง  How It Works

javascript-algorithms coordinates its core functionality through a modular JavaScript pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.

๐ŸŽฏ Production Use Cases

Production System Integration

Embed javascript-algorithms into JavaScript backend services to handle core application logic.

CI/CD Automated Pipelines

Run automated validation, builds, and integration suites during deployments.

Developer Tooling & Workflows

Accelerate developer onboarding with pre-configured project utilities.

Open Source Extension

Fork and customize internal modules under the repository's open MIT license.

๐Ÿš€ Getting Started

1

Install javascript-algorithms using your package manager: `npm install javascript-algorithms`

2

Initialize your project workspace or configuration file for javascript-algorithms.

3

Import javascript-algorithms into your codebase or invoke it directly from your terminal.

4

Execute your test suite or run `javascript-algorithms --help` to verify successful setup.

๐Ÿ‘ Strengths

Active community backing with 196,794 GitHub stars and verified adoption.
Permissive open-source distribution under the MIT license.
Built in JavaScript for high execution speed and developer familiarity.
Cross-platform compatibility across modern Linux, macOS, and Windows environments.
Clean modular design allowing flexible configuration and pipeline integration.

โš ๏ธ Considerations

Requires familiarity with JavaScript and modern CLI workflows.
Ecosystem extensions may require manual configuration depending on environment constraints.
Active development roadmap means breaking API changes may occur across major versions.

โ‡„ Alternatives & Direct Competitors

E
affaan-m/ECC โ˜… 268.3K JavaScript

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Compare โ†—
R
react/react โ˜… 250.8K JavaScript

The library for web and native user interfaces.

Compare โ†—
P
DietrichGebert/ponytail โ˜… 146.9K JavaScript

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

Compare โ†—
3
Chalarangelo/30-seconds-of-code โ˜… 129.2K JavaScript

Coding articles to level up your development skills

Compare โ†—

๐Ÿ‘ฅ Who Should Use This

Developers and engineering teams building with JavaScript, seeking reliable, tested, and actively maintained tooling for production workloads.

๐Ÿ† Nearby in the Rankings

trekhleb/javascript-algorithms is currently ranked #20 by stars across every repository tracked on GitHubRepo. These are adjacent projects:

RankRepositoryLanguageStarsAction
#15 vuejs/vue TypeScript โ˜… 212.8K Compare โ†—
#16 anomalyco/opencode TypeScript โ˜… 210.4K Compare โ†—
#17 ossu/computer-science HTML โ˜… 209.5K Compare โ†—
#18 DigitalPlatDev/FreeDomain Markdown โ˜… 201.4K Compare โ†—
#19 tensorflow/tensorflow C++ โ˜… 200.6K Compare โ†—
#20 trekhleb/javascript-algorithms This Project JavaScript โ˜… 196.8K
#21 ultraworkers/claw-code Rust โ˜… 195.3K Compare โ†—
#22 yt-dlp/yt-dlp Python โ˜… 193.9K Compare โ†—
#23 microsoft/vscode TypeScript โ˜… 193.2K Compare โ†—
#24 massgravel/Microsoft-Activation-Scripts Batchfile โ˜… 192.1K Compare โ†—
#25 ohmyzsh/ohmyzsh Shell โ˜… 190K Compare โ†—

Frequently Asked Questions

What does javascript-algorithms do? +

๐Ÿ“ Algorithms and data structures implemented in JavaScript with explanations and links to further readings

What language is javascript-algorithms written in? +

The primary language is JavaScript. Topics include: algorithm, algorithms, computer-science, data-structures, interview.

Is javascript-algorithms actively maintained? +

Yes, the last recorded push was on Jul 26, 2026 with 407 open issues being tracked.

How many stars does javascript-algorithms have? +

javascript-algorithms has 196,824 stars and 31,019 forks on GitHub.

How does javascript-algorithms rank among GitHub repositories? +

With 196,824 stars, trekhleb/javascript-algorithms is ranked #20 globally across all repositories tracked on GitHubRepo and #3 among JavaScript projects.

What license is javascript-algorithms distributed under? +

The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.

From our network
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.