whoisbutcooler

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

whoisbutcooler

A terminal UI for IP address lookups. Type an IP or hostname and it draws a braille world map, drops a pin on the address's geolocated position, and shows a seven-line summary of the registry data that actually matters — not raw whois output.

Why

whois buries the four things most people(me) want 95% of the time —

-where an address is,
-who runs it,
-what network block it belongs to, and ,
-who to email about abuse — under nameservers, raw registry timestamps, and a page of legal disclaimer.

whoisbutcooler shows those facts directly, on a map, in any terminal, including a plain SSH session with no graphics protocol support.

Install

Grab prebuilt binary from the latest release — macOS, Linux and Windows, on both Intel and ARM, no Go toolchain needed. Unpack it and put whoisbutcooler anywhere on your PATH:

tar xzf whoisbutcooler_darwin_arm64.tar.gz
mv whoisbutcooler ~/go/bin/

Windows archives are .zip rather than .tar.gz. Releases ship with a checksums.txt, so you can make sure I'm not trying to poison you:

shasum -a 256 -c checksums.txt --ignore-missing

Or build it from source, which needs Go 1.25 or later:

go install github.com/PromDungeon/whoisbutcooler@latest

No API key, no signup, no configuration: geolocation comes from ipwho.is and registry data from rdap.org, both free and keyless.

Where your query goes

Every lookup asks two services about the address: ipwho.is for the location and rdap.org for the registry record, both over HTTPS. If ipwho.is is unreachable, geolocation falls back to ip-api.com, whose free tier has no TLS — that request, and the address in it, cross the network in cleartext. The fallback is never silent: whenever it answers, the status line says so, in the same frame as the result. Private and reserved addresses are rejected locally, before either provider is called. A hostname is resolved first, so its DNS lookup still goes out even when it turns out to point somewhere private.

Usage

whoisbutcooler                # open the interactive prompt with nothing looked up yet
whoisbutcooler 8.8.8.8         # look it up immediately, then stay interactive
whoisbutcooler --once 8.8.8.8  # render a single frame to stdout and exit

Keybindings

Focus alternates between the input prompt and the map.

Key Input focused Map focused
tab focus map focus input
esc — focus input
enter submit lookup —
up / down history recall pan
left / right move cursor pan
h j k l (text) pan
+ / - (text) zoom in / out
0 (text) reset to fit
r (text) retry last lookup
q (text) quit
ctrl+c quit quit

Map data

The coastlines are Natural Earth 110m land polygons (public domain), embedded in the binary and reduced to polylines at build time — no download or database needed at runtime.

National borders come from Natural Earth's 110m admin_0 boundary lines, also public domain, in a second 26KB blob. They are drawn in a dimmer grey beneath the coastline, and only once the view is a continental one or tighter — about 120 degrees of longitude across. Above that the map is being used to orient rather than to read a region, and borders there cost ink without adding legibility. Every lookup lands well inside the threshold, so in practice you see them whenever there is something to see.

Not included

Raw whois passthrough, bulk or batch lookups, live traffic monitoring, and offline operation are all out of scope. If you need the full record, use whois.

Licence

MIT — see LICENSE. The embedded map data is Natural Earth, which is public domain and carries no attribution requirement of its own.

Documentation

Overview

Command whoisbutcooler looks up an IP address and shows where it is on a braille world map, alongside a seven-line summary of the registry data worth reading.

Directories

Path Synopsis
cmd
genworld command
Command genworld converts a Natural Earth GeoJSON file — land polygons or boundary lines — into the compact binary polyline format embedded by internal/world.
Command genworld converts a Natural Earth GeoJSON file — land polygons or boundary lines — into the compact binary polyline format embedded by internal/world.
internal
canvas
Package canvas rasterizes points and lines onto a grid of Unicode braille cells.
Package canvas rasterizes points and lines onto a grid of Unicode braille cells.
geo
Package geo projects latitude/longitude onto a dot grid and manages the pan/zoom viewport.
Package geo projects latitude/longitude onto a dot grid and manages the pan/zoom viewport.
lookup
Package lookup resolves an IP or hostname into the handful of facts worth showing.
Package lookup resolves an IP or hostname into the handful of facts worth showing.
ui
world
Package world owns the embedded coastline dataset and draws it through the canvas rasterizer using the geo projection.
Package world owns the embedded coastline dataset and draws it through the canvas rasterizer using the geo projection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL