Inspiration
When I'm stuck on a coding problem, the struggle is usually where I learn the most. But most AI tools jump in with the answer the second I slow down. I also get nervous when I present or interview, and nothing ever tells me which parts the nerves actually messed up. I wanted something that knows the difference between struggling and being stuck.
What it does
InFlow uses your laptop camera to read your heart rate and how tense your face looks. It also watches what you're doing, like running the same broken code twice or not changing anything for a while.
If you're stressed but still making progress, it stays quiet. If you're stressed and stuck, it steps in with something small first, like a question. It only gives more help if you still need it.
There's also a speaking mode for practicing presentations and interviews.
For a presentation, you give your talk to the camera. Afterwards, InFlow shows you a timeline of your heart rate next to what you said, so you can see where your nerves helped you and where they made you rush, freeze, or say "um" a lot. Then you can redo just that part until it feels steady.
For an interview, InFlow plays the interviewer. It asks you questions out loud, listens to your answers, and asks follow-ups based on what you said. After, it shows you which questions made you nervous and how you handled them.
How I built it
React and TypeScript for the app, with small Vercel functions as the backend. Heart rate comes from tiny color changes in your face that the webcam picks up. MediaPipe tracks face tension and head position. A decision engine combines stress and progress to decide when to help. The OpenAI API writes the hints and interview questions, and ElevenLabs handles speech-to-text and the interviewer's voice.
All the camera work happens in the browser, so no video gets uploaded. The backend only gets text and numbers, plus audio in speaking mode.
Challenges I ran into
Getting a real pulse from a webcam. My first version showed a number that barely moved and looked made up. I switched to reading three skin patches, only taking samples on new camera frames, and only showing a number once several readings agree. In the end it came within 3 BPM of a phone heart-rate app.
Accuracy on darker skin. Someone asked whether this works the same for everyone, and it doesn’t by default. Darker skin gives a weaker signal, and most research datasets don’t include enough darker skin tones. I tested simulated skin tones, found my first method did worse on darker skin, and switched to one that did much better. It also tells you when the signal is weak instead of guessing.
Knowing when “stuck” really means stuck. Stress alone isn’t a reason to interrupt. Someone can be stressed and still making progress. I settled on needing two signals: no progress, and a heart rate above your own resting rate.
APIs changing mid-hackathon. The Gemini model I started with was retired for new keys partway through, and my ElevenLabs key was missing a permission. I added a fallback to newer models, and built-in backups so the app still works if an API is down.
Not trusting my own tests. I used AI to help write code, so I didn’t want to just trust tests written the same way. I checked the heart rate against a real phone app, and made sure new tests actually failed on the old, worse version.
Accomplishments that I'm proud of
It works on a real face. With just a laptop webcam, InFlow’s heart rate came within 3 BPM of a phone heart-rate app (69 vs 72). On pure noise, it shows a number only 2% of the time. The rest of the time it admits the signal is weak.
I made it fairer, not just faster. When I tested simulated darker skin, my first method was right 7 times out of 20. After I switched methods, it was right 16 times. Lighter skin stayed at 20 out of 20.
It knows when to stay quiet. The coach only steps in when you’ve stopped making progress and your heart rate is up compared to your own resting rate. Then it raises the help one level at a time, and never gives away the code.
Two full practice modes, built solo in one weekend. A coding mode with 43 problems, and an interview mode with a real voice (ElevenLabs) that follows up on what you actually said. 40 of the problems come from Google’s MBPP set, and I checked automatically that every one has working tests.
A report no other practice tool gives you. Every word you said is marked by what your heart was doing at that moment, so you can see exactly where nerves got to you.
It’s live and tested. It’s deployed at inflow-eta.vercel.app, with 174 automated tests, including tests that I confirmed fail on the older, worse version of the code.
What I learned
Timing matters more than the help itself. A good hint at the wrong moment still hurts learning. The hardest part of InFlow wasn’t writing hints. It was deciding when to give them.
One signal isn’t enough. A high heart rate doesn’t mean you’re stuck, and one failed run doesn’t either. Putting two signals together made the coach far more trustworthy than either one alone.
Check your work against the real world. Tests written alongside the code can pass while the app is still wrong. Comparing against a real phone app, and making sure tests fail on the old version, taught me more than a green checkmark did.
Fairness has to be tested, not assumed. I didn’t think about skin tone until someone asked. Testing it showed a real gap, and fixing it made the app better for everyone.
Be honest when you don’t know. Showing “weak signal” instead of a made-up number makes people trust the numbers you do show.
How to ship under pressure. Building fallbacks for every outside service meant the demo kept working even when APIs failed. Cutting features at the right time mattered as much as adding them.
What's next for InFlow
A math mode, accounts so your progress saves, and having InFlow learn how each person shows stress, since everyone shows it differently.
Built With
- elevenlabs
- mediapipe
- openai
- react
- typescript
- vercel
- vite