r/devtools • • Sep 24 '26

Graybox: An API flight recorder in Go

The idea is pretty simple: capture real API traffic, save it as a replayable workflow, and inspect or compare it later when debugging.

The .graybox file is SQLite-friendly, so you're not locked into the CLI either. You can inspect and query the data however you want.

I'm mainly building it for cases where I want to see what an application actually did, rather than manually recreating requests in something like Postman or curl.

It's still early, but I'd love to hear if this is something you'd find useful.

Repo: https://github.com/ViniTamanhao/graybox-core

I would love to head the feedback from devs like me, hence why I am sharing this. Feel free to contact me if you are interested in collaborating or talking about it! Thanks!

0 Upvotes

4 comments sorted by

1

u/kantorcodes1 Sep 24 '26

I was reading record.go: --listen :9000 is accepted by net.Listen, which means the recorder can bind on all interfaces while it is capturing HTTP exchanges. Is off-box exposure intentional, or should non-loopback binds require an explicit unsafe flag? The default is loopback, but the :port shorthand seems easy to use in Docker or CI without realizing the proxy became LAN-reachable.

1

u/The_Platypus_Master Sep 24 '26

Good question. Eventually I will add an unsafe flag so it can be safely implemented in CI testing and such. For now, I wanted a strictly dev debugging tool.

But it's good that you bring this up. If it is a real help to use this in CICD as part of safety tests and such, limiting scope should be a priority.

1

u/kantorcodes1 Sep 26 '26

CI is the case where that shorthand actually bites: --listen :9000 inside a compose network or shared runner accepts traffic from other services, not just your own machine. Keeping loopback the default, gating non-loopback binds behind the explicit flag, and logging the resolved bind at startup covers it without changing the dev-debugging feel.

1

u/The_Platypus_Master Oct 06 '26

Oh yea. I still want to wait for actual usage before going into CI integration. I probably will build some DX things and then MCP for agents, then think of it, but it all depends on adoption, ofc