Inspiration

A pop-up book already feels like a little theater. We wanted to open one and have the characters notice us.

That became Foldtales: your table is the stage, your imagination directs, and an AI cast performs live. A tiny fox looks up at you for help. You hand him back his lantern, and it lights again in his paws. Later, the lighthouse's beam leaves the page and sweeps across your living room.

What it does

Foldtales turns your real table into a painted pop-up stage. Open www.foldtales.xyz in Quest Browser, with nothing to install. The book settles on your table within reach, the room dims like house lights going down, and the scenery unfolds. Meet Pip, a young fox in a keeper's coat far too big for him, old Wick, and Moth.

There are two ways to experience it:

  • Improvise a show with the cast (the AI Storyteller). Hold the gold talk tab and suggest a premise, talk to the cast, or hand them something from the book's drawer. They answer out loud, act the story out, and can paint new things onto the page. The show spills into your room: rain, shadow play on your wall, fireflies that drift to your hand. Every night's show is new, and it always reaches an ending.
  • Three written chapters, Tales from the Table's Edge. Turn the pages, hand characters what they need, and help Pip keep the lighthouse lit, or sit back and let it play. Chapters follow one another without leaving the headset.

The spectacle reaches beyond the table: a storm blows into your room, the lighthouse beam sweeps your walls, the sea washes across your floor, and stars appear on your ceiling.

It's hands only: pinch to hold, touch to press. A ghost hand teaches the one control, with no text to read.

How we built it

TypeScript, Meta's Immersive Web SDK (IWSDK) and Three.js, so it runs from a link. The book finds your table from Space Setup's labelled planes, and the room effects use the same walls, floor, ceiling and windows.

The characters are layered paper puppets, animated at twelve poses a second for a stop-motion feel, painted with Seedream through Runway from our own designs.

In the AI Storyteller, Whisper on Groq transcribes your speech. Claude writes each turn as an improv partner, saying yes to your idea and building on it, and returns the cast's lines with stage directions: who acts, where they look, what happens in your room. OpenAI gives the cast live voices, and Seedream paints onto the page. The chapters use prepared ElevenLabs voices, captioned inside the book.

A small Hono server on Node, with SQLite and Better Auth, handles AI requests and accounts. We developed in IWSDK's emulator, then tested everything on a real Quest 3.

Challenges we ran into

Making paper belong in a real room. Early versions floated above the table or sank into it. Placement, scale, shadows and reach all needed work.

Making hands feel intuitive. Pinching suits a lantern but not a button. We settled on two actions that never mix: pinch to hold, touch to press, with a soft paper tap on every press.

Finding the right role for AI. AI reactions inserted into a written chapter broke its pacing. Giving improvisation its own stage let the cast respond freely while the written stories stay as written.

Keeping the performance moving. Speech, writing and painting arrive at different speeds. Clear feedback, bounded waits and fallbacks mean a slow service never strands the show. The app, not the model, owns the ending.

Accomplishments that we're proud of

Three complete, voiced chapters inside a real room, with one painted world and every interaction done by hand. An AI show where a spoken idea becomes a performance. And the smallest moment: Pip looking up as you hand back his lantern.

What we learned

Handing a character something gives you a role in their world within seconds. AI improvises best inside strong theatrical boundaries: the cast, the setting, the actions and the pacing give it somewhere convincing to go. And testing in the headset changes everything: a simple beam crossing a real wall became the defining moment.

What's next for Foldtales

Foldtales is live in open beta at www.foldtales.xyz, and we're building it full time.

  • Grow a community of nightly players and learn what brings them back.
  • Make the AI cast a better improv partner: faster, with memory of your past stories, and more aware of your room.
  • Make it easy for anyone, even someone who has never worn a headset.
  • Launch on the Meta Horizon Store and Meta VR Glasses, with new chapters and Story Circle for friends.

Built With

Share this project:

Updates

Submission history