{"id":13608023,"url":"https://github.com/pierrec/lz4","last_synced_at":"2026-01-12T15:50:56.160Z","repository":{"id":28702874,"uuid":"32223299","full_name":"pierrec/lz4","owner":"pierrec","description":"LZ4 compression and decompression in pure Go","archived":false,"fork":false,"pushed_at":"2025-12-17T16:01:17.000Z","size":68864,"stargazers_count":942,"open_issues_count":22,"forks_count":151,"subscribers_count":22,"default_branch":"v4","last_synced_at":"2025-12-21T04:27:11.810Z","etag":null,"topics":["go","golang","lz4","lz4-frame"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pierrec.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":"2015-03-14T17:21:06.000Z","updated_at":"2025-11-22T01:21:39.000Z","dependencies_parsed_at":"2025-06-15T21:06:56.624Z","dependency_job_id":"68183405-1e6a-43c1-82c8-e7fabec35b43","html_url":"https://github.com/pierrec/lz4","commit_stats":{"total_commits":262,"total_committers":40,"mean_commits":6.55,"dds":0.6068702290076335,"last_synced_commit":"294e7659e17723306ebf3a44cd7ad2c11f456c37"},"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"purl":"pkg:github/pierrec/lz4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrec%2Flz4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrec%2Flz4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrec%2Flz4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrec%2Flz4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pierrec","download_url":"https://codeload.github.com/pierrec/lz4/tar.gz/refs/heads/v4","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrec%2Flz4/sbom","scorecard":{"id":733381,"data":{"date":"2025-08-11","repo":{"name":"github.com/pierrec/lz4","commit":"cd9d7a4f66405a92f4881933816b828b0f7d5fe2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"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":"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":"Code-Review","score":7,"reason":"Found 11/15 approved changesets -- score normalized to 7","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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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":"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:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pierrec/lz4/ci.yml/v4?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/pierrec/lz4/ci.yml/v4?enable=pin","Info:   0 out of   2 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'v4'"],"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 26 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":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-22T15:04:00.779Z","repository_id":28702874,"created_at":"2025-08-22T15:04:00.779Z","updated_at":"2025-08-22T15:04:00.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T15:50:39.657Z","status":"ssl_error","status_checked_at":"2026-01-12T15:49:49.297Z","response_time":98,"last_error":"SSL_read: 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":["go","golang","lz4","lz4-frame"],"created_at":"2024-08-01T19:01:23.629Z","updated_at":"2026-01-12T15:50:56.126Z","avatar_url":"https://github.com/pierrec.png","language":"Go","funding_links":[],"categories":["Go","Repositories","Compression"],"sub_categories":[],"readme":"# lz4 : LZ4 compression in pure Go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/pierrec/lz4/v4.svg)](https://pkg.go.dev/github.com/pierrec/lz4/v4)\n[![CI](https://github.com/pierrec/lz4/workflows/ci/badge.svg)](https://github.com/pierrec/lz4/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pierrec/lz4)](https://goreportcard.com/report/github.com/pierrec/lz4)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/pierrec/lz4.svg?style=social)](https://github.com/pierrec/lz4/tags)\n\n## Overview\n\nThis package provides a streaming interface to [LZ4 data streams](http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html) as well as low level compress and uncompress functions for LZ4 data blocks.\nThe implementation is based on the reference C [one](https://github.com/lz4/lz4).\n\n## Install\n\nAssuming you have the go toolchain installed:\n\n```\ngo get github.com/pierrec/lz4/v4\n```\n\nThere is a command line interface tool to compress and decompress LZ4 files.\n\n```\ngo install github.com/pierrec/lz4/v4/cmd/lz4c@latest\n```\n\nUsage\n\n```\nUsage of lz4c:\n  -version\n        print the program version\n\nSubcommands:\nCompress the given files or from stdin to stdout.\ncompress [arguments] [\u003cfile name\u003e ...]\n  -bc\n        enable block checksum\n  -l int\n        compression level (0=fastest)\n  -sc\n        disable stream checksum\n  -size string\n        block max size [64K,256K,1M,4M] (default \"4M\")\n\nUncompress the given files or from stdin to stdout.\nuncompress [arguments] [\u003cfile name\u003e ...]\n\n```\n\n\n## Example\n\n```\n// Compress and uncompress an input string.\ns := \"hello world\"\nr := strings.NewReader(s)\n\n// The pipe will uncompress the data from the writer.\npr, pw := io.Pipe()\nzw := lz4.NewWriter(pw)\nzr := lz4.NewReader(pr)\n\ngo func() {\n\t// Compress the input string.\n\t_, _ = io.Copy(zw, r)\n\t_ = zw.Close() // Make sure the writer is closed\n\t_ = pw.Close() // Terminate the pipe\n}()\n\n_, _ = io.Copy(os.Stdout, zr)\n\n// Output:\n// hello world\n```\n\n## Contributing\n\nContributions are very welcome for bug fixing, performance improvements...!\n\n- Open an issue with a proper description\n- Send a pull request with appropriate test case(s)\n\n## Contributors\n\nThanks to all [contributors](https://github.com/pierrec/lz4/graphs/contributors)  so far!\n\nSpecial thanks to [@Zariel](https://github.com/Zariel) for his asm implementation of the decoder.\n\nSpecial thanks to [@greatroar](https://github.com/greatroar) for his work on the asm implementations of the decoder for amd64 and arm64.\n\nSpecial thanks to [@klauspost](https://github.com/klauspost) for his work on optimizing the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrec%2Flz4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierrec%2Flz4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrec%2Flz4/lists"}