Skip to content
/ hz Public

A simple macOS App that demonstrates how to compress and decompress files using the Huffman Coding algorithm

License

Notifications You must be signed in to change notification settings

htaschne/hz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hz icon

HuffmanZip (Hz) is a simple macOS application built with Swift 6.1 that demonstrates how to compress and decompress files using the Huffman Coding algorithm.

⚠️ Disclaimer

This project is provided for educational purposes only. It is not optimized for performance or real-world use. Use at your own risk.

✨ Features

  • 📦 Compress any file using the Huffman algorithm
  • 📂 Decompress previously compressed .hz files

🧠 Why Huffman?

Huffman coding is a classic lossless data compression algorithm. While no longer optimal compared to modern codecs, it’s widely used as an educational introduction to entropy encoding.

🚀 Getting Started

Requirements

  • macOS 15.4.1 or later
  • Xcode 16.3 or later
  • Swift 6.1

Installation

Clone the repository and open the Xcode project:

git clone https://github.com/htaschne/hz.git
cd hz
open hz.xcodeproj

Demo

Although it's way slower than state of the art compressors it compresses the bible in under a second and takes 2s to decompress it

Gif of Hz app demo

About

A simple macOS App that demonstrates how to compress and decompress files using the Huffman Coding algorithm

Resources

License

Stars

Watchers

Forks

Languages