Storyforge
Inspiration
We grew up watching anime and reading novels, always on the outside looking in. What if you could step inside a story you already love — an ongoing anime, a classic novel — and bend it to your will? That question became Storyforge.
What It Does
An AI-powered interactive fiction engine that drops you inside existing universes and lets you reshape the story in real time. Choose your genre, set your premise, and play in one of three modes — pick from choices, roll the dice, or type anything you want in Custom Mode. The AI adapts. Every character gets its own voice. The background reacts to the emotional tone of each scene.
How We Built It
- Story generation — OpenAI GPT-4o-mini with strict JSON-structured prompts
- Voice narration — Edge TTS with per-character prosody tuned by emotion and style
- Visuals — p5.js particle animations that shift with scene emotion
- Frontend — HTML, CSS, Vanilla JS
Challenges
Getting the AI to return consistent, parseable JSON across every scene was the hardest problem. Apostrophes silently broke the parser — we had to ban them in the system prompt and sanitize output on every response. Syncing audio playback with scene text required prefetching all audio blobs before playback begins.
What We Learned
Prompt engineering is real engineering. Edge TTS has surprisingly expressive prosody controls. And tying p5.js particle behavior to emotional state made the whole experience feel alive in a way plain CSS never could.
Log in or sign up for Devpost to join the conversation.