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

> Source: <https://dev.to/yanqiangyu/i-built-a-floating-browser-ai-desk-pet-with-chrome-document-picture-in-picture-web-audio-2f8p>
> Published: 2026-11-18 05:09:13+00:00

**Key takeaway:** Chrome's documentPictureInPicture.requestWindow() plus React createPortal can render a real interactive always-on-top mini app, and Web Audio noise buffers routed through BiquadFilterNode lowpass/bandpass filters produce focus soundscapes without any audio files.

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](https://pochidesk.vercel.app)** — 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](https://pochidesk.vercel.app)

**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`:

`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.
**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 `BiquadFilterNode` s, plus gentle sine-wave chimes on sprint completion.

**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"*).

`HIGH` / `NEXT` / `SOON` priority tags, time estimates, and one-click `localStorage` — zero middleman server needed.
Would love feedback on the Document PiP floating pet UX and what desktop buddy behaviors you'd want next!
