{"id":50639967,"url":"https://github.com/openpeeps/zxc-nim","last_synced_at":"2026-06-07T07:04:54.492Z","repository":{"id":352863657,"uuid":"1215633025","full_name":"openpeeps/zxc-nim","owner":"openpeeps","description":"Bindings to the ZXC compression library, a LZ77-based compressor optimized for high decompression speed","archived":false,"fork":false,"pushed_at":"2026-04-21T12:12:14.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T14:12:28.002Z","etag":null,"topics":["archive","compression","compressor","data","decompression","game-assets","lossless","lossless-compression","lz77","nim","nim-bindings","nim-package","nim-wrapper","openpeeps","zxc"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/openpeeps.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T05:29:58.000Z","updated_at":"2026-04-21T12:11:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/openpeeps/zxc-nim","commit_stats":null,"previous_names":["openpeeps/zxc-nim"],"tags_count":null,"template":false,"template_full_name":"openpeeps/pistachio","purl":"pkg:github/openpeeps/zxc-nim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpeeps%2Fzxc-nim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpeeps%2Fzxc-nim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpeeps%2Fzxc-nim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpeeps%2Fzxc-nim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openpeeps","download_url":"https://codeload.github.com/openpeeps/zxc-nim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpeeps%2Fzxc-nim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34011836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":["archive","compression","compressor","data","decompression","game-assets","lossless","lossless-compression","lz77","nim","nim-bindings","nim-package","nim-wrapper","openpeeps","zxc"],"created_at":"2026-06-07T07:04:34.684Z","updated_at":"2026-06-07T07:04:54.481Z","avatar_url":"https://github.com/openpeeps.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  Bindings to the \u003ca href=\"https://github.com/hellobertrand/zxc\"\u003eZXC compression library\u003c/a\u003e\u003cbr\u003e\n  A LZ77-based compressor optimized for high decompression speed\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ccode\u003enimble install zxc\u003c/code\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://openpeeps.github.io/zxc-nim/\"\u003eAPI reference\u003c/a\u003e\u003cbr\u003e\n  \u003cimg src=\"https://github.com/openpeeps/zxc-nim/workflows/test/badge.svg\" alt=\"Github Actions\"\u003e  \u003cimg src=\"https://github.com/openpeeps/zxc-nim/workflows/docs/badge.svg\" alt=\"Github Actions\"\u003e\n\u003c/p\u003e\n\n## 😍 Key Features\n- Write-Once, Read-Many compression\n- Optimized for **Game Assets**, **Firmware** \u0026 **App Bundles**\n- High decompression speed\n- **Stream API** for compressing/decompressing large data\n- Multi-threaded Streaming API for even faster performance\n- Optional **Checksum Validation**\n- Level-based compression (Fastest, Fast, Default, Balanced and Compact)\n- Reusable contexts for high-frequency call sites\n- **Seekable archives** (Optional seek table for O(1) random access)\n\n## Installation\nUse your favorite package manager to install the ZXC library, or [build it from source](https://github.com/hellobertrand/zxc#option-5-building-from-source).\n\n## Examples\n\nCompressing and decompressing strings with mutable buffers\n```nim\nlet original = \"The quick brown fox jumps over the lazy dog 🦊\"\nvar compressed: CompZscBytes # seq[byte]\ncompressBytes(original, compressed, ZXC_LEVEL_DEFAULT, false)\n\nvar decompressed: DecompZscBytes # seq[byte]\ndecompressBytes(compressed, decompressed, false)\nassert decompressed.bytesToString == original\n```\n\nUse ZXC's streaming API for large data or when you want to enjoy multi-threaded performance\n```nim\nlet testFile = \"test_zxc_input.txt\"\nlet compressedFile = \"test_zxc_input.txt.zxc\"\nlet decompressedFile = \"test_zxc_input_out.txt\"\nlet content = \"ZXC file streaming test!\\nLine 2.\\nLine 3.\"\n\ncompressFile(testFile, compressedFile, level = ZXC_LEVEL_DEFAULT, checksumEnabled = true)\ndecompressFile(compressedFile, decompressedFile, checksumEnabled = true)\n\nassert readFile(decompressedFile) == content\n```\n\nCheck more examples in the [tests directory](https://github.com/openpeeps/zxc-nim/blob/main/tests/test1.nim)\n\n_todo: example with reusable contexts and seekable archives_\n\n### ❤ Contributions \u0026 Support\n- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/zxc-nim/issues)\n- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/zxc-nim/fork)\n- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)\n\n### 🎩 License\nBSD-3-Clause license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).\u003cbr\u003e\nCopyright OpenPeeps \u0026 Contributors \u0026mdash; All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpeeps%2Fzxc-nim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenpeeps%2Fzxc-nim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpeeps%2Fzxc-nim/lists"}