logoalt Hacker News

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

258 pointsby sleepingNomadtoday at 8:43 AM93 commentsview on HN

USB-C cables can be a mess. One cable charges at 5W, another does 100W and Thunderbolt 4, and they look identical in the drawer.

WhatCable sits in your menu bar and reads the cable data your Mac already has access to. Plug in a cable and it tells you in plain English what it can actually do: charging wattage, data speed, display support, Thunderbolt, etc.

Built in Swift/SwiftUI. Open source, free, no tracking.

GitHub: https://github.com/darrylmorley/whatcable


Comments

billyhoffmantoday at 3:00 PM

Props to @sleepingNomad here, who has done 16 releases in the last 7 hours, incorporating feedback from HN on the fly!

* Don't like menubar apps? you you can run it as a normal app

* Don't like GUIs? Now you can run it on the command line

Just look at that Changelog:

https://github.com/darrylmorley/whatcable/releases?page=2

show 2 replies
pimeystoday at 11:40 AM

Cool. Just want to chime in that I wanted to see how quickly GPT-5.5 can turn this into a KDE Plasma 6 Plasmoid. Took about 10 minutes and two dollars, and now I have a nice QML app showing the same information in my taskbar.

Just wanted to say this because I feel it's really crazy that I can just do this today...

show 1 reply
bhoustontoday at 1:54 PM

I tried to contribute back adapter current Wattage display to stats, but I got my PR closed without comment. It is similar to this:

https://github.com/exelban/stats/pull/3024

sagacitytoday at 10:55 AM

This is pretty nice, but why do a lot of Mac apps insist on living in the menu bar?

show 3 replies
bichiliadtoday at 11:51 AM

I love that this is a native mac app. Thanks for building this, and thanks for sharing.

show 1 reply
n3stormtoday at 9:54 AM

can something like this be done for linux? maybe a wrapper for lsusb. I just found https://github.com/doug-gilbert/lsucpd which adds PD and more.

show 1 reply
bkummeltoday at 10:01 AM

Doesn't work for me. Says "No USB-C ports detected", although I'm pretty sure my monitor is connected via USB-C, and the monitor also has a built-in USB hub where my USB keyboard is connected to.

show 2 replies
ricardobeattoday at 10:47 AM

I remember seeing a recent analysis where the vast majority of cables from Amazon misreported their capabilities. Is this tool going to be able to catch those, or blindly report what the chip advertises?

show 1 reply
jaredstoday at 12:51 PM

Thanks for creating this. I'm blind so the $16 USB tester off amazon to sort through my drawer of cables is not an option. This will stop me from needing to buy a sbc just so I have something running Linux to test cables.

emarotoday at 9:59 AM

Pretty cool. What I don't understand is why both my USB@1 and USB@2 show the same connected devices. I'd expect to only see the respective devices. USB@1 is my USB-hub monitor, the other one is connected to my phone. Both show keyboard, etc. plus my phone as connected devices.

kmmbvnr_today at 10:09 AM

Could it be just a console utility?

show 2 replies
aquirtoday at 10:06 AM

Good stuff, but it's telling me that my USB-C Thunderbolt cable has been plugged in upside down but the connector handled this. I was not aware that you can plug in something into USB-C upside down!

show 3 replies
theanonymousonetoday at 11:03 AM

I would like to ask an LLM to rewrite it as Python CLI script. Is it even possible, or some Swift-only functionality is necessary?

P.S. Some time ago I learnt through HN of a one-line command in macOS which revealed the power (Wattage) of the connected charger. Can't find it now, but it was very useful.

show 1 reply
brktoday at 10:16 AM

14 Inch 2021 MBPro / M1 Pro chip / Sonoma 14.5

WhatCable says "No USB-C Ports Detected".

System info clearly shows my iPhone attached to USB 3.1 Bus.

show 1 reply
thiagoperestoday at 11:12 AM

I am definitely gonna contribute or fork to create an open leaderboard of cable brands and quality :D

show 2 replies
mp0rtatoday at 11:32 AM

Great project. It would be even better if it supported platforms other than Mac.

show 1 reply
jrochkind1today at 1:28 PM

oh my god, this is going to change my life if it works.

randomeeltoday at 12:00 PM

Cool ! Would love a brew installation as well

BiteCode_devtoday at 10:30 AM

Tangential, but LLT recently came out with their own lineup of USB-C cables guaranteed to be up to spec. And they have the main specs printed on each cable end, so you know what you grab.

That should be mandatory.

show 3 replies
Alifatisktoday at 10:50 AM

Any plans to support installations through Homebrew?

show 1 reply
gedytoday at 10:58 AM

I like the idea and thanks for sharing, but I do think folks who vibe code or use Claude should take their time using, testing, and improving app before rushing to share. This was pushed/deved like 2 hours ago

show 2 replies
ulfwtoday at 10:28 AM

The 'plugged upside down' is weird for a USB-cable. Especially as that doesn't work. I tried plugging it 'the other way around' and it showed the same 'upside down' warning

show 1 reply
hallegbgtoday at 10:15 AM

Nice!

suyavuztoday at 10:19 AM

[dead]

denkmoontoday at 10:57 AM

I get that the connectors are identical but I find it odd that people find it so challenging. Thunderbolt is the thick and short cable. If it's not thick it's not gonna work well and if it's over a metre it's not gonna work well. cf my pile of thin long "basic" usb c cables.

show 3 replies