{"id":24769595,"url":"https://github.com/sweetbbak/hexxy","last_synced_at":"2025-10-11T19:30:52.951Z","repository":{"id":217395656,"uuid":"743761743","full_name":"sweetbbak/hexxy","owner":"sweetbbak","description":"a modern and beautiful alternative to xxd and hexdump.","archived":false,"fork":false,"pushed_at":"2024-09-29T20:24:18.000Z","size":215,"stargazers_count":29,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-02T07:09:07.304Z","etag":null,"topics":["command-line","forensic-analysis","golang","hex"],"latest_commit_sha":null,"homepage":"","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/sweetbbak.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}},"created_at":"2024-01-15T23:43:23.000Z","updated_at":"2024-09-29T20:24:22.000Z","dependencies_parsed_at":"2024-02-15T20:28:32.154Z","dependency_job_id":"086e253a-5ae0-4650-adfb-860ab0caa5bb","html_url":"https://github.com/sweetbbak/hexxy","commit_stats":null,"previous_names":["sweetbbak/hexxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetbbak%2Fhexxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetbbak%2Fhexxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetbbak%2Fhexxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetbbak%2Fhexxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sweetbbak","download_url":"https://codeload.github.com/sweetbbak/hexxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236122005,"owners_count":19098257,"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":["command-line","forensic-analysis","golang","hex"],"created_at":"2025-01-29T03:00:24.459Z","updated_at":"2025-10-11T19:30:52.945Z","avatar_url":"https://github.com/sweetbbak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/hexxy.png\" /\u003e\n  \u003cdiv align=\"center\"\u003eA modern alternative to `xxd` and `hexdump`\u003c/div\u003e\n\u003c/p\u003e\n\n![example of hexxy in action](assets/img.png)\n\n## Quick install\n\nrequirements: Go 1.20+ (it may build with earlier versions as well but I have not tested them) and git\n\n```sh\ngo install github.com/sweetbbak/hexxy/cmd/hexxy@latest\n```\n\nOn ArchLinux ([hexxy-git](https://aur.archlinux.org/packages/hexxy-git)), e.g.:\n\n```\npikaur -S hexxy-git\nparu -S hexxy-git\nyay -S hexxy-git\n```\n\n## Example usage\n\n```sh\n# normal usage\nhexxy /path/to/file.bin\n\n# output without color\nhexxy --no-color /path/to/file.bin\n\n# read from stdin\ncat mybinary | hexxy\n\n# display plain output\nhexxy -p file.bin\n\n# Include a binary as a C variable\nhexxy -i input-file \u003e output.c\n\n# Use plain non-formatted output\nhexxy -p input-file\n\n# crunch empty lines with a '*' and use uppercase HEX\nhexxy -a --upper input-file\n\n# Reverse plain non-formatted output (reverse plain)\nhexxy -rp input-file\n\n# Show output with a space in between N groups of bytes\nhexxy -g1 input-file ... -\u003e outputs: 00000000: 0f 1a ff ff 00 aa\n\n# display offset in Decimal format\nhexxy -td file.bin\n\n# display offset in Octal format\nhexxy -to file.bin\n\n# configure color\n# shows color even when piping to a file or stdout/stderr\nhexxy --color=always # or never, auto\n\n# turn off ascii table color (but keep byte coloring)\nhexxy -A\n\n# write the default config file\nhexxy --create-config\n\n# ignore config file (you can also just delete it)\n# it is not required. Command line flags override config flags\nhexxy --no-config\n\n# show ascii table bars\n# and set the seperator (great time to set a default in the config file)\nhexxy --bars --seperator='|'\n```\n\n## Building\n\n```sh\ngit clone https://github.com/sweetbbak/hexxy.git\ncd hexxy\ngo build -o hexxy -ldflags='-s -w' ./src\n# or use just by running 'just'\n```\n\n## Changelog\n\n- 3/23/25: added a config file and more options\n\n## Performance\n\n`zk` is a 17mb binary\n\n```sh\nxxd -i ~/bin/zk \u0026\u003e /dev/null  0.66s user 0.02s system 99% cpu 0.677 total\nhexxy -i ~/bin/zk \u0026\u003e /dev/null  0.16s user 0.01s system 98% cpu 0.165 total\n```\n\n```sh\n# plain XXD\nxxd ~/bin/zk \u0026\u003e /dev/null  0.12s user 0.01s system 99% cpu 0.126 total\n\n# hexxy without color\nhexxy -N ~/bin/zk \u0026\u003e /dev/null  0.21s user 0.01s system 100% cpu 0.223 total\n\n# hexxy with color\nhexxy ~/bin/zk \u0026\u003e /dev/null  0.37s user 0.01s system 99% cpu 0.383 total\n```\n\n`hexxy` is obviously going to be slower as it is writing a lot more bytes in the form of\nANSI escape sequences. There is potential to optimize this using some deduplication or Huffman\nencoding, but that might also be slower.\n\n## Credits\n\nthanks to [felixge](https://github.com/felixge/go-xxd) for showing how this is done quickly\nthanks to [igoracmelo](https://github.com/igoracmelo/xx) for the idea to colorize hexdump output with a gradient\n\nthanks to everyone who has committed to this repo! \u003c3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetbbak%2Fhexxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsweetbbak%2Fhexxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetbbak%2Fhexxy/lists"}