Type something to search...
Completed

YourMitra - AI Personalized Storybooks

YourMitra - AI Personalized Storybooks

Technologies Used

Astro FastAPI Temporal.io OpenAI ElevenLabs RazorPay PostgreSQL

Tags

ai full-stack storytelling temporal e-commerce

Project Links

Overview

YourMitra is an AI-powered platform that generates personalized storybooks for children. As the sole architect and developer, I built the complete full-stack solution using Astro for the frontend and FastAPI for the backend, achieving lightning-fast load times and seamless user experience.

Key Features

AI Story Generation

  • Personalized content tailored to each child’s preferences
  • Multiple story themes and character options
  • Age-appropriate content generation

Media Generation Pipeline

  • Temporal.io orchestration for complex workflows
  • Parallel processing of story pages, illustrations, and narration
  • Reduced generation latency from 20 mins to 2 mins

E-commerce Integration

  • Complete digital product fulfillment workflow
  • RazorPay payment gateway integration
  • Order tracking and delivery management

Multi-Language Narration

  • ElevenLabs API integration for professional narration
  • Support for multiple languages and voice styles
  • High-quality audio output

Technical Architecture

Frontend (Astro)

- Static Site Generation for fast page loads
- React components for interactive features
- Optimized images and assets

Backend (FastAPI)

# Temporal workflow for parallel story generation
@workflow.defn
class StoryGenerationWorkflow:
    async def run(self, story_config: StoryConfig):
        # Parallel execution of independent tasks
        text, images, audio = await asyncio.gather(
            self.generate_text(story_config),
            self.generate_illustrations(story_config),
            self.generate_narration(story_config)
        )
        return self.assemble_story(text, images, audio)

Scalability

  • Capable of handling several hundred story generations per minute
  • Auto-scaling infrastructure on AWS
  • Efficient resource utilization with async processing

Key Achievements

MetricAchievement
Generation Time20 mins → 2 mins (10x improvement)
ThroughputHundreds per minute
Tech StackFull-stack delivered solo
E-commerceComplete payment integration

Technologies Used

Astro FastAPI Temporal.io OpenAI ElevenLabs RazorPay PostgreSQL AWS