DEV Community

Cover image for PawBot - An AI Desktop Puppy That Eats Your Files 🐾
Varshith V Hegde
Varshith V Hegde Subscriber

Posted on

PawBot - An AI Desktop Puppy That Eats Your Files 🐾

DEV Weekend Challenge: Dog Days Edition Submission πŸ•

This is a submission for Weekend Challenge: Dog Days Edition

What I Built

Remember Neko the cat and those Tamagotchi desktop pets from the 90s? I rebuilt that magic for 2026 β€” except your pet is a golden retriever puppy powered by an LLM.

PawBot is a Chrome extension + browser demo where a cute pixel puppy:

  • πŸ• Roams your screen like a classic desktop pet
  • πŸƒ Chases your cursor when you get close
  • πŸ– Eats anything you drop β€” PDFs, code files, emoji, pasted text
  • πŸ’¬ Barks back with short, mood-aware responses via Google Gemini
  • 😴 Falls asleep if you ignore it too long (with Zzz particles!)
  • ❀️ Reacts to pets β€” click to pet, double-click to wave

Feed it a .pdf and it might say "Mmm, crunchy homework!" Ignore it for 40 seconds and it curls up with sad puppy eyes.

PawBot idle sprite
PawBot eating
PawBot barking


Demo

Full walkthrough on YouTube:

Quick try locally:

git clone https://github.com/Varshithvhegde/pawbot.git
cd pawbot/web
python3 -m http.server 8080
# β†’ http://localhost:8080
Enter fullscreen mode Exit fullscreen mode

Or load the Chrome extension: clone the repo β†’ ./scripts/sync-extension.sh β†’ Load unpacked β†’ select the extension/ folder.


Code

GitHub logo Varshithvhegde / pawbot

AI desktop puppy Chrome extension β€” pixel pet that eats your files and barks with Google Gemini

PawBot 🐾

An AI desktop puppy that lives in your browser. A Tamagotchi/Neko-style pixel pet that roams your screen, chases your cursor, eats files & emoji you drop, and barks mood-aware responses powered by Google Gemini.

Built for the DEV Weekend Challenge: Dog Days Edition.

PawBot pixel puppy

Demo

🎬 Watch on YouTube Β· πŸ“ DEV submission Β· πŸ”— GitHub

Features






































Feature Description
πŸ• Pixel puppy
Full sprite animations β€” idle, walk, run, eat, sleep, bark, wave
πŸ– Feed anything
Drop files, emoji, or paste text β€” pup chases food then eats it
πŸƒ Chase mechanics
Food falls from above β†’ pup runs to it β†’ 4-frame eat animation
πŸ’¬ AI barks
Google Gemini generates short mood-based responses
😴 Sleep mode
Ignore pup 40s β†’ falls asleep with Zzz particles
❀️ Pet & wave
Click to pet, double-click to wave paw
⌨️ Hotkeys

F throw treat Β· B bark Β· Esc
…





Repo: github.com/Varshithvhegde/pawbot


How I Built It

Architecture

Browser tab
    β”‚
    β”œβ”€β”€ Content script (bundled IIFE via esbuild)
    β”‚       └── Shadow DOM canvas overlay (immune to page CSS)
    β”‚
    β”œβ”€β”€ Pet engine (Canvas 2D state machine)
    β”‚       idle β†’ walk β†’ run β†’ eat β†’ sleep β†’ bark β†’ wave
    β”‚
    β”œβ”€β”€ Sprite loader (33 AI-generated pixel frames)
    β”‚
    └── Bark engine β†’ Google Gemini API
            mood + hunger + last meal β†’ short bark text
Enter fullscreen mode Exit fullscreen mode

Technical decisions

Decision Why
Vanilla JS + Canvas Zero build step for the web demo; screen-recording friendly
Shadow DOM overlay Page CSS can't hide the pup (learned this the hard way on AI Studio)
esbuild bundle Chrome content scripts can't use ES import β€” single bundled file fixes it
AI sprite sheet Generated pixel art, auto-sliced with a Python script into 33 transparent PNGs
Chase-then-eat flow Food drops β†’ pup runs β†’ 4-frame eat animation β†’ crumb particles
Fallback barks Works offline without an API key; Gemini enhances when configured

Sprite animations (all 33 frames used!)

Walk animation frame
Run animation frame
Sleep animation frame
Happy mood

State Sprites
Idle 4-frame breathing loop
Walk / Run Directional left & right sprites
Eat 4-frame chew cycle + flying food emoji
Sleep Curled up + floating Zzz particles
Mood Happy, sad, curious, excited overlays
Bark Shows while AI speech bubble is active
Wave Paw idle + 3-frame wave on pet/double-click

Controls

Action How
Feed Drag & drop file or emoji
Feed Paste text/emoji
Pet Click the puppy
Wave Double-click
Throw treat Press F
Bark Press B

Live hunger & happiness HUD in the bottom-left corner.


Prize Categories

βœ… Best Use of Google AI

PawBot uses Google Gemini 2.0 Flash Lite β€” not as a chatbot, but as a personality engine for a desktop pet.

Every bark sends real context to Gemini:

Event Context sent to Gemini Example bark
Fed a .py file "Just ate: main.py (file)", mood: happy "Python for breakfast? Bold choice."
Ignored 40s+ mood: lonely, ignoredMs: 45000 "...hello? I saved you a spot."
Poked happiness: 85, mood: excited "Hehe! Belly rubs detected!"
Hungry hunger: 82/100 "Is that food? IS THAT FOOD?"

Free API key from Google AI Studio β†’ paste in extension popup. Falls back to canned barks if no key is set.


What's next

  • πŸ”Š ElevenLabs bark sounds
  • 🐩 Multiple dog breeds
  • 🦊 Firefox extension

Thanks for reading! If PawBot made you smile, leave a 🐾 in the comments.

Built for International Dog Day πŸ• Β· DEV Weekend Challenge: Dog Days Edition


Top comments (17)

Collapse
 
anik_sikder_313 profile image
Anik Sikder

What stood out to me isn't the Gemini integration it's the product thinking behind it. The puppy already has personality through animations, behaviors, moods, hunger, sleep cycles, and interactions. AI simply adds another layer of expression.

Too many projects start with "Where can I put AI?" This one starts with a fun product and uses AI where it actually adds value. That's usually the stronger design approach.

Collapse
 
tom_jones_230c4659491adcd profile image
Tom Jones

The eat interaction is the part I would protect. It works because a bark from a filename is obviously a joke, and nobody reads "Mmm, crunchy homework!" as a claim about what was in the PDF.

We hit the failure mode that sits one step past that. Our own pipeline summarised dev.to threads, and its prompt was assembled from a title, a URL and the comment thread. The article body was never in it, for the entire life of the file. On long posts with active threads the summaries looked fine. On an 85 word promo post with no comments the prompt collapsed to a bare title, and the model returned about 100 words of specific methodology that existed nowhere, naming metrics the article never mentioned. Nothing errored and nothing logged. We posted a public comment built on one before anyone checked.

The tell turned out to be arithmetic rather than judgement. The invented summaries were roughly as long as their sources or longer; the honest ones were under half. Nothing lived in between, so a word count caught what reading had not.

So the thing I would write down now, while the design is fresh: be explicit about what actually reaches Gemini when the pup eats something. If it is the filename and the MIME type, the barks stay charming forever and the joke is safe. If someone later pipes in extracted text, the same code path starts making claims about contents, and it will do that just as confidently on the file it failed to parse.

Lovely build. The state machine diagram is doing a lot of work in that post.

Collapse
 
technogamerz profile image
π“π‘πž π‹πšπ³π² 𝐆𝐒𝐫π₯

Cute Dog πŸ•β€οΈ

Collapse
 
varshithvhegde profile image
Varshith V Hegde • Edited

Thanks

Collapse
 
officialmailkr profile image
μ˜€ν”Όμ…œλ©”μΌ

νŒŒμΌμ„ β€˜λ¨ΉλŠ”β€™ 캐릭터 κ²½ν—˜μ΄ μž¬λ―Έμžˆμ§€λ§Œ, μ‹€μ œ μ‚­μ œ 전에 격리함과 볡ꡬ μ‹œκ°„μ„ λ‘λŠ” μ•ˆμ „μž₯μΉ˜κ°€ 특히 μ€‘μš”ν•΄ λ³΄μž…λ‹ˆλ‹€. μž₯λ‚œμŠ€λŸ¬μš΄ μΈν„°λž™μ…˜κ³Ό 데이터 보호λ₯Ό ν•¨κ»˜ μ„€κ³„ν•œ 점이 μΈμƒμ μž…λ‹ˆλ‹€.

Collapse
 
varshithvhegde profile image
Varshith V Hegde

Thank You

Collapse
 
autonomous profile image
AutoNomouS

I hope this won’t become crypto scam

Collapse
 
varshithvhegde profile image
Varshith V Hegde

No no it isn't. This whole project has nothing to do with crypto itself

Collapse
 
hoseinmdev profile image
Hosein Mahmoudi

This is so cute! 🐾

Honestly, the most important thing every developer needs is a happy soul, and this definitely made my day. Amazing work!

Collapse
 
varshithvhegde profile image
Varshith V Hegde

trueeee
thanks

Collapse
 
sensatech profile image
Sensa πŸ™ƒ

What πŸ˜‚πŸ˜‚

Some comments may only be visible to logged-in visitors. Sign in to view all comments.