{"id":27598040,"url":"https://github.com/swastikchauhan28/file-compression-system","last_synced_at":"2025-04-22T14:09:35.123Z","repository":{"id":289105880,"uuid":"970131867","full_name":"swastikchauhan28/file-compression-system","owner":"swastikchauhan28","description":"A Java application for compressing and decompressing text files using Huffman Coding. Includes a GUI for easy file selection, compression, and decompression.","archived":false,"fork":false,"pushed_at":"2025-04-21T14:49:28.000Z","size":1463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T14:09:32.237Z","etag":null,"topics":["dsa-algorithm","file-input-output","huffman-compression-algorithm","java","swing","swing-gui"],"latest_commit_sha":null,"homepage":"","language":"Java","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/swastikchauhan28.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,"zenodo":null}},"created_at":"2025-04-21T14:24:48.000Z","updated_at":"2025-04-21T14:54:52.000Z","dependencies_parsed_at":"2025-04-21T15:52:02.152Z","dependency_job_id":null,"html_url":"https://github.com/swastikchauhan28/file-compression-system","commit_stats":null,"previous_names":["swastikchauhan28/file-compression-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swastikchauhan28%2Ffile-compression-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swastikchauhan28%2Ffile-compression-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swastikchauhan28%2Ffile-compression-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swastikchauhan28%2Ffile-compression-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swastikchauhan28","download_url":"https://codeload.github.com/swastikchauhan28/file-compression-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255697,"owners_count":21400410,"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":["dsa-algorithm","file-input-output","huffman-compression-algorithm","java","swing","swing-gui"],"created_at":"2025-04-22T14:09:34.669Z","updated_at":"2025-04-22T14:09:35.116Z","avatar_url":"https://github.com/swastikchauhan28.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 FileCompression-Project-DS\n\n## 📝 Project Overview\n\nThis project is a desktop-based Java application that performs **Text File Compression and Decompression using Huffman Coding**. Huffman Coding is an efficient greedy algorithm that reduces file size by encoding frequently used characters with shorter binary codes.\n\nThe application allows you to:\n- Compress text files and reduce their size.\n- Decompress files back to their original form.\n- Compress any alphabetic string directly into a binary sequence.\n\n---\n\n## 🚀 How It Works\n\nThe app uses the **Huffman Tree** to assign binary codes to characters based on their frequency in the input. Characters that appear more frequently are assigned shorter codes, resulting in an overall reduced file size.\n\n### ✅ Features\n- 📂 **Select and Compress**: Browse and compress any text file.\n- 🔁 **Decompress Files**: Restore previously compressed files.\n- 🧾 **String Compression**: Enter a string manually to get its Huffman-encoded binary.\n- 🖥️ **User-Friendly GUI**: Simple and intuitive interface for all actions.\n- 💾 **Save Output**: Choose location to save compressed or decompressed files.\n\n---\n\n## 🛠️ How to Run\n\n### Option 1: Using Pre-Built Executables\n1. Clone or download the repository.\n2. Go to the `Executable/` folder.\n3. Run:\n   - `EncoderGUI.jar` – Works on systems with Java installed.\n   - `Encoder.exe` – Windows executable, no Java required.\n\n### Option 2: From Source Code\n1. Open the project in any Java IDE like IntelliJ IDEA or Eclipse.\n2. Locate the `EncoderGUI.java` file in the `src/` directory.\n3. Run the `main()` method inside `EncoderGUI`.\n\n---\n\n## 🧱 Folder Structure\n\nfile-compression-system/ ├── Executable/ │ ├── EncoderGUI.jar │ └── Encoder.exe ├── src/ │ └── (All Java source files including EncoderGUI.java) ├── README.md └── ...\n\n\n\n---\n\n## 💻 Technologies Used\n\n- **Java** – Main programming language\n- **Swing** – For building the GUI\n- **File I/O** – For reading/writing input and output files\n- **Huffman Coding Algorithm** – For compression logic\n\n---\n\n## ✍️ Author\n\n**Swastik Singh Chauhan**\n\n---\n\n## 📜 License\n\nThis project is for academic use only. Feel free to explore and modify it as needed.\n\n---\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswastikchauhan28%2Ffile-compression-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswastikchauhan28%2Ffile-compression-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswastikchauhan28%2Ffile-compression-system/lists"}