Transform complex mathematical concepts into beautiful, engaging animations using simple text prompts. No coding or animation experience required.
PixelateAI is built with a modern, scalable architecture that leverages cutting-edge AI and cloud technologies:
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Next.js UI │────│ Supabase Auth │────│ FastAPI Server │
│ (Frontend) │ │ & Database │ │ (Backend) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │ │
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Video Editor │ │ Supabase Storage │ │ OpenAI GPT │
│ & Timeline │ │ (Video Bucket) │ │ (Code Generator)│
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │ │
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Manim Engine │ │ Pinecone DB │ │ Video Embed │
│ (Python Render) │ │ (Vector Storage) │ │ Processing │
└─────────────────┘ └──────────────────┘ └─────────────────┘
PixelateAI.Demo.Tutorial.-.HD.720p.mov
- Next.js 14 - React framework with App Router and TypeScript
- Tailwind CSS - Modern utility-first styling framework
- React Context - State management for authentication and app state
- Supabase Client - Real-time database and authentication integration
- Supabase Auth - Secure user authentication with email/password and social logins
- Supabase Database - PostgreSQL database for user data, projects, and metadata
- Row Level Security - Database-level security policies for data protection
- OpenAI GPT-4 - Advanced language model for generating optimized Manim Python code
- Custom Prompts - Specialized prompt engineering for mathematical animation generation
- Code Validation - Automated syntax checking and optimization of generated code
- FastAPI - High-performance Python web framework for API endpoints
- Python Manim Library - Mathematical animation engine for rendering videos
- Async Processing - Non-blocking video generation and processing
- RESTful APIs - Clean, documented API endpoints for frontend integration
- Supabase Storage Bucket - Scalable cloud storage for video files and thumbnails
- Video Embedding - Advanced video processing and metadata extraction
- CDN Integration - Fast global video delivery through Supabase CDN
- Format Optimization - Automatic video compression and format conversion
- Pinecone - Vector database for storing video hashes and embeddings
- Semantic Search - AI-powered search through animation library
- Duplicate Detection - Hash-based duplicate video detection and deduplication
- Content Indexing - Automatic indexing of video content for fast retrieval
- Timeline Editor - Drag-and-drop video editing interface
- Voice Recording - Built-in voice-over recording and audio processing
- Text Overlays - Dynamic text overlay system with positioning and timing
- Auto-Save - Automatic project saving every 5 seconds
- Video Splitting - Precise video cutting and trimming tools
- Clip Management - Advanced clip selection, deletion, and organization
User Input → Supabase Auth → JWT Token → Protected Routes → Dashboard
Text Prompt → OpenAI GPT-4 → Manim Code → FastAPI → Python Execution → Video File
Generated Video → Supabase Bucket → CDN → Video URL → Frontend Display
Video Content → Embedding Generation → Pinecone Storage → Semantic Search → Results
Video Upload → Timeline Addition → Audio Recording → Text Overlays → Export
PixelateAI follows this comprehensive workflow:
- User Authentication → Secure login via Supabase Auth
- Prompt Input → User describes mathematical concept
- AI Code Generation → OpenAI GPT-4 generates optimized Manim code
- Video Rendering → FastAPI executes Python Manim library
- Storage & CDN → Videos stored in Supabase bucket with CDN delivery
- Vector Indexing → Video hashes and embeddings stored in Pinecone
- Video Editor → Advanced editing with timeline, audio, and overlays
- Export & Share → Final video export and sharing capabilities
- 🤖 AI-Powered: Generate animations from natural language descriptions
- 🔐 Supabase Authentication: Secure user accounts and project management
- 🎓 Educational Focus: Perfect for teachers, students, and content creators
- 📱 Modern UI: Beautiful, responsive interface built with Next.js
- 🐍 Manim Integration: Professional-quality mathematical visualizations
- 💾 Code Export: Download generated Python code for local rendering
- 🎬 Video Editor: Advanced timeline editor with voice recording and text overlays
- 🔍 Smart Search: AI-powered video search and duplicate detection
- ☁️ Cloud Storage: Scalable video storage with global CDN delivery
- Next.js 14 with TypeScript and Tailwind CSS
- Supabase Client for authentication and real-time features
- FastAPI with Python for high-performance API
- OpenAI GPT-4 for intelligent code generation
- Manim for mathematical animation rendering
- Supabase for auth, database, and file storage
- Pinecone for vector search and video indexing
- CDN for fast global video delivery
- Node.js 18+
- Python 3.9+
- OpenAI API Key
- Supabase Account
- Pinecone Account
git clone https://github.com/yourusername/pixelateai.git
cd pixelateainpm installCreate .env.local:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
PYTHON_BACKEND_URL=http://localhost:5001/simple-generateStart frontend:
npm run devcd backend
pip3 install -r requirements-minimal.txtStart backend:
# Kill existing backend
lsof -ti:5001 | xargs kill -9
# Run backend
cd backend && source venv/bin/activate && python run.py- Frontend: http://localhost:3000
- Backend API: http://localhost:5001
- Visit the landing page
- Click "Sign Up" and create your account
- Verify your email through Supabase
- Navigate to "Create" page
- Enter your mathematical concept description
- Example: "Show the Pythagorean theorem with a right triangle and squares on each side"
- Click "Generate Animation"
The system generates professional Manim code that you can:
- Copy directly from the interface
- Download as a
.pyfile - Run locally with Manim installed
# Install Manim (if not already installed)
pip install manim
# Render your animation
manim animation.py Scene -qm --preview- Videos are saved in
media/videos/directory - Medium quality (720p) MP4 format
- Ready for editing and sharing
POST /auth/signup- Create new user accountPOST /auth/login- User loginPOST /auth/logout- User logout
POST /simple-generate- Generate Manim code from prompt{ "prompt": "Create a visualization of linear transformations", "quality": "medium" }
GET /health- Backend status check
Try these educational prompts with our comprehensive example library:
- Bubble Sort: "Explain bubble sort algorithm step by step"
- Merge Sort: "Show merge sort using divide and conquer approach"
- Linked List: "Explain traversal in linkedlist"
- Binary Trees: "Demonstrate level order traversal in binary tree"
- Dijkstra's Algorithm: "Explain Dijkstra's algorithm for shortest path"
- Graph Traversal: "Show breadth-first search visualization"
- Pythagorean Theorem: "Prove the Pythagorean theorem with visual demonstration"
- Geometric Proofs: "Show how a² + b² = c² using squares on triangle sides"
- Algebra: "Visualize solving a quadratic equation step by step"
- Geometry: "Show how the area of a circle is derived using π"
- Calculus: "Animate the concept of limits approaching infinity"
- Linear Algebra: "Demonstrate matrix multiplication visually"
- Statistics: "Show the central limit theorem with multiple distributions"
- Use specific algorithm names for exact matches (e.g., "Dijkstra's Algorithm")
- Include "step by step" for detailed explanations
- Mention "visualize" or "explain" for educational content
- Reference specific mathematical concepts for theorem proofs
pixelateai/
├── src/ # Next.js frontend
│ ├── app/ # App Router pages
│ ├── components/ # React components
│ ├── contexts/ # React contexts
│ └── lib/ # Utilities
├── backend/ # FastAPI backend
│ ├── app/ # Backend modules
│ ├── shot_promting/ # Example-based generation
│ │ └── examples/ # Algorithm examples
│ ├── requirements.txt # Python dependencies
│ └── run.py # Server startup
├── manim_test.py # Local testing script
└── sample_animation.py # Example output
- Manim Documentation
- Mathematical Animation Techniques
- OpenAI API Documentation
- Supabase Documentation
Made with ❤️ by techsas