DEV Community

namkhanh0210
namkhanh0210

Posted on

I built an AI-powered workspace safety & posture monitor

Hey devs,

Ever catch yourself leaning into your screen like a gremlin when you are deep in the zone?

I do this all the time. When we hyper-focus on coding or debugging, we unconsciously ruin our sitting posture. On top of that, a messy desk can lead to disaster (like knocking over a cup of coffee onto a laptop).

To solve this, I built ERGOAI β€” an AI-powered workspace companion.

Live Demo: Try ERGOAI here (Works best on desktop)

GitHub Repo: namkhanh0210/ergo_pomodoro_posture_AI (Would love a star if you find it interesting!)

I built an AI-powered workspace safety & posture monitor (100% Local / In-browser)

Hey devs,

I wanted to share a side project I’ve been working on to solve a common problem for anyone spending hours at a desk: bad posture and messy workspaces.

It's a web app built for productivity, ergonomics, and desk safety.

Try the Web App (No setup required): https://ergoandpostureai.vercel.app/


Features

1. Desk Safety & Reach Zone Assessment

  • Hazard Detection: Detects risky items (like water cups near tech) or distractions and alerts you to move them out of your reach zone.
  • Custom Reach Zone: Calculates your safe workspace boundary based on your arm span, suggesting where to place essential tools.

2. Focus & Posture Monitor Mode

  • Smart Pomodoro Timer: Keeps you productive during deep work sessions.
  • AI Posture Tracking: Detects slouching, side leaning, and sitting too close to the screen.
  • Voice Alerts: Gives instant voice warnings if bad…

ERGOAI Posture Detection Demo

The Pipeline: Workspace First, Posture Second

I designed ERGOAI with a logical, two-step workflow to ensure you are fully protected before you start grinding:

  • Setup Workspace (Desk Safety): Before you even start working, the AI evaluates your environment. It checks your desk safety, identifies objects, and helps you clear out potential hazards (like a drink placed too close to your tech gear or out of your safe reach zone).
  • Monitor & Focus (Posture & Pomodoro): Once your workspace is safe, you move to the focus phase:
    • 1-Click Calibration: Sit upright and take a snapshot of your ideal baseline posture.
    • Unconscious Bad Habit Detection: Start the built-in Pomodoro timer. While you are hyper-focused on your work, the AI continuously tracks your body landmarks and alerts you by voice whenever you start slouching or leaning.

Privacy-First Architecture

As developers, we all care about privacy when it comes to webcam access. Even though this app has a backend for handling core application logic, your privacy is strictly protected:

  • Real-time Processing: The AI vision processes frames in real-time.
  • Data Protection: No video streams or personal images are ever saved or sent to the backend database. Your webcam data is handled securely and transiently.

I would absolutely love to hear your thoughts, feedback, or any bugs you might find. Feel free to test it out and let me know if it helps you fix that "programmer posture"!

Happy coding, and sit up straight!

Top comments (0)