TrackWeight: Turn your MacBook's trackpad into a digital weighing scale

(github.com)

Comments

benoau 21 July 2025
There used to be iPhone apps that did something similar -

https://www.theverge.com/2015/10/28/9625340/iphone-6s-gravit...

hn_throwaway_99 21 July 2025
I think this is neat, but only in a Rube Goldberg machine sort of way. The instructions are:

1. Open the scale

2. Rest your finger on the trackpad

3. While mainting finger contact, put your object on the trackpad

4. Try and put as little pressure on the trackpad while still maintaining contact. This is the weight of your object

That is, the pressure sensors only work if it detects capacitance, so you need to be touching the track pad (but not too much!!) while weighing something.

ivanjermakov 21 July 2025
> TrackWeight utilizes the Open Multi-Touch Support library by Takuto Nakamura to gain private access to all mouse and trackpad events on macOS. This library provides detailed touch data including pressure readings that are normally inaccessible to standard applications.

How can something be available as a library but not as a native interface? Swift does not expose that API?

incanus77 21 July 2025
This reminds me of how, twenty years ago, I used the PowerBook’s hard drive vibration sensor to rig up a seismograph to measure construction noise:

https://allthegooddomainsweretaken.justinmiller.io/2007/04/0...

mikpanko 21 July 2025
Very cool. Curious: what is the minimum and maximum weight MacBook's trackpad can reliably measure this way?
pmxi 21 July 2025
This is clever! and potentially useful too.

Have you done any testing to determine how precise and accurate this is? I suspect their must be a lot of variance between laptops, since this isn’t an intended use case.

pavon 21 July 2025
I love this, such a creative hack, and the wonderful irony that it only works when one has their finger on the scale.

* Not legal for trade outside of Ankh-Morpork.

skyboo 21 July 2025
Reminds me of this from when I had an HDD Macbook https://uri.cat/software/LiquidMac/
jordanmorgan10 21 July 2025
Back when we had 3D Touch, there was UIForce which did this. I still lament the loss of 3D Touch to this day :-(
jahantech 21 July 2025
This is exactly why normal people call us geeks "weird". Keep bringing on the cool stuff!
mig39 21 July 2025
Very cool, Krish! Hi from Fort McMurray! I'm going to use this project as an example for a Computer Science class.
projektfu 21 July 2025
Could it be used to provide gait analysis for your pet mouse?
qoez 21 July 2025
Apparantely on safari there's touch strength so this should be possible to make for the web too, cool
markstos 22 July 2025
If you are backpacking with your Macbook, this saves you from also needing to pack a kitchen scale.
arm32 21 July 2025
I must not use this for weed, I must not use this for weed, I must not use this for weed
DonHopkins 21 July 2025
Just what I need to roll the quantitative doobie.
fnord77 21 July 2025
What's the weight range it can handle? no mention of it and I don't want to dig through code
mrheosuper 22 July 2025
OT, but this is what i love about apple laptop. They care about small detail, the detail that won't be on spec sheet for advertising.

Like their laptop speaker is superior to any other machine, even premium laptop like xps or surface won't even come close. Or their huge trackpad but still accurate.

I wish other manufacturers copy this from Apple.

theyknowitsxmas 21 July 2025
Apple would've made an app a long time ago but would get sued after someone put a tire on it.
jojohohanon 22 July 2025
I was a bit frustrated that the expected precision wasn’t on the main summary screen.

Does anyone know?

conflictracker 22 July 2025
Best repo I discovered this month. I love this kind of stuff.
ferbass 23 July 2025
This is a clever idea, well done!
qwertytyyuu 21 July 2025
Ah I remember being able to do this with the iPhone 6s
tln 21 July 2025
No download link?
subdev 21 July 2025
How does one come up with this idea?
thrownawaysz 21 July 2025
Can someone compile a binary? Don't want to download Xcode just for that...
koiueo 21 July 2025
Finally, some actually useful usage scenario for that oversized trackpad
byyoung3 21 July 2025
great work
ynniv 21 July 2025
Finally some hacker news
ChrisMarshallNY 21 July 2025
Very cool, but I'd still probably just buy a cheap digital scale.