Skip to content

VainerAriel/HackTheValley2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

123 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š StoryBites - AI-Powered Dyslexia-Friendly Stories

StoryBites Logo

πŸ† Hack The Valley X (HTV X) Best Begginer Hack Winner
Built in 36 hours by Ariel Vainer, Matthew Lee, and Isabella Phan

Live Demo React Tailwind CSS Vercel


🌟 What is StoryBites?

StoryBites is an innovative AI-powered platform that creates personalized, dyslexia-friendly stories for young readers. Built with cutting-edge technology, it combines Google Gemini AI for story generation with ElevenLabs for natural voice narration, creating engaging reading experiences that adapt to each child's unique needs.

🎯 The Problem We Solved

  • Reading barriers for children with dyslexia
  • Lack of personalized content that matches individual interests
  • Limited accessibility features in existing reading platforms
  • Generic stories that don't engage young readers

✨ Our Solution

  • AI-Generated Stories: Personalized narratives based on child's interests and age
  • Dyslexia-Friendly Design: OpenDyslexic font and optimized formatting
  • Interactive Audio: High-quality text-to-speech with word-level pronunciation
  • Vocabulary Building: Custom vocabulary integration with definitions
  • Accessibility First: Built with inclusive design principles

πŸš€ Key Features

🧠 AI-Powered Intelligence

  • Google Gemini AI for intelligent story generation
  • Personalized Content based on child's profile and interests
  • Age-Appropriate Language that adapts to reading level
  • Vocabulary Integration with custom word definitions

🎧 Audio Excellence

  • ElevenLabs AI Voices for natural, engaging narration
  • Sentence-by-Sentence Playback for better comprehension
  • Word-Level Pronunciation for difficult vocabulary
  • Audio Controls with play, pause, and replay functionality

β™Ώ Accessibility Features

  • OpenDyslexic Font for improved readability
  • High Contrast Design for better visibility
  • Interactive Elements with click-to-hear functionality
  • Responsive Design that works on all devices
  • Keyboard Navigation support

πŸ‘€ User Experience

  • Secure Authentication with Auth0
  • Personal Profiles with reading preferences
  • Story Library to save and manage stories
  • Progress Tracking and reading statistics

πŸ› οΈ Tech Stack

Frontend

  • React 19.2.0 - Modern React with hooks
  • Tailwind CSS 3.4.18 - Utility-first styling
  • React Router 6.8.0 - Client-side routing
  • Auth0 React SDK 2.5.0 - Authentication

Backend & AI

  • Vercel API Routes - Serverless backend
  • Google Gemini AI - Story generation
  • ElevenLabs API - Text-to-speech
  • Snowflake - Data warehouse
  • Auth0 - User authentication

Development

  • Create React App - Build tooling
  • ESLint - Code quality
  • PostCSS - CSS processing
  • Concurrently - Development workflow

πŸš€ Quick Start

Prerequisites

  • Node.js 16+
  • npm or yarn
  • Git

1. Clone the Repository

git clone https://github.com/VainerAriel/HackTheValley2025.git
cd HackTheValley2025/storybridge

2. Install Dependencies

npm install

3. Environment Setup

Create a .env.local file in the storybridge directory:

# πŸ” Auth0 Configuration
REACT_APP_AUTH0_DOMAIN=your-auth0-domain.auth0.com
REACT_APP_AUTH0_CLIENT_ID=your-auth0-client-id

# πŸ€– AI Services
REACT_APP_GEMINI_API_KEY=your-gemini-api-key
REACT_APP_ELEVENLABS_API_KEY=your-elevenlabs-api-key

# πŸ—„οΈ Database (Snowflake)
REACT_APP_SNOWFLAKE_ACCOUNT=your-snowflake-account
REACT_APP_SNOWFLAKE_USER=your-snowflake-username
REACT_APP_SNOWFLAKE_PASSWORD=your-snowflake-password
REACT_APP_SNOWFLAKE_WAREHOUSE=your-warehouse
REACT_APP_SNOWFLAKE_DATABASE=your-database
REACT_APP_SNOWFLAKE_SCHEMA=your-schema

# 🌐 API Configuration (Optional)
REACT_APP_API_URL=http://localhost:3001

4. Get API Keys

πŸ”‘ Auth0 Setup

  1. Go to Auth0 Dashboard
  2. Create a new application (Single Page Application)
  3. Copy your Domain and Client ID

πŸ€– Google Gemini API

  1. Visit Google AI Studio
  2. Create a new API key
  3. Copy the key to your .env.local

