{"id":18274920,"url":"https://github.com/berracode/compression_tool_in_c","last_synced_at":"2025-06-21T11:04:57.515Z","repository":{"id":243608845,"uuid":"812854148","full_name":"berracode/compression_tool_in_c","owner":"berracode","description":"Compression tool written in C using Huffman coding","archived":false,"fork":false,"pushed_at":"2024-06-10T18:00:13.000Z","size":5824,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T03:44:35.380Z","etag":null,"topics":["c","compression","compression-algorithm","compression-tool","huffman-coding","huffman-compression-algorithm"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/berracode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-10T02:50:30.000Z","updated_at":"2024-06-12T00:39:50.000Z","dependencies_parsed_at":"2024-06-10T06:40:24.305Z","dependency_job_id":"27b4ff1f-5811-47f9-a07e-1b3676761461","html_url":"https://github.com/berracode/compression_tool_in_c","commit_stats":null,"previous_names":["berracode/compression_tool_in_c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/berracode/compression_tool_in_c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berracode%2Fcompression_tool_in_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berracode%2Fcompression_tool_in_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berracode%2Fcompression_tool_in_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berracode%2Fcompression_tool_in_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berracode","download_url":"https://codeload.github.com/berracode/compression_tool_in_c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berracode%2Fcompression_tool_in_c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110587,"owners_count":23111062,"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","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":["c","compression","compression-algorithm","compression-tool","huffman-coding","huffman-compression-algorithm"],"created_at":"2024-11-05T12:11:16.664Z","updated_at":"2025-06-21T11:04:52.503Z","avatar_url":"https://github.com/berracode.png","language":"C","readme":"# Compression tool\nThis tool written in C is a simple compression tool inspired in https://codingchallenges.fyi/challenges/challenge-huffman/\n\n![cli](./docs/cpress.png)\n\n\n### Features\n\n- Huffman encode and decode implementation\n- Bits manipulation for compact storage\n- Handling of UTF-8 characters.\n\n### Data Structures\n\n- Binary tree is used to build Huffman tree\n- Priority queue is implemented to select nodes with minor frequency.\n- Hash table is used to storage and search characters prefix code quickly.\n\n### Installation\n\n1. Clone repo\n\n\n```bash\ngit clone git@github.com:berracode/compression_tool_in_c.git\ncd compression_tool_in_c\n```\n\n2. Compile project using make\n\n```bash\nmake\n```\n\n### Usage\n\n#### Compresion\n\n```bash\n./cpress compress /path/to/plain.txt  /path/to/compressed.bin\n```\n\n#### Decompression\n\n```bash\n./cpress decompress /path/to/compressed.bin  /path/to/plain.text\n```\n\n\n## Valgrind command\n\n```sh\nvalgrind --leak-check=full --track-origins=yes ./cpress compress ./test_files/victor.txt\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberracode%2Fcompression_tool_in_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberracode%2Fcompression_tool_in_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberracode%2Fcompression_tool_in_c/lists"}