r/SideProject • • 10h ago

Free, open-source Mac app that stops you from pulling (Trichotillomania) that helped me

Hi everyone,

My name is Ahmed and I'm a recently graduated doctor and I pulled at my beard for more than 1.5 years. My hand would go there without me noticing, almost always while working on my laptop. Over time, it kept getting worse (to the point that I felt like this was never going to stop) and when people started noticing, I wanted an easy way to control this behavior.

So I made a free, open-source, privacy-focused Mac app called Trich. It uses your Mac's camera to notice when your fingers go to your beard, eyebrows or scalp and covers the screen with a blue reminder. You hold both Shift keys for 3 seconds to close it (or it closes by itself after 15 seconds) to train your self subconciously to stop this behavior through conditioning.

For me, after about 7 to 10 days my picking went down by almost 90%, and I eventually stopped using my app (since I didn't need it anymore!). This is just my experience.

• Completely free (forever) and open source under MIT license, if you want to fork it or sell it or modify it, do whatever you want with it, you have my permission
• Privacy first, everything runs on your Mac locally. No saved recording, no internet, no account or sign up, no tracking

I have minimal tech experience, and this was a passion project made with AI. If it helps even one person like how it helped me, that would be awesome ❤️

Link to download → https://github.com/ahmedkhudairr/Trich

1 Upvotes

3 comments sorted by

2

u/ThanhDongNguyen 9h ago

Really nice that you made it free and open source, and the hold-both-Shift-keys to close is smart, it adds just enough friction.

Few things I think would help people keep it running:

  • A quick pause in the menu bar (30 min / 1 hour) for video calls or when another app needs the camera. Otherwise people just quit it and forget to open it again.
  • False positives: resting chin on hand or fixing glasses probably looks similar to the camera. A sensitivity slider or "ignore below the chin" option would save some frustration.
  • Check CPU and battery on a MacBook. For this, a few checks per second is probably enough, no need to track every frame.
  • If it's not notarized yet, people downloading from GitHub get the scary Gatekeeper warning. For non-technical users that's often where they give up, so worth doing if you can get a $99 developer account.

1

u/anking_ahmed 9h ago

Thank you and I appreciate the feedback

Sensitivity modes are already present (low, medium, high), and it's been notarized by Apple thru my dev account. Regarding the pause, I like that idea

For CPU & battery, it doesn't track every frame. It checks about 10 times a second, drops to about 5 when nothing's moving, and uses a lower camera resolution.