🎀 ElevenLabs API

  1. Sign up at ElevenLabs
  2. Go to your profile settings
  3. Copy your API key

πŸ—„οΈ Snowflake Setup

  1. Create a Snowflake account
  2. Set up a warehouse, database, and schema
  3. Create a user with appropriate permissions

5. Start Development

# Start the React app
npm start

# Or start with local backend proxy
npm run dev

6. Open Your Browser

Navigate to http://localhost:3000 and start creating stories! πŸŽ‰


πŸ“ Project Structure

storybridge/
β”œβ”€β”€ πŸ“ api/                    # Backend API routes
β”‚   β”œβ”€β”€ stories/              # Story endpoints
β”‚   β”œβ”€β”€ user/                 # User management
β”‚   └── _utils.js             # Shared utilities
β”œβ”€β”€ πŸ“ src/
β”‚   β”œβ”€β”€ πŸ“ components/        # React components
β”‚   β”‚   β”œβ”€β”€ features/         # Feature components
β”‚   β”‚   β”œβ”€β”€ layout/          # Layout components
β”‚   β”‚   └── ui/              # UI components
β”‚   β”œβ”€β”€ πŸ“ services/         # API integrations
β”‚   β”œβ”€β”€ πŸ“ hooks/            # Custom React hooks
β”‚   β”œβ”€β”€ πŸ“ assets/           # Static assets
β”‚   └── App.js               # Main application
β”œβ”€β”€ πŸ“ public/               # Public assets
β”œβ”€β”€ package.json             # Dependencies
└── vercel.json             # Deployment config

🎨 Key Components

πŸ“ StoryForm

Interactive story creation with:

  • Child profile setup
  • Interest selection
  • Vocabulary word addition
  • AI story generation

πŸ“– StoryReader

Advanced reading interface featuring:

  • Dyslexia-friendly typography
  • Interactive audio controls
  • Word-level pronunciation
  • Vocabulary definitions

🏠 Dashboard

Main user interface with:

  • Story library management
  • Quick story creation
  • User profile access
  • Reading progress

πŸš€ Deployment

Vercel Deployment (Recommended)

  1. Connect Repository to Vercel
  2. Configure Build Settings:
    • Root Directory: storybridge
    • Build Command: npm run build
    • Output Directory: build
  3. Add Environment Variables in Vercel dashboard
  4. Deploy automatically on every push

Environment Variables for Production

REACT_APP_AUTH0_DOMAIN=your-production-domain
REACT_APP_AUTH0_CLIENT_ID=your-production-client-id
REACT_APP_GEMINI_API_KEY=your-gemini-key
REACT_APP_ELEVENLABS_API_KEY=your-elevenlabs-key
SNOWFLAKE_ACCOUNT=your-account
SNOWFLAKE_USER=your-username
SNOWFLAKE_PASSWORD=your-password
SNOWFLAKE_WAREHOUSE=your-warehouse
SNOWFLAKE_DATABASE=your-database
SNOWFLAKE_SCHEMA=your-schema

πŸ† Hackathon Journey

⏰ 36 Hours of Innovation

  • Hour 0-6: Problem identification and solution design
  • Hour 6-18: Core development and AI integration
  • Hour 18-30: UI/UX refinement and accessibility features
  • Hour 30-36: Testing, deployment, and presentation prep

🎯 Key Achievements

  • βœ… Full-stack application built from scratch
  • βœ… AI integration with multiple services
  • βœ… Accessibility-first design for dyslexia support
  • βœ… Production deployment on Vercel
  • βœ… Real-time audio processing and playback

πŸ› οΈ Technical Challenges Overcome

  • AI API Integration: Seamless connection between Gemini and ElevenLabs
  • Audio Processing: Real-time text-to-speech with word-level control
  • Database Design: Efficient story and user data management
  • Authentication: Secure user management with Auth0
  • Responsive Design: Cross-platform compatibility

🀝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and test thoroughly
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

Development Guidelines

  • Follow React best practices
  • Maintain accessibility standards
  • Test on multiple devices
  • Document new features

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

πŸ† Hack The Valley X

  • Ariel Vainer
  • Matthew Lee
  • Isabella Phan

πŸ› οΈ Technologies & Services

🎨 Design Inspiration

  • Inclusive design principles
  • Accessibility-first approach
  • Child-centered user experience

πŸ“ž Support & Contact


🌟 StoryBites - Making reading accessible and enjoyable for every child! 🌟

Built with ❀️ in 36 hours for Hack The Valley X

GitHub Live Demo

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors