A collection of small command-line tools I build in my spare time. Each one is too small to deserve its own repository, so they all live here together.
Packs a directory into a single binary .cluster file, or unpacks one back into the original directory structure — without compression.
cluster <directory> # pack directory into <directory>.cluster
cluster <file.cluster> # unpack back to original structure
Files are bundled with a JSON metadata header (paths and sizes) followed by raw file contents. Useful for bundling a tree of files into one file for simple transfer.
Scans your local subnet for hosts listening on a given port. Can optionally expose results through a short-lived HTTP API.
discover <port> # scan subnet, print results
discover "discover://localhost?port=3000&serve=true" # scan and serve results via HTTP
URI query parameters:
| Parameter | Default | Description |
|---|---|---|
port |
3000 |
Port to scan |
serve |
false |
Start HTTP API server |
apiPort |
7370 |
Port for the API server |
When serving, GET /getIP returns a JSON array of discovered IPs. The server shuts down automatically after the first request or after 5 seconds.
Runs a command and throws away all of its output.
void <command> [args...]
stdout and stderr are discarded. stdin passes through normally. Prints Burppppp when done.
go install github.com/velox0/pocketutils/cmd/cluster@latest
go install github.com/velox0/pocketutils/cmd/discover@latest
go install github.com/velox0/pocketutils/cmd/void@latest