DEV Community

Cover image for I Built a Floating Browser AI Desk Pet with Chrome Document Picture-in-Picture & Web Audio
Yanqiang Yu
Yanqiang Yu

Posted on

I Built a Floating Browser AI Desk Pet with Chrome Document Picture-in-Picture & Web Audio

We all open 30 tabs, start a Pomodoro timer in one tab, lose it under VS Code five minutes later, and keep scattered todo thoughts in random scratchpads.

So I built PochiDesk β€” a 100% local-first pixel AI desk companion that floats on top of your screen while you work and turns messy voice or text brain-dumps into prioritized checklists.

Try it live with zero sign-up: πŸ‘‰ https://pochidesk.vercel.app


3 Browser APIs That Made This Zero-Backend

  1. Always-On-Top Desk Buddy via Chrome Document Picture-in-Picture API
    Unlike legacy video-only PiP, window.documentPictureInPicture.requestWindow() lets a web app spawn a real floating mini HTML window containing interactive React components via createPortal:

    • Your animated pixel companion (Kanso Cat, Cyber Shiba, Terminal Bot, Pixel Capybara) reacts live to your focus countdown and completed tasks while sitting cleanly in the corner of your desktop over other apps.
  2. Synthesized Focus Soundscapes via Pure Web Audio API
    Zero external MP3s or audio CDNs. Brown noise and gentle desk rain are synthesized directly in the browser using AudioContext white-noise buffers routed through leaky-integrator lowpass/bandpass BiquadFilterNodes, plus gentle sine-wave chimes on sprint completion.

  3. Offline-First Brain-Dump Parser + Optional BYOK (localStorage Only)
    Speak via Web Speech API or paste messy thoughts (e.g. "Fix CORS bug urgent, email Sarah tomorrow, buy coffee beans").

    • Out of the box, a deterministic local NLP splitter extracts clean action items with HIGH / NEXT / SOON priority tags, time estimates, and one-click Markdown or CSV export.
    • Want deeper breakdown and witty companion commentary? Plug in your own Gemini, OpenAI, or DeepSeek API key in browser localStorage β€” zero middleman server needed.

Live Link & Companion Pack

Would love feedback on the Document PiP floating pet UX and what desktop buddy behaviors you'd want next!

Top comments (0)