TheAlgorithms

    TheAlgorithms/JavaScript

    Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

    34.3K stars
    5.8K forks
    617 GitHub watchers
    Updated Nov 9, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 308 contributors on GitHub.

    Use Cases & Benefits

    • Implements a wide range of algorithms and data structures in JavaScript following best practices for educational purposes.
    • Provides clear, beginner-friendly code examples that facilitate learning algorithm concepts in JavaScript.
    • Use for learning and practicing fundamental algorithms and data structures in JavaScript for coding interviews or coursework.
    • Use for exploring cryptography and cipher algorithms implemented in JavaScript to understand security basics.
    • Use for contributing to open-source algorithm implementations and improving coding skills through community collaboration.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    GPL 3.0

    Copyleft: distributing software that includes it generally requires releasing your source under the same license.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    • GPL-style copyleft: including it in distributed software generally requires releasing your source under the same license.
    • No commits in the last six months (last push Mar 2026).
    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    JavaScript Repository of TheAlgorithms, which implements various algorithms and data structures in JavaScript.

    These implementations are for demonstrative purposes only. Dedicated implementations of these algorithms and data structures are much better for performance and security reasons. We also do not provide any guarantee for api stability.

    Before contributing to this repository, make sure to read our Contribution Guidelines. You can look at other TheAlgorithms Repositories or the issues with a "help wanted" label for inspiration regarding what to implement. Our maintainers will guide you through how to make your contribution properly if you make any mistakes. The names of the maintainers of this repository are listed in the CODEOWNERS file.

    You can find a list of the algorithms currently in the repository in the directory. Explanations of many of the algorithms can be found in the wiki.

    Excerpt from the TheAlgorithms/JavaScript README on GitHub (GPL-3.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    5.8K-25

    Open issues

    312+99

    Compared with peers in Education

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    TheAlgorithms/JavaScript compared with Education repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    rohitg00/ai-engineering-from-scratch78.3K+1.6K751 day ago
    mnfst/awesome-free-llm-apis12.8K+75475—
    luongnv89/claude-howto46.9K+44075161 days ago
    github/awesome-copilot41.0K+25175—
    ripienaar/free-for-dev141.8K—45—
    TheAlgorithms/JavaScript34.3K—45—
    Category median46.9K+59775—

    Also by TheAlgorithms

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description