{"id":36701905,"url":"https://github.com/gyaan/bytebrush","last_synced_at":"2026-01-15T02:42:05.672Z","repository":{"id":332073023,"uuid":"1030780580","full_name":"gyaan/ByteBrush","owner":"gyaan","description":"This is a command-line tool written in Go to find duplicate files in a specified directory.","archived":false,"fork":false,"pushed_at":"2025-08-04T13:20:14.000Z","size":6674,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-12T18:37:31.876Z","etag":null,"topics":["cli","cross-platform","duplicate-files","file-management","go","golang","linux","macos","windows"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gyaan.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":"2025-08-02T10:02:55.000Z","updated_at":"2025-12-19T11:21:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gyaan/ByteBrush","commit_stats":null,"previous_names":["gyaan/bytebrush"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gyaan/ByteBrush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyaan%2FByteBrush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyaan%2FByteBrush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyaan%2FByteBrush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyaan%2FByteBrush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gyaan","download_url":"https://codeload.github.com/gyaan/ByteBrush/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gyaan%2FByteBrush/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"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":["cli","cross-platform","duplicate-files","file-management","go","golang","linux","macos","windows"],"created_at":"2026-01-12T11:38:59.390Z","updated_at":"2026-01-15T02:42:05.668Z","avatar_url":"https://github.com/gyaan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ByteBrush: Duplicate File Finder\n\nA command-line tool written in Go to find and manage duplicate files in a specified directory.\n\n## Table of Contents\n\n- [Features](#features)\n- [Downloads](#downloads)\n- [Usage](#usage)\n  - [Using Pre-built Binaries](#using-pre-built-binaries)\n  - [Building from Source](#building-from-source)\n- [Flags](#flags)\n- [Project Structure](#project-structure)\n- [Code Quality](#code-quality)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n*   Finds duplicate files based on their content hash (SHA-256).\n*   Recursively searches through subdirectories.\n*   Concurrent processing for faster hashing.\n*   Optimized hashing strategy (groups files by size first).\n*   Interactive mode to select which files to delete.\n*   Dry run mode to preview deletions.\n*   Exclude directories and file patterns.\n*   Filter by file type and size.\n*   Formatted output (text or JSON).\n\n## Downloads\n\nYou can download the latest pre-built binaries for Windows, macOS, and Linux from the [GitHub Releases page](https://github.com/gyaan/ByteBrush/releases).\n\n## Usage\n\n### Using Pre-built Binaries\n\n1.  Download the appropriate binary for your operating system from the [releases page](https://github.com/gyaan/ByteBrush/releases).\n2.  Extract the archive and run the executable from your terminal.\n\nFor example, on macOS or Linux:\n\n```bash\n./bytebrush_darwin_amd64 --dir /path/to/search\n```\n\nOn Windows:\n\n```bash\n./bytebrush_windows_amd64.exe --dir C:\\path\\to\\search\n```\n\n### Building from Source\n\n#### Prerequisites\n\n*   Go (1.23 or later)\n\n#### Installation\n\n1.  Clone the repository:\n    ```bash\n    git clone https://github.com/gyaan/ByteBrush.git\n    ```\n2.  Navigate to the project directory:\n    ```bash\n    cd ByteBrush\n    ```\n\n#### Build Commands\n\nTo build the binaries for different operating systems, use the following commands:\n\n*   **Linux:**\n    ```bash\n    GOOS=linux GOARCH=amd64 go build -o bin/bytebrush_linux_amd64 cmd/duplicate-files/main.go\n    ```\n*   **Windows:**\n    ```bash\n    GOOS=windows GOARCH=amd64 go build -o bin/bytebrush_windows_amd64.exe cmd/duplicate-files/main.go\n    ```\n*   **macOS (Intel):**\n    ```bash\n    GOOS=darwin GOARCH=amd64 go build -o bin/bytebrush_darwin_amd64 cmd/duplicate-files/main.go\n    ```\n*   **macOS (Apple Silicon):**\n    ```bash\n    GOOS=darwin GOARCH=arm64 go build -o bin/bytebrush_darwin_arm64 cmd/duplicate-files/main.go\n    ```\n\n## Flags\n\n*   `--dir`: Directory to search for duplicate files (default: `.`)\n*   `--dry-run`: Print files that would be deleted without actually deleting them.\n*   `--exclude`: Comma-separated list of directories or file patterns to exclude.\n*   `--include`: Comma-separated list of file patterns to include.\n*   `--min-size`: Minimum file size in bytes.\n*   `--max-size`: Maximum file size in bytes.\n*   `--format`: Output format (text, json) (default: `text`)\n*   `--interactive`: Prompt for which file to keep when duplicates are found.\n\n## Project Structure\n\n*   `cmd/duplicate-files/main.go`: The main application entry point.\n*   `pkg/filehasher/filehasher.go`: The package responsible for calculating file hashes.\n*   `pkg/fileutils/fileutils.go`: The package responsible for finding files and filtering them.\n*   `pkg/ui/ui.go`: The package responsible for the interactive user interface.\n*   `go.mod`: The Go module definition file.\n\n## Code Quality\n\nThis project uses Go's built-in testing framework. To run the tests, use the following command:\n\n```bash\ngo test ./...\n```\n\nThe code is formatted using `gofmt`.\n\n## Contributing\n\n1.  Fork the repository.\n2.  Create your feature branch (`git checkout -b feature/amazing-feature`).\n3.  Commit your changes (`git commit -m 'Add some amazing feature'`).\n4.  Push to the branch (`git push origin feature/amazing-feature`).\n5.  Open a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyaan%2Fbytebrush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgyaan%2Fbytebrush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyaan%2Fbytebrush/lists"}