tomnomnom/unfurl ? reverse-engineered prompt

Reverse engineered prompt

Build me a small command line tool in Go that reads URLs from stdin and pulls out different parts of each URL.

I want commands for things like domains, apex domains, paths, query keys, query values, key value pairs, and a JSON view of the parsed URL. It should also support a custom format mode so I can combine pieces like scheme, domain, path, query string, fragment, and port into my own output. Add a unique option so repeated values only print once, and a verbose option that shows parse errors.

Make it feel like a simple Unix style tool that I can pipe text into, and include a helpful help screen with examples. If you need to check current Go or stdlib docs while building it, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab