显示HN:一款桌面应用,当你咬指甲时会阻止工作。
Show HN: A desktop app that blocks work when you bite your nails

原始链接: https://github.com/cacoos/trackhands

## TrackHands:本地手口部行为意识应用 TrackHands 是一款跨平台桌面应用程序,旨在帮助用户意识到并可能停止下意识地将手放入口中。它利用 MediaPipe 进行实时的人脸和手部检测,在系统托盘中无干扰地运行,并在检测到手指靠近嘴巴时显示警告叠加层,同时截取屏幕截图以帮助自我意识。 TrackHands 使用 React、Rust 和 Tauri 构建,优先考虑隐私——所有处理都在本地进行,不会收集任何数据。它兼容 macOS (11+)、Windows (10+) 和 Linux,仅需要摄像头和摄像头权限。 用户可以自定义检测频率和摄像头分辨率。在 macOS 上安装可能需要终端命令来绕过安全警告。该项目是开源的(MIT 许可证),并欢迎通过 Pull Request 贡献。最新版本和源代码可在 GitHub 上找到:[https://github.com/cacoos/trackhands](https://github.com/cacoos/trackhands)。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Show HN: 一个桌面应用,当你咬指甲时会阻止工作 (github.com/cacoos) 11 分,由 cacoos 2小时前发布 | 隐藏 | 过去 | 收藏 | 1 条评论 看到了这个仓库:https://github.com/tldev/posturr 并想分享我的戒咬指甲的解决方案 :) camel_gopher 0分钟前 [–] 感谢你的回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

TrackHands Icon

TrackHands is a cross-platform desktop app that detects when your fingers are near your mouth and reminds you to stop.

Latest Release

demo.mov

Download the latest release for your platform from the Releases page.

Since the app is not signed with an Apple Developer certificate, macOS may show a warning that the app "is damaged and can't be opened." To fix this, run the following command in Terminal after installing:

xattr -cr /Applications/TrackHands.app
  1. Clone the repository:

    git clone https://github.com/cacoos/trackhands.git
    cd trackhands
  2. Install dependencies:

  3. Run in development mode:

  4. Build for production:

The built application will be in src-tauri/target/release/bundle/.

  • Real-time hand and face detection using MediaPipe
  • Unobtrusive system tray app
  • Warning overlay when hands are detected near mouth
  • Camera preview with detection visualization
  • Adjustable detection frequency
  • Configurable camera resolution
  • Screenshot capture of detected incidents
  • Privacy-focused — all processing done locally
  • macOS 11+, Windows 10+, or Linux
  • Built-in camera or compatible webcam
  • Camera permissions enabled

TrackHands runs in your system tray and uses your camera to:

  1. Detect your face and mouth position using MediaPipe Face Mesh
  2. Track your hand and finger positions using MediaPipe Hands
  3. Show a warning overlay when fingers are detected near your mouth
  4. Capture a screenshot of the incident to help build awareness
  • All processing is done locally on your device
  • No data is collected or transmitted
  • Camera access is required but footage never leaves your computer
  • Detection Speed: Adjust how frequently detection runs (Slow/Medium/Fast)
  • Resolution: Configure camera resolution (Low/Medium/High)
trackhands/
├── src/                     # React frontend (desktop app)
│   ├── components/          # UI components
│   ├── hooks/               # Custom hooks (detection)
│   └── stores/              # State management
├── src-tauri/               # Rust backend
│   ├── src/                 # Tauri commands
│   └── icons/               # App icons
├── site/                    # Landing page website
│   ├── src/components/      # Page sections (hero, features, etc.)
│   └── src/lib/             # Detection utilities for demo
└── public/                  # Static assets
cd site
pnpm install
pnpm dev
  • Frontend: React, TypeScript, Vite, Tailwind CSS
  • Backend: Rust, Tauri 2.0
  • Detection: MediaPipe (Face Mesh + Hand Landmarks)
  • State: Zustand

If you're having issues with detection:

  1. Ensure good lighting on your face
  2. Try quitting and reopening the app
  3. Check camera permissions in System Settings
  4. Try a different camera resolution setting

Contributions are welcome! Please feel free to submit a Pull Request.

MIT License

Joaquin Ossandon (@cacoos)

联系我们 contact @ memedata.com