Hacker GitHub

← All repos

wader/fq

View on GitHub ↗ ★ 10,624 Go

fq - jq for binary formats. Tool, language and decoders for working with binary formats.

30 mentions on Hacker News by 13 people: 2 stories, 28 comments · first 2021-12-23 · latest 2026-08-24

Mentions per year 30 mentions · busiest year 2023 (11)
20082026
  1. https://github.com/wader/fq I have really liked fq for binary visualization.
    comment by lbhdc · 2026-08-24 · in Visualizing Binary Files
  2. https://github.com/wader/fq is "jq for binary formats."
    comment by jonathanberi · 2025-03-27 · in A love letter to the CSV format
  3. Nice haven't seen. Shameless plug fq support elf https://github.com/wader/fq and will have a look if i could lend some ideas from llvm-readelf
  4. …tools, for those interested. Apparently it's a hobby of mine: * fq - like jq for binary data: https://github.com/wader/fq * Kaitai Struct - https://kaitai.io/ * visualizer, for the above: https://github.com/kaitai-io/kaitai_struct_visualize…
    comment by turtledragonfly · 2024-07-25 · in Veles: Open-source tool for binary data analysis
  5. …how (possibly large) binaries are represented as JSON you can use the bits_format options, see https://github.com/wader/fq/blob/master/doc/usage.md#options , so fq -o bits_format=md5 torepr ... I can highly recommend to learn jq, it's what…
    comment by wwader · 2024-05-04 · in How to Use JSON Path
  6. …documents and it was a lot less intuitive than just using some dotted string paths with `jq`. https://github.com/wader/fq/
    comment by crabmusket · 2024-05-03 · in How to Use JSON Path
  7. Hey! fq author here. I have a bunch of related tools in the readme https://github.com/wader/fq?tab=readme-ov-file#tools two suggestions: gnu poke and wireshark (can decode lots of more things then just network protocols)
  8. …binary data" tools. Apparently I collect links to these (: * fq - like jq for binary data: https://github.com/wader/fq * Kaitai Struct - https://kaitai.io/ ** visualizer, for the above: https://github.com/kaitai-io/kaitai_struct_visualizer/…
    comment by turtledragonfly · 2024-02-14 · in Reverse-engineering an encrypted IoT protocol
  9. Did someone say let's represent structured data as json? a bit of shameless plug: https://github.com/wader/fq :) It's using a fork of gojq btw!
  10. https://github.com/wader/fq has a REPL and can read JSON. Tip is to use "paste | from_json | repl" in a REPl to paste JSON into a sub-REPL, you can also use `<text here>` with fq which is a raw string literal
  11. …JSON and tex (parse using jq functions). I also use it for exploring ane debug binary formats ( https://github.com/wader/fq ). Now a days i also use it for some adhoc programming and a calculator.
  12. I do lots of exploratory work in various structure data, in my case often debugging media filea via https://github.com/wader/fq , which mean doing lots of use-once-queries on the command line or REPL. In those cases jq line-friendly and…
    comment by wwader · 2023-09-07 · in jq 1.7
  13. …on runtime kaitai support and have made good process but it's quite a big task. Keep an eye on https://github.com/wader/fq/issues/627 your interested.
    comment by wwader · 2023-06-05 · in Fq: Jq for Binary Formats
  14. …be something like: fq -d format.ksy <query> file Subscribe or keep an eye on this issue for updates https://github.com/wader/fq/issues/627 And feel free to ask any questions!
    comment by wwader · 2023-06-05 · in Fq: Jq for Binary Formats
  15. …pettiest gripes I have heard in a while. It's already built, you literally just extract and run: https://github.com/wader/fq/releases/tag/v0.6.0
    comment by 2h · 2023-06-03 · in Fq: Jq for Binary Formats
  16. …If I wrote one for wii sound files, can I just submit a PR or is there some other process? EDIT: https://github.com/wader/fq/blob/master/doc/dev.md documents the development side of things. I’m more interested in the project itself — if…
    comment by sillysaurusx · 2023-06-03 · in Fq: Jq for Binary Formats
  17. ▲ 670
    Fq: Jq for Binary Formats
    story by ingve · 2023-06-03 · 114 comments
  18. …But for those interested, here are some other tools in this vein: * fq - like jq for binary data: https://github.com/wader/fq * Kaitai Struct - https://kaitai.io/ ** visualizer, for the above: https://github.com/kaitai-io/kaitai_struct_visu…
  19. gojq ( https://github.com/itchyny/gojq ) and fq ( https://github.com/wader/fq ) can read YAML and output JSON. But that won't nescessarily help, because other parsers can intepreret that YAML differently.
    comment by jwilk · 2023-01-13 · in The Yaml document from hell
  20. …<host>www.inkandswitch.com</host> <host>blog.google</host> <host>fly.io</host> ... </hosts> See https://github.com/wader/fq/blob/master/doc/formats.md#xml and https://github.com/wader/fq/blob/master/doc/formats.md#html for examples and…
    comment by wwader · 2022-11-30 · in Pup: Parsing HTML at the command line
  21. fq has mp4 support https://github.com/wader/fq is quite visual but is a CLI tool (for now). It has a REPL and query language to poke around. Disclaimer: i'm the author. Other mp4 tools i use are https://gpac.github.io/mp4box.js/test/filerea…
    comment by wwader · 2022-11-26 · in An MP4 file first draft
  22. …stating that the stream type is video and the object type is PNG. You can see a decode using fq ( https://github.com/wader/fq ) of the file used in the poster here https://twitter.com/mwader/status/1596219922304360448 Hope that was helpful
    comment by wwader · 2022-11-26 · in An MP4 file first draft
  23. …it can be used for more things with other types then just JSON. If you interested have a look at https://github.com/wader/fq where i've tried to expand on it.
    comment by wwader · 2022-11-26 · in Jqjq: Jq Implementation of Jq
  24. gron is great, i have this in my init.jq file for fq ( https://github.com/wader/fq ). Sadly jq lacks a path_to_expr function so a bit harder to do it with that. def gron: ( path(..) as $p | getpath($p) | scalars | "\($p | path_to_expr) =…
    comment by wwader · 2022-11-25 · in Jqjq: Jq Implementation of Jq
  25. …fq as submodule, import/register your own format decoders and then run cli.Main. More or less what https://github.com/wader/fq/blob/master/fq.go does. I have private version of fq for work with some proprietary formats that does this and…
    comment by wwader · 2021-12-23 · in Fq: Jq for Binary Formats
  26. Hi, here is issue related to this where i explain a bit what would be required https://github.com/wader/fq/issues/20 and how protobuf support currently works.
    comment by wwader · 2021-12-23 · in Fq: Jq for Binary Formats
  27. Permanent link (press 'y' on any Github link): https://github.com/wader/fq/blob/eb4a6fdbd6ef3a09fc59802e96e...
    comment by heinrich5991 · 2021-12-23 · in Fq: Jq for Binary Formats
  28. apparently they went ahead and implemented a bunch of them in Go: https://github.com/wader/fq/tree/master/format
    comment by luto · 2021-12-23 · in Fq: Jq for Binary Formats
  29. Supported formats: https://github.com/wader/fq/blob/master/doc/formats.md They should probably make this a bit more prominent. It's an impressive list for a new project.
    comment by kitd · 2021-12-23 · in Fq: Jq for Binary Formats
  30. ▲ 450
    Fq: Jq for Binary Formats
    story by philosopher1234 · 2021-12-23 · 81 comments