Skip to content

16siddhanth/ProjectBrainberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BrainBerry - Personalized Therapeutic Learning Games

Next.js TypeScript Supabase Tailwind CSS

๐Ÿ“– Overview

BrainBerry is a GenAI-assisted therapeutic mini-game platform that empowers educators to create safe, personalized cognitive and developmental training experiences for children. The platform uses immutable "Game Molds" (evidence-informed templates) that AI fills with child-relevant content while preserving pedagogical integrity.

๐Ÿ”— SUBMISSION (Quick links)

๐ŸŽฏ Target Audience

  • Neurodiverse children (early childhood to pre-teen) needing engaging repetition & adaptive reinforcement
  • Educators/Therapists/Caregivers supervising therapeutic or learning sessions
  • Product teams exploring structured + AI hybrid content delivery for pediatric interventions

โœจ Key Features

  • ๐Ÿงฉ Immutable Game Molds - Evidence-based templates (Matching Cards, Sorting Challenges, etc.)
  • ๐Ÿค– AI Personalization - Child-specific themed content generation via Google Gemini
  • ๐ŸŽฎ Polymorphic Game Player - Dynamic routing to appropriate mini-game implementations
  • ๐Ÿ‘ฅ Role-Based Access - Educator/Child separation with Row Level Security
  • โšก Performance Optimized - Image preloading, caching, and smart rendering
  • ๐Ÿ›ก๏ธ COPPA Compliant - Built-in safety and privacy protections
  • ๐Ÿ“Š Analytics Ready - Longitudinal tracking and progress monitoring

๐Ÿ—๏ธ Tech Stack

Category Technology Purpose
Framework Next.js 15 (App Router) Full-stack React with Edge compatibility
Language TypeScript 5 Type-safe development
Backend Supabase PostgreSQL, Auth, RLS, Storage
Authentication Supabase Auth Email/password with middleware protection
Database PostgreSQL Relational data with advanced features
AI/ML Google Gemini API Content generation and personalization
Avatar/3D Ready Player Me 3D avatar creation and customization
UI/Styling Tailwind CSS, Radix UI Modern, accessible component system
Validation Zod Runtime type validation
Charts Recharts Data visualization
Package Manager pnpm Fast, efficient dependency management

๐Ÿ”„ Architecture and Flow

System Architecture

Educator โ†’ Game Mold โ†’ Child Interest Input โ†’ AI Content Generation โ†’ Personalized Game โ†’ Play Session โ†’ Analytics

๐Ÿ› ๏ธ Prerequisites

Before setting up BrainBerry, ensure you have:

Requirement Version Installation Purpose
Node.js 18+ (20 LTS recommended) Download JavaScript runtime
pnpm Latest npm install -g pnpm Fast package manager
Git Latest Download Version control
Tool Purpose Installation
Supabase CLI Local database management npm install -g supabase
VS Code Recommended editor Download

๐Ÿ“Š Data Sources & Open Source Components

๐Ÿ”— External APIs & Services

Service Purpose Cost Documentation
Supabase Backend-as-a-Service Free tier available docs.supabase.com
Google Gemini AI content generation Free tier: 60 req/min ai.google.dev
Ready Player Me 3D avatar creation Free tier available docs.readyplayer.me

๐Ÿ“š Open Source Libraries

Core Framework & Language
  • Next.js 15 - React framework with App Router
  • React 19 - UI library
  • TypeScript 5 - Type-safe JavaScript
UI & Styling
  • Tailwind CSS - Utility-first CSS framework
  • Radix UI - Accessible component primitives
  • Lucide React - Icon library
  • next-themes - Theme switching
  • class-variance-authority - Component variants
Data & Validation
  • Zod - Runtime type validation
  • React Hook Form - Form handling
  • @hookform/resolvers - Form validation integration
3D & Animation
  • Three.js - 3D graphics library
  • @react-three/fiber - React renderer for Three.js
  • @react-three/drei - Three.js helpers
  • face-api.js - Face detection and recognition
Audio & Media
  • wavefile - WAV file manipulation
  • wawa-lipsync - Lip sync animation
  • ffmpeg-static - Video/audio processing
Development & Testing
  • ESLint - Code linting
  • Playwright - End-to-end testing
  • Vitest - Unit testing
  • Testing Library - React component testing

๐ŸŽฎ Usage Guide

๐Ÿ‘ฅ User Roles

Role Access Capabilities
Educator Full platform access Create child profiles, manage games, view analytics, assign personalized content
Child Simplified interface Play assigned games, customize avatars, track progress

๐Ÿš€ Getting Started Workflow

  1. Setup Account

    # Navigate to your local instance
    open http://localhost:3000
    • Sign up as an educator
    • Complete profile setup
  2. Create Child Profiles

    • Add children to your classroom/therapy group
    • Set learning goals and preferences
    • Configure safety and privacy settings
  3. Explore Game Molds

    • Browse evidence-based game templates
    • Preview: Matching Cards, Sorting Challenges, Pattern Recognition
    • Understand pedagogical objectives
  4. Generate Personalized Content

    • Input child interests (dinosaurs, space, animals, etc.)
    • AI generates themed content using safe, validated prompts
    • Review and approve generated materials
  5. Launch Game Sessions

    • Assign games to specific children
    • Monitor real-time progress
    • Collect performance analytics

๐ŸŽฏ Current Features

Feature Status Description
โœ… Game Molds Live Matching Cards, Sorting Challenges, Drawing game
โœ… AI Personalization Live Gemini-powered content generation
โœ… Avatar System Live Ready Player Me integration
โœ… Progress Tracking Live Basic analytics and scoring
๐Ÿšง Advanced Analytics In Progress Detailed learning insights
๐Ÿ“‹ Workflow Management Planned Async content generation queue

๐Ÿ”ฎ Planned Features

  • Additional Game Types: Storytelling games, Advanced games
  • Advanced Personalization: Learning style adaptation, difficulty adjustment
  • Collaborative Features: Multiplayer games, peer learning
  • Accessibility: Screen reader support, motor accessibility options
  • Integration: LMS connectivity, progress reporting APIs

๐Ÿ“„ License

Internal/Restricted - Please add explicit license before open sourcing.

๐ŸŽ‰ Quick Start Commands Summary

# Essential setup
git clone https://github.com/basantiroomie/brainberry.git && cd brainberry
npm install -g pnpm && pnpm install
cp .env.local.example .env.local
# Edit .env.local with your API keys
pnpm dev

# Development commands
pnpm type-check    # Type checking
pnpm lint         # Code linting  
pnpm build        # Production build
pnpm analyze      # Bundle analysis

# Database commands
supabase start    # Local database
supabase studio   # Database UI
supabase db reset # Reset with seed data

Happy building & personalizing! ๐Ÿ“

Releases

No releases published

Packages

 
 
 

Contributors