Fablecraft Logo

Fablecraft

Turn your child's drawings into AI-powered interactive story adventures that teach real life lessons.

Kids spend 3+ hours daily on screens, but almost none of it is creative. Fablecraft changes that. A child draws anything. AI transforms it into a personalized, illustrated storybook that teaches kindness, courage, and honesty, narrated aloud and driven entirely by their imagination.

EvoHacks 2 Beginner Friendly Social Good Next.js React TypeScript Tailwind CSS FastAPI Python Amazon Bedrock Amazon Polly Amazon S3 AWS EC2 Gemini Docker License: MIT

Note for the judges: Character Generation and quest modes will not be available live as of now due to credit limits. Please refer to the youtube demo video, uploaded pictures and codebase as to judge the product on the basis of completion. Thank you.


🎯 Fit to the EvoHacks Theme

EvoHacks asks builders to turn curious ideas into working projects that solve a real problem or improve an everyday experience. Fablecraft does exactly that for one of the most common experiences of modern childhood: screen time.

  • Theme connection: Fablecraft improves an everyday experience for millions of families, a child's screen time, by turning passive watching into creating: every drawing becomes a personalized, narrated story adventure that teaches a real life lesson, so the project's core purpose is to turn a creative idea into something meaningful for kids and parents.
  • Evolution at the core: A child's sketch evolves into an animated character, then an 8-scene quest, then a narrated adventure, then a life lesson. Every stage builds on the child's own creation.
  • Social Good: Fablecraft turns passive, consumption-only screen time into creative, values-based learning that parents and teachers can trust.
  • Beginner Friendly: The child needs zero skills. They draw, and the AI does the rest.

💡 The Problem and Who It Helps

Kids spend 3+ hours daily on screens, but they mostly watch, scroll, and tap. They rarely create. Every parent feels this tension.

  • Specific problem: Children's screen time is overwhelmingly passive (autoplay video, endless scrolling) with almost no creativity or character-building.
  • Intended users: Children aged 4-8 who love to draw, and the parents and teachers who want screen time to be worth something.
  • Improvement over today's approach: Existing story apps hand kids pre-made content. Fablecraft starts from the child's own drawing, so the child is the author, not the audience.

Fablecraft asks: What if a 5-year-old's drawing session could become a personalized AI storybook that teaches them about sharing, honesty, or being brave?


⚙️ How It Works

Character Generation A child's drawing transformed into an AI-animated character

Step What Happens AI Behind It
🖌️ Draw Child draws on canvas or uploads a photo -
✨ Generate AI creates an animated character Vision AI + Image Generation
📖 Learn Pick a life lesson (sharing, kindness, courage...) Content Moderation
🌍 Explore Choose a world: Fantasy, Space, Underwater, Jungle -
🎮 Play 8-scene interactive quest with choices LLM Story Generation
🔊 Listen AI narrates every scene aloud Neural Text-to-Speech

🛡️ Content Safety: Built for Kids

Fablecraft blocks inappropriate content automatically. If a child draws something unsuitable, the AI catches it and responds with a gentle, child-friendly message.

Content Safety Content moderation in action, keeping the experience safe and friendly


🏗️ System Architecture

┌─────────────────────────────────────────────────────────────────┐
│                      FABLECRAFT ARCHITECTURE                     │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌────────────────┐          ┌────────────────────────────────┐ │
│  │   Frontend     │  REST    │       Backend (FastAPI)         │ │
│  │   Next.js 14   │ ──────►  │                                │ │
│  │   React 18     │          │  ┌───────────┐  ┌───────────┐ │ │
│  │   TypeScript   │          │  │  Vision   │  │   Quest   │ │ │
│  │   Tailwind CSS │          │  │ Analyzer  │  │  Engine   │ │ │
│  └────────────────┘          │  └─────┬─────┘  └─────┬─────┘ │ │
│         │                    │        │               │       │ │
│  ┌──────▼───────┐           │  ┌─────▼─────┐  ┌─────▼─────┐ │ │
│  │ Gamification │           │  │ Character │  │   Scene   │ │ │
│  │ • XP/Levels  │           │  │ Generator │  │Illustrator│ │ │
│  │ • Streaks    │           │  └─────┬─────┘  └─────┬─────┘ │ │
│  │ • Achieve.   │           │        │               │       │ │
│  └──────────────┘           │  ┌─────▼───────────────▼─────┐ │ │
│                              │  │       AI Services          │ │ │
│  ┌──────────────┐           │  │  • Amazon Bedrock (Claude) │ │ │
│  │    Audio     │           │  │  • Gemini (Image Gen)      │ │ │
│  │ • Music/SFX  │           │  │  • ClipDrop (Stability)    │ │ │
│  │ • TTS Duck   │           │  │  • Amazon Polly (TTS)      │ │ │
│  └──────────────┘           │  └─────────────┬─────────────┘ │ │
│                              │                │               │ │
│                              │  ┌─────────────▼─────────────┐ │ │
│                              │  │       Amazon S3            │ │ │
│                              │  │    (Asset Storage)         │ │ │
│                              │  └───────────────────────────┘ │ │
│                              └────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘

Component Breakdown

Component Technology Purpose
Frontend Next.js 14, React 18, TypeScript, Tailwind CSS Drawing canvas, story UI, gamification
Backend FastAPI, Python, Pydantic AI orchestration, content safety, API
AI (Text) Amazon Bedrock (Claude, Nova Pro/Lite) Vision analysis, story generation, moderation
AI (Images) Gemini 2.5 Flash, ClipDrop (Stability AI) Character and scene illustration
AI (Voice) Amazon Polly (Neural/Generative) Text-to-speech narration
Storage Amazon S3 All generated assets
Hosting AWS EC2 Production deployment

Why These Tools (Appropriate Use of Technology)

  • Vision AI reads the child's drawing, so the story starts from their idea.
  • Content moderation runs before generation, so unsafe input never reaches the story.
  • Image generation keeps the character consistent across all 8 scenes.
  • Neural TTS lets pre-readers play independently. Narration is a core feature, not decoration.

✨ Features

For Children (ages 4-8)

  • 🎨 Drawing Canvas: Magic brushes (rainbow, sparkle, glow, neon), stickers, undo
  • 🤖 AI Character Generation: Every scribble becomes a real animated character
  • 📖 Interactive Quests: 8 scenes with questions, choices, and life lessons
  • 🔊 Read-Aloud Narration: AI reads the story so pre-readers can play independently
  • ⭐ Stars & Rewards: Earn coins for correct answers
  • 🏆 Achievements: 10 unlockable badges ("First Masterpiece", "World Traveler", "Perfect Score")
  • 🔥 Daily Streaks: Encourages regular creative play
  • 🗺️ Adventure Map: Visual progress across 4 story worlds
  • 📚 Bookshelf: History of all completed stories
  • 🎵 Genre Music: Background tracks change per story world

For Parents

  • 🔒 PIN-Protected Dashboard: See progress without child access
  • 📊 Progress Tracking: Quests completed, lessons learned, time spent
  • 🛡️ Content Safety: AI blocks violence, weapons, and inappropriate content
  • 👫 Collaborative Mode: Two kids play through a shared story

♿ Usability and Accessibility

  • Built for pre-readers: large touch targets, drawing-first input, and full audio narration
  • Child-friendly error messages instead of technical ones
  • Parent dashboard is PIN-protected, so kids can't wander into settings
  • Music and narration are balanced with audio ducking so the voice is always clear

🎞️ Quest Preview

Quest in Progress Interactive 8-scene quest with AI-generated illustrations


🔨 What We Built During EvoHacks 2

  • [FILL IN: everything built during the hackathon period]
  • [FILL IN: any pre-existing components or libraries used, e.g. Next.js, FastAPI, AWS SDKs, third-party AI APIs]

🚀 Getting Started (Local Development)

Prerequisites

  • Node.js 18+
  • Python 3.11+
  • AWS credentials (Bedrock, S3, Polly access)

Frontend

cd frontend
npm install
npm run dev

Backend

cd agents_service
pip install -r requirements.txt
cp .env.example .env  # Add your API keys
uvicorn main:app --reload --port 8080

Environment Variables

See agents_service/.env.example for all required configuration:

  • AWS_REGION: AWS region for Bedrock/S3/Polly
  • S3_BUCKET_NAME: S3 bucket for asset storage
  • GEMINI_API_KEY: Google Gemini for image generation
  • CLIPDROP_API_KEY: ClipDrop/Stability AI for character images
  • OPENROUTER_API_KEY: Fallback LLM provider

🌐 Production Deployment

Docker (Backend)

cd agents_service
docker build -t fablecraft-backend .
docker run -d -p 8080:8080 --env-file .env --name backend fablecraft-backend

Next.js Standalone (Frontend)

cd frontend
NEXT_PUBLIC_API_URL=http://your-backend:8080 npm run build
cp -r public .next/standalone/public
cp -r .next/static .next/standalone/.next/static
PORT=3000 node .next/standalone/server.js

🧰 Tech Stack

Frontend:    Next.js 14 • React 18 • TypeScript • Tailwind CSS
Backend:     FastAPI • Python • Pydantic
AI (Text):   Amazon Bedrock (Claude, Nova Pro/Lite)
AI (Images): Gemini 2.5 Flash • ClipDrop (Stability AI)
AI (Voice):  Amazon Polly (Neural/Generative)
Storage:     Amazon S3
Hosting:     AWS EC2

🔮 What's Next

  • 🎨 Character customization with AI suggestions
  • 📄 Story export as printable PDF
  • 🎬 Animated scenes via video AI
  • 📊 Difficulty levels (Easy/Medium/Advanced)
  • 🎃 Seasonal content (Halloween, holidays)

📁 Repository Structure

Folder / File Link
Backend (FastAPI, AI services) agents_service/
Frontend (Next.js app) frontend/
Screenshots and GIFs docs/
Infrastructure infrastructure/
Backend deploy script deploy-backend.sh
EC2 launch config launch-ec2.json
Full README README.md

📜 License

MIT


Built with ❤️ for EvoHacks 2

Built With

Share this project:

Updates

Submission history