{"id":31655553,"url":"https://github.com/facebook/openzl","last_synced_at":"2025-10-07T13:15:51.734Z","repository":{"id":318407958,"uuid":"1067353061","full_name":"facebook/openzl","owner":"facebook","description":"A novel data compression framework","archived":false,"fork":false,"pushed_at":"2025-10-07T01:10:05.000Z","size":15447,"stargazers_count":303,"open_issues_count":24,"forks_count":15,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-10-07T03:14:54.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openzl.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facebook.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-30T18:30:07.000Z","updated_at":"2025-10-07T03:10:15.000Z","dependencies_parsed_at":"2025-10-07T03:25:24.416Z","dependency_job_id":null,"html_url":"https://github.com/facebook/openzl","commit_stats":null,"previous_names":["facebook/openzl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/facebook/openzl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fopenzl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fopenzl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fopenzl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fopenzl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facebook","download_url":"https://codeload.github.com/facebook/openzl/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fopenzl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278780097,"owners_count":26044499,"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-07T02:00:06.786Z","response_time":59,"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"}},"keywords":[],"created_at":"2025-10-07T13:15:50.837Z","updated_at":"2025-10-07T13:15:51.726Z","avatar_url":"https://github.com/facebook.png","language":"C","readme":"# OpenZL\n\nOpenZL delivers high compression ratios _while preserving high speed_, a level of performance that is out of reach for generic compressors. **Check out the [blog post](https://engineering.fb.com/2025/10/06/developer-tools/openzl-open-source-format-aware-compression-framework/) and [whitepaper](https://arxiv.org/abs/2510.03203) for a breakdown of how it works.**\n\nOpenZL takes a description of your data and builds from it a specialized compressor optimized for your specific format. [Learn how it works →](https://facebook.github.io/openzl/getting-started/introduction/)\n\nOpenZL consists of a core library and tools to generate specialized compressors —\nall compatible with a single universal decompressor.\nIt is designed for engineers that deal with large quantities of specialized datasets (like AI workloads for example) and require high speed for their processing pipelines.\n\nSee our [docs](https://facebook.github.io/openzl) for more information and our [quickstart guide](https://facebook.github.io/openzl/getting-started/quick-start) to get started with a guided tutorial.\n\n## Project Status\n\nThis project is under active development. The API, the compressed format, and the set of codecs and graphs included in OpenZL are all subject to (and will!) change as the project matures.\n\nHowever, we intend to maintain some stability guarantees in the face of that evolution. In particular, payloads compressed with any release-tagged version of the library will remain decompressible by new releases of the library for at least the next several years. And new releases of the library will be able to generate frames compatible with at least the previous release.\n\n(Commits on the `dev` branch offer no guarantees whatsoever. Use only release-tagged commits for any non-experimental deployments.)\n\nDespite the big scary warnings above, we consider the core to have reached production-readiness, and OpenZL is used extensively in production at Meta.\n\n## Building OpenZL\n\n### Build with `make`\n\nThe OpenZL library and essential tools can be built using `make`:\n\n```sh\nmake\n```\n\n#### Build Options\n\nThe `Makefile` supports all standard build variables, such as `CC`, `CFLAGS`, `CPPFLAGS`, `LDFLAGS`, `LDLIBS`, etc.\n\nIt builds with multi-threading by default, auto-detecting the local number of cores, and can be overridden using standard `-j#` flag (ex: `make -j8`).\n\n#### Build Types\n\nBinary generation can be altered by explicitly requesting a build type:\n\nExample:\n```sh\nmake lib BUILD_TYPE=DEV\n```\n\nBuild types are documented in `make help`, and their exact flags are detailed with `make show-config`.\n\nUsual ones are:\n\n* `BUILD_TYPE=DEV`: debug build with asserts enabled and ASAN / UBSAN enabled\n* `BUILD_TYPE=OPT`: optimized build with asserts disabled (default)\n\n### Build with `cmake`\n\nOpenZL can be built using `cmake`. Basic usage is as follows:\n\n```sh\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release -DOPENZL_BUILD_TESTS=ON ..\nmake -j\nmake -j test\n```\n\nDetails on setting CMake variables is below.\n\n#### Build Modes\n\nBy default, we ship several different predefined build modes which can be set with the `OPENZL_BUILD_MODE` variable:\n\n* `none` (default): CMake default build mode controlled by `CMAKE_BUILD_TYPE`\n* `dev`: debug build with asserts enabled and ASAN / UBSAN enabled\n* `dev-nosan`: debug build with asserts enabled\n* `opt`: optimized build with asserts disabled\n* `opt-asan`: optimized build with asserts disabled and ASAN / UBSAN enabled\n* `dbgo`: optimized build with asserts enabled\n* `dbgo-asan`: optimized build with asserts enabled and ASAN / UBSAN enabled\n\n\u003e [!CAUTION]\n\u003e When switching between build modes, make sure to purge the CMake cache and re-configure the build. For instance,\n\u003e `cmake --fresh -DOPENZL_BUILD_MODE=dev-nosan ..`\n\nFor ASAN / UBSAN, ensure that `libasan` and `libubsan` are installed on the machine.\n\n#### Editor Integration\n\nOpenZL ships with settings to configure VSCode to work with the CMake build system. To enable it install two extensions:\n\n1. `cmake-tools`\n2. `clangd` (or any other C++ language server that works with `compile_commands.json`)\n\n**Important:** For proper C++ language server support, you need to generate `compile_commands.json`:\n\nThe preferred method is to use the CMake Tools extension command \"`CMake: Configure`\".\n\nIf it doesn't work, or is too difficult to setup, you can use the manual setup:\n\n```bash\nmkdir -p cmakebuild\ncmake -B cmakebuild -DOPENZL_BUILD_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .\ncp cmakebuild/compile_commands.json .\n```\n\n**When to regenerate:**\n\n* After cloning the repository (first-time setup)\n* When adding/removing source files\n* When modifying `CMakeLists.txt`\n\n#### CMake Variables\n\n* `CMAKE_C_COMPILER` = Set the C compiler for OpenZL \u0026 dependency builds\n* `CMAKE_CXX_COMPILER` = Set the C++ compiler for OpenZL \u0026 dependency builds\n* `CMAKE_C_FLAGS` = C flags for OpenZL \u0026 dependency builds\n* `CMAKE_CXX_FLAGS` = C++ flags for OpenZL \u0026 dependency builds\n* `OPENZL_BUILD_TESTS=ON` = pull in testing deps and build the unit/integration tests\n* `OPENZL_BUILD_BENCHMARKS=ON` = pull in benchmarking deps and build the benchmark executable\n* `OPENZL_BUILD_MODE` = Sets the build mode for OpenZL and dependencies\n* `OPENZL_SANITIZE_ADDRESS=ON` = Enable ASAN \u0026 UBSAN for OpenZL (but not dependencies)\n* `OPENZL_COMMON_COMPILE_OPTIONS` = Shared C/C++ compiler options for OpenZL only\n* `OPENZL_C_COMPILE_OPTIONS` = C compiler options for OpenZL only\n* `OPENZL_CXX_COMPILE_OPTIONS` = C++ compiler options for OpenZL only\n* `OPENZL_COMMON_COMPILE_DEFINITIONS` = Shared C/C++ compiler definitions (-D) for OpenZL only\n* `OPENZL_C_COMPILE_DEFINITIONS` = C compiler definitions (-D) for OpenZL only\n* `OPENZL_CXX_COMPILE_DEFINITIONS` = C++ compiler definitions (-D) for OpenZL only\n* `OPENZL_COMMON_FLAGS` = extra compiler flags used in all targets\n\n### Windows Build\n\nOpenZL uses modern C11 features that may not be fully supported by MSVC. For Windows builds, we recommend using **clang-cl** for the best compatibility.\n\n#### Quick Start (Windows)\n\n1. **Recommended**: Use `clang-cl` for full C11 support\n```cmd\ncmake -S . -B build -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl\ncmake --build build --config Release\n```\n\n2. **Alternative**: Use MinGW-w64 for GNU toolchain compatibility.\n```cmd\ncmake -S . -B build -G \"MinGW Makefiles\"\ncmake --build build --config Release\n```\n\n3. **Limited Support**: MSVC may produce C2099 errors due to limited C11 support.\n\n#### Compiler Detection\n\nRun our detection script to check available compilers and get recommendations:\n\n```cmd\n# PowerShell\n./build/cmake/detect_windows_compiler.ps1\n\n# Command Prompt\n./build/cmake/detect_windows_compiler.bat\n```\n\nFor detailed Windows build instructions, troubleshooting, and installation guides, see [build/cmake/WINDOWS_BUILD.md](build/cmake/WINDOWS_BUILD.md).\n\n## License\n\nOpenZL is BSD licensed, as found in the [LICENSE](LICENSE) file.\n","funding_links":[],"categories":["C","Compression"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Fopenzl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacebook%2Fopenzl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Fopenzl/lists"}