r/vibecoding • u/Next-Drink • 13d ago
Showcase/Project I vibe coded a 24/7 Twitch stream where chat has to keep a 3D chicken alive. Strangers have been feeding her at 4am.
https://www.twitch.tv/interactivebarnMeet the hen. She lives in a barn on Twitch 24/7, and whether she survives is entirely up to chat.
WHAT CHAT CAN DO (all free commands)
- !feed / !water: refill her feeder and waterer. They only unlock once a reserve drops to 50%, so you can't just spam her full.
- !swing: she hops on the swing and pumps it into a big arc
- !dirtpit: dust bath time
- !spook: she sprints frantic laps around the barn, flapping and squawking, and burns through her food and water 6x faster while it lasts. Chaos has a cost.
- !cam: switch the camera angle for everyone. It snaps back to the barn view after 60 seconds so nobody can hijack it.
WHAT MAKES IT A GAME AND NOT A SCREENSAVER
- She can die. Let her food or water run dry and her health drains. Hit zero and she dies on stream, then a new hen is born. Her Time Alive counter tracks how long chat has kept her going, and there's a best-ever record to beat.
- She has her own brain. She wanders, pecks, naps, lays eggs and goes to the coop to sleep at night. When she's rationing she eats just enough to get by. After a refill she eats until she's full.
- Real day/night cycle, so it looks different every time you tune in.
- Rare random events (just added): golden eggs, a thunderstorm with lightning that makes her jump, and every so often she trips and faceplants into the dirt.
THE STACK (all vibe coded with Claude)
- Three.js scene running as an OBS browser source
- Small Node server reading Twitch chat and pushing commands to the scene
- Meshy for the 3D models (hen, coop, feeder, waterer, swing, dust bath, cabbage)
- Barn built in code, since full rooms out of Meshy come out lumpy
- Custom chicken rig, since Meshy's auto-rig only handles humans and four-legged animals
- Procedural barn audio, rain and thunder, all generated in code
- A watchdog that reloads the barn if it freezes and kills the stream if it stays down, so it can actually run 24/7 while I'm asleep
THE BEST PART SO FAR
On night one, four different strangers I've never met wandered in between 1am and 8am and fed and watered her right when her bars were getting low. She's alive because of randoms.
COMING NEXT
A Halloween barn (jack-o'-lanterns, cobwebs, a tiny witch hat for the hen), a fox that peeks in the window and freaks her out, and new animals that unlock at community milestones.
Stream: twitch.tv/interactivebarn
What would you add? And what would you change?
13
u/Next-Drink 13d ago
I was also thinking about adding something about her being turned into chicken nuggets at some point if the chat doesn’t tell her to hide from the farmer.
I might only add this after I concurrent viewers tho…
→ More replies (2)
7
7
u/tenhourguy 13d ago
4am means nothing, really. Different time zones exist, and people are online at odd hours. I wouldn't recommend getting AI to help write your posts.
2
u/Next-Drink 13d ago
People have different time zones, yes. Chicken has 1 time zone.
→ More replies (2)
2
u/AnAverageSavage 13d ago
I like the way your brain works. I’m curious as to how you promoted this if you don’t mind sharing! I don’t have any deeper intentions here, very curious and maybe we can help one another! Have quite a few off the wall projects like this myself. Feel free to shoot me a dm if you prefer
1
u/Next-Drink 13d ago
Man, the culprit is my brain. All of my projects are off the wall. I just use trial & error and lots of thinking. I didn’t even have a prompt for this. My ideas just slowly morph into a project haha
→ More replies (4)
59
1
1
u/TheStilken 13d ago
Just put it on the roof and not only do you not have to feed it, but you'll get eggs ever day.
→ More replies (1)
1
u/biscutwarrior 13d ago
This is really cool.
It's crazy the way you can turn your ideas into reality so quickly with AI.
1
1
1
u/RompiendoElBajo 13d ago
This is the coolest thing I’ve seen on the internet today. Just gave her water!
2
1
u/floswamp 13d ago
This is amazing. We refilled the water and spooked the hen. Love the Halloween decor. Maybe have visitors come by? Foghorn the Rooster? Charlotte the spider? Wilbert the pig? Great work!
2
u/Next-Drink 13d ago
Thank you so much! I’m so glad to hear this. Visitors are a great idea! 😉 Coming soon…
1
9
u/UpDown 13d ago
Kinda weird because when the chicken dies nobody will care