OneWorld is a comprehensive, local-first AI toolkit designed for media processing. It bridges a stunning, interactive WebGL frontend with a heavily optimized, GPU-accelerated Python backend. From vocal isolation to high-resolution image upscaling, OneWorld handles complex multi-model pipelines completely locally, ensuring zero cloud dependency and maximum privacy.
This project was developed as part of our Engineering Immersion Program (EIP) Academic Project.
The frontend of OneWorld is designed to provide a highly immersive, native-app-like experience in the browser:
- Interactive 3D Environments: Built with Three.js and React Three Fiber (R3F) to render beautiful, responsive 3D elements and backgrounds.
- Fluid Animations: Leveraging Framer Motion for buttery-smooth page transitions, micro-interactions, and complex UI states.
- Modern Stack: Developed with Next.js 14 (App Router) and TypeScript for optimal performance, SEO, and developer experience.
- Sleek UI/UX: Styled with Tailwind CSS focusing on glassmorphism, dynamic dark modes, and highly polished visual feedback.
- Vocal & Stem Separation: Extracts vocals, drums, bass, and other instruments using state-of-the-art ONNX inference (MDX-NET / Demucs).
- Transcription: Millisecond-accurate word-level timestamps across 99 languages using Faster-Whisper.
- Audio Enhancement: Neural denoising and super-resolution powered by Resemble-Enhance.
- GPU-Accelerated DSP: Pitch shifting, silence removal, and format conversion directly inside the browser queue utilizing native PyTorch CUDA tensors for ultra-fast performance.
- Background Removal: Instant, crisp subject isolation using
u2netarchitecture. - AI Upscaling: Crystal-clear image enhancement up to 4x resolution via Real-ESRGAN.
- Object Eraser: Seamless scaffolded object cleanup and local image filtering pipelines.
- GPU Image Processing: High-speed, hardware-accelerated image filtering and denoising (bypassing CPU bottlenecks).
- 100% Local Inference: No cloud APIs, no subscription fees, absolute data privacy.
- Hardware Optimized: Built on an asynchronous SQLite-backed job queue inside FastAPI, automatically leveraging CUDA and FP16/TF32 hardware acceleration. Highly tuned to prevent CPU thread-pool exhaustion.
- Framework: Next.js 14 (App Router)
- Styling: Tailwind CSS + Framer Motion
- Graphics: Three.js + React Three Fiber
- Language: TypeScript
- Framework: FastAPI (Python 3.10+)
- Machine Learning: PyTorch, ONNX Runtime (GPU), Transformers, librosa
- Processing Tools: FFmpeg, Pillow, rembg, OpenCV
- Concurrency: Asyncio + SQLite job queue
- Node.js: v18+ & pnpm: v8+
- Python: 3.10+
- FFmpeg: Must be installed and added to system PATH.
- CUDA/GPU (Optional but Highly Recommended): An NVIDIA GPU with 8GB+ VRAM for acceptable AI inference speeds.
cd frontend
pnpm install
# Start the Web UI
pnpm devVisit http://localhost:3000 to interact with the studio.
cd backend
python -m venv .venv
# Windows
.venv\Scripts\activate
# Mac/Linux
source .venv/bin/activate
pip install -r requirements.txt
# Start the AI Server
uvicorn main:app --host 0.0.0.0 --port 8000 --reloadOneWorld's architecture cleanly separates the client UI from the heavy AI processing, allowing for a hybrid deployment strategy.
The frontend is 100% statically renderable and can be hosted for free.
- Fork or push this repository to your GitHub account.
- Import the
frontenddirectory into Vercel. - Add the Environment Variable:
NEXT_PUBLIC_API_BASE_URL=https://your-backend-url.com
- Deploy!
Due to the heavy GPU requirements (8-16GB RAM, CUDA), hosting the backend on traditional cloud platforms is expensive. The most cost-effective method is running it on your own hardware and exposing it securely.
- Run the backend locally as shown in the Getting Started section.
- Install
cloudflared(Cloudflare Tunnel). - Expose your local port securely to the internet:
cloudflared tunnel --url http://localhost:8000
- Copy the generated
.trycloudflare.comURL and paste it into your VercelNEXT_PUBLIC_API_BASE_URLenvironment variable.
Project Lead & Core Developer:
- Ronak Prajapati (Full-Stack Architecture, AI Integration, Next.js Frontend, FastAPI Backend & GPU Optimizations)
Project Members:
- Dhruv Prajapati (UI Component Support & Minor Frontend Adjustments)
- Satvik Shrivastav (Testing, Documentation & Basic Structuring)
Developed as part of the Engineering Immersion Program (EIP).
This project is open-sourced under the MIT License.