{"id":13694548,"url":"https://github.com/bradenaw/juniper","last_synced_at":"2026-02-07T19:39:45.626Z","repository":{"id":37658484,"uuid":"434542327","full_name":"bradenaw/juniper","owner":"bradenaw","description":"Juniper is an extension to the Go standard library using generics, including containers, iterators, and streams.","archived":false,"fork":false,"pushed_at":"2025-03-03T00:15:19.000Z","size":3879,"stargazers_count":506,"open_issues_count":1,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-03T04:33:40.965Z","etag":null,"topics":["data-structures","go","golang","library"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bradenaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2021-12-03T09:42:28.000Z","updated_at":"2025-04-11T09:04:05.000Z","dependencies_parsed_at":"2023-11-25T01:33:36.367Z","dependency_job_id":"91a4e76d-5555-4500-966d-0a85586d44ce","html_url":"https://github.com/bradenaw/juniper","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/bradenaw/juniper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenaw%2Fjuniper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenaw%2Fjuniper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenaw%2Fjuniper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenaw%2Fjuniper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradenaw","download_url":"https://codeload.github.com/bradenaw/juniper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenaw%2Fjuniper/sbom","scorecard":{"id":250184,"data":{"date":"2025-08-11","repo":{"name":"github.com/bradenaw/juniper","commit":"eb501ecb3c605bdef791143da8b8d92a91405ed9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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/fuzz.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/fuzz.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/fuzz.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/fuzz.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen_docs.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/gen_docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen_docs.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/gen_docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.19.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.19.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.19.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.19.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.20.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.20.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.20.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.20.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.21.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.21.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.21.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.21.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.22.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.22.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.22.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.22.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.23.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.23.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.23.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.23.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.24.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.24.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go1.24.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bradenaw/juniper/go1.24.yml/main?enable=pin","Info:   0 out of  16 GitHub-owned GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/fuzz.yml:1","Warn: no topLevel permission defined: .github/workflows/gen_docs.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.19.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.20.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.21.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.22.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.23.yml:1","Warn: no topLevel permission defined: .github/workflows/go1.24.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":"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":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: chans/chans_test.go:14","Info: GoBuiltInFuzzer integration found: container/deque/deque_test.go:12","Info: GoBuiltInFuzzer integration found: container/tree/btree_test.go:30","Info: GoBuiltInFuzzer integration found: container/xheap/xheap_test.go:11","Info: GoBuiltInFuzzer integration found: container/xheap/xheap_test.go:42","Info: GoBuiltInFuzzer integration found: container/xlist/xlist_test.go:11","Info: GoBuiltInFuzzer integration found: stream/stream_test.go:26","Info: GoBuiltInFuzzer integration found: xmath/xrand/xrand_test.go:47","Info: GoBuiltInFuzzer integration found: xslices/xslices_test.go:9","Info: GoBuiltInFuzzer integration found: xslices/xslices_test.go:29","Info: GoBuiltInFuzzer integration found: xsort/xsort_test.go:46"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-17T08:17:23.438Z","repository_id":37658484,"created_at":"2025-08-17T08:17:23.438Z","updated_at":"2025-08-17T08:17:23.438Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29205572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["data-structures","go","golang","library"],"created_at":"2024-08-02T17:01:34.571Z","updated_at":"2026-02-07T19:39:45.610Z","avatar_url":"https://github.com/bradenaw.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library","Go"],"sub_categories":["开发辅助包","Development Aid Package"],"readme":"# Juniper\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/bradenaw/juniper.svg)](https://pkg.go.dev/github.com/bradenaw/juniper)\n[![Go 1.21](https://github.com/bradenaw/juniper/actions/workflows/go1.21.yml/badge.svg)](https://github.com/bradenaw/juniper/actions/workflows/go1.21.yml)\n[![Go 1.22](https://github.com/bradenaw/juniper/actions/workflows/go1.22.yml/badge.svg)](https://github.com/bradenaw/juniper/actions/workflows/go1.22.yml)\n[![Go 1.23](https://github.com/bradenaw/juniper/actions/workflows/go1.23.yml/badge.svg)](https://github.com/bradenaw/juniper/actions/workflows/go1.23.yml)\n[![Go 1.24](https://github.com/bradenaw/juniper/actions/workflows/go1.24.yml/badge.svg)](https://github.com/bradenaw/juniper/actions/workflows/go1.24.yml)\n[![Fuzz](https://github.com/bradenaw/juniper/actions/workflows/fuzz.yml/badge.svg)](https://github.com/bradenaw/juniper/actions/workflows/fuzz.yml)\n\nJuniper is a library of extensions to the Go standard library using generics, including containers,\niterators, and streams.\n\n- `container/tree` contains a `Map` and `Set` that keep elements in sorted order. They are\n  implemented using a B-tree, which performs better than a binary search tree.\n- `container/deque` contains a double-ended queue implemented with a ring buffer.\n- `container/xheap` contains a min-heap similar to the standard library's `container/heap` but\n  more ergonomic, along with a `PriorityQueue` that allows setting priorities by key.\n- `container/xlist` contains a linked-list similar to the standard library's `container/list`, but\n  type-safe.\n- `xslices` contains some commonly-used slice operations, like `Chunk`, `Reverse`, `Clear`, and\n  `Join`.\n- `iterator` contains an iterator interface used by the containers, along with functions to\n  manipulate them, like `Map`, `While`, and `Reduce`.\n- `stream` contains a stream interface, which is an iterator that can fail. Useful for iterating\n  over collections that require I/O. It has most of the same combinators as `iterator`, plus some\n  extras like `Pipe` and `Batch`.\n- `parallel` contains some shorthand for common uses of goroutines to process slices, iterators, and\n  streams in parallel, like `parallel.MapStream`.\n- `xsort` contains extensions to the standard library package `sort`. Notably, it also has the\n  definition for `xsort.Less`, which is how custom orderings can be defined for sorting and also for\n  ordered collections like from `container/tree`.\n- You can probably guess what's in the packages `xerrors`, `xmath`, `xmath/xrand`, `xsync`, and\n  `xtime`.\n\nPackages that overlap directly with a standard library package are named the same but with an `x`\nprefix for \"extensions\", e.g. `sort` and `xsort`.\n\nSee the [docs](https://pkg.go.dev/github.com/bradenaw/juniper) for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradenaw%2Fjuniper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradenaw%2Fjuniper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradenaw%2Fjuniper/lists"}