{"id":1888571,"name":"javascript-algorithms-and-data-structures","ecosystem":"npm","description":"Algorithms and data-structures implemented on JavaScript","homepage":"https://github.com/trekhleb/javascript-algorithms#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/trekhleb/javascript-algorithms","keywords_array":["computer-science","cs","algorithms","data-structures","javascript","algorithm","javascript-algorithms","sorting-algorithms","graph","tree"],"namespace":null,"versions_count":4,"first_release_published_at":"2018-05-21T11:41:36.630Z","latest_release_published_at":"2018-06-02T19:44:24.921Z","latest_release_number":"0.0.4","last_synced_at":"2026-03-17T11:45:56.064Z","created_at":"2022-04-09T17:56:09.631Z","updated_at":"2026-03-17T11:45:56.064Z","registry_url":"https://www.npmjs.com/package/javascript-algorithms-and-data-structures","install_command":"npm install javascript-algorithms-and-data-structures","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"0.0.4"}},"repo_metadata":{"id":37243786,"uuid":"126577260","full_name":"trekhleb/javascript-algorithms","owner":"trekhleb","description":"📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings","archived":false,"fork":false,"pushed_at":"2025-02-12T16:19:59.000Z","size":13564,"stargazers_count":193383,"open_issues_count":373,"forks_count":30887,"subscribers_count":4273,"default_branch":"master","last_synced_at":"2025-09-23T13:05:50.959Z","etag":null,"topics":["algorithm","algorithms","computer-science","data-structures","interview","interview-preparation","javascript","javascript-algorithms"],"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/trekhleb.png","metadata":{"files":{"readme":"README.ar-AR.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":"trekhleb","patreon":"trekhleb"}},"created_at":"2018-03-24T07:47:04.000Z","updated_at":"2025-09-23T10:14:18.000Z","dependencies_parsed_at":"2022-08-08T19:30:49.491Z","dependency_job_id":"45b8ae29-79a7-4f90-80e8-03967b3320bc","html_url":"https://github.com/trekhleb/javascript-algorithms","commit_stats":{"total_commits":1061,"total_committers":202,"mean_commits":5.252475247524752,"dds":"0.25070688030160226","last_synced_commit":"76617fa83ac9a8519f20c7a9c938e2d8ef2fd512"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trekhleb/javascript-algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trekhleb","download_url":"https://codeload.github.com/trekhleb/javascript-algorithms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms/sbom","scorecard":{"id":897855,"data":{"date":"2025-08-11","repo":{"name":"github.com/trekhleb/javascript-algorithms","commit":"e40a67b5d1aaf006622a90e2bda60043f4f66679"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":6,"reason":"Found 20/30 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/trekhleb/javascript-algorithms/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/trekhleb/javascript-algorithms/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/trekhleb/javascript-algorithms/CI.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/CI.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T14:25:02.022Z","repository_id":37243786,"created_at":"2025-08-24T14:25:02.023Z","updated_at":"2025-08-24T14:25:02.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278614466,"owners_count":26015967,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"trekhleb","name":"Oleksii Trekhleb","uuid":"3000285","kind":"user","description":"Sr Software Engineer at @uber","email":"","website":"https://trekhleb.dev","location":"Amsterdam","twitter":"Trekhleb","company":"Uber","icon_url":"https://avatars.githubusercontent.com/u/3000285?u=1e62782f227030b78b7aa78cbbcab5f8a24e658a\u0026v=4","repositories_count":22,"last_synced_at":"2024-05-01T10:31:13.651Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/trekhleb","funding_links":["https://github.com/sponsors/trekhleb"],"total_stars":237284,"followers":16274,"following":7,"created_at":"2022-11-12T20:24:21.855Z","updated_at":"2024-05-01T10:31:19.509Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trekhleb","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trekhleb/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-11-23T01:47:22.345Z","dependent_packages_count":3,"downloads":169,"downloads_period":"last-month","dependent_repos_count":7,"rankings":{"downloads":14.845889406538335,"dependent_repos_count":4.5325815054146235,"dependent_packages_count":5.8314726902284235,"stargazers_count":0.007019049932596902,"forks_count":0.2859901785293906,"docker_downloads_count":null,"average":5.100590566128674},"purl":"pkg:npm/javascript-algorithms-and-data-structures","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/javascript-algorithms-and-data-structures","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/javascript-algorithms-and-data-structures","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/javascript-algorithms-and-data-structures/dependencies","status":null,"funding_links":["https://github.com/sponsors/trekhleb","https://patreon.com/trekhleb"],"critical":null,"issue_metadata":{"last_synced_at":"2025-09-26T00:55:26.323Z","issues_count":116,"pull_requests_count":290,"avg_time_to_close_issue":2391741.403846154,"avg_time_to_close_pull_request":23014554.584415585,"issues_closed_count":52,"pull_requests_closed_count":154,"pull_request_authors_count":177,"issue_authors_count":91,"avg_comments_per_issue":1.3017241379310345,"avg_comments_per_pull_request":0.30344827586206896,"merged_pull_requests_count":40,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":25,"past_year_pull_requests_count":51,"past_year_avg_time_to_close_issue":34245.8,"past_year_avg_time_to_close_pull_request":1307181.6153846155,"past_year_issues_closed_count":5,"past_year_pull_requests_closed_count":13,"past_year_pull_request_authors_count":25,"past_year_issue_authors_count":23,"past_year_avg_comments_per_issue":0.4,"past_year_avg_comments_per_pull_request":0.3333333333333333,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":2,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/trekhleb%2Fjavascript-algorithms/issues","maintainers":[{"login":"trekhleb","count":6,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/trekhleb"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/javascript-algorithms-and-data-structures/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/javascript-algorithms-and-data-structures/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/javascript-algorithms-and-data-structures/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/javascript-algorithms-and-data-structures/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/javascript-algorithms-and-data-structures/codemeta","maintainers":[{"uuid":"trekhleb","login":"trekhleb","name":null,"email":"trehleb@gmail.com","url":null,"packages_count":3,"html_url":"https://www.npmjs.com/~trekhleb","role":null,"created_at":"2022-11-12T21:35:37.333Z","updated_at":"2022-11-12T21:35:37.333Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/trekhleb/packages"}]}