Overview
Stage Web is the browser-based version of AIRI, powered by modern web technologies including WebGPU, WebAssembly, and Web Workers. It runs directly in your browser without any installation required.Try the live version at airi.moeru.ai
Browser Requirements
WebGPU Support
AIRI Web requires a browser with WebGPU support for optimal performance:- Chrome/Edge: Version 113+ (recommended)
- Safari: Version 18+ on macOS Sonoma or later
- Firefox: Experimental support (requires manual enable)
Additional Requirements
- Modern browser with ES2022 support
- WebAssembly support
- Web Workers support
- At least 4GB RAM available
- Stable internet connection for initial load
Progressive Web App (PWA)
Stage Web includes PWA capabilities, allowing you to:- Install AIRI as a standalone app
- Run offline after initial load
- Receive push notifications
- Access from your home screen or app launcher
Installing as PWA
- Visit airi.moeru.ai in a supported browser
- Click the install icon in the address bar (Chrome/Edge) or use “Add to Home Screen” (Safari)
- Follow the installation prompts
- Launch AIRI from your installed apps
Development Setup
Prerequisites
- Node.js 20+
- pnpm 10+
- Git
Installation
Clone the repository and install dependencies:Development Server
Start the development server for Stage Web:http://localhost:5173 with hot module replacement enabled.
Project Structure
Building for Production
Standard Build
Build the web application:apps/stage-web/dist/.
Build Configuration
Key build features configured invite.config.ts:
- PWA Support: Service worker with offline caching
- Code Splitting: Optimized chunks for faster loading
- Asset Optimization: WASM, fonts, and models are optimized
- Source Maps: Enabled for debugging
- Tree Shaking: Removes unused code
Deployment Options
Static Hosting
Deploy to any static hosting provider:HuggingFace Spaces
AIRI Web is configured for easy deployment to HuggingFace Spaces:CDN Configuration
For large assets (WASM, models, fonts), configure S3-compatible storage:Platform-Specific Features
WebGPU Acceleration
- Hardware-accelerated 3D rendering
- Efficient model inference
- Real-time avatar animation
- Post-processing effects
Web Audio API
- Real-time audio processing
- Microphone input for voice chat
- Audio worklets for low-latency processing
- Spatial audio support
In-Browser Database
- DuckDB WASM: Local SQL database
- LocalForage: IndexedDB wrapper
- Persistent storage for chat history and settings
- No server required for data storage
Web Workers
- Background processing for heavy tasks
- Audio transcription
- Model loading and inference
- Non-blocking UI updates
Limitations
- No native CUDA/Metal support (WebGPU only)
- Limited file system access
- No system tray integration
- No auto-updater
- Cannot access local Discord/Minecraft
- Reduced performance compared to native desktop
- Browser tab must remain open for background processing
Performance Considerations
Memory Management
- Large models are lazy-loaded
- Unused resources are automatically released
- Service worker caches frequently used assets
- Maximum file size for PWA cache: 64MB per file
Optimization Tips
- Close unused tabs: Free up GPU memory
- Use Chrome/Edge: Best WebGPU performance
- Enable hardware acceleration: Check browser settings
- Clear cache periodically: Refresh outdated cached assets
- Use wired connection: Reduce latency for real-time features
Performance Monitoring
Troubleshooting
WebGPU Not Available
- Update your browser to the latest version
- Enable hardware acceleration in browser settings
- Check GPU drivers are up to date
- Try a different browser (Chrome/Edge recommended)
Poor Performance
- Close other GPU-intensive tabs
- Reduce model quality in settings
- Disable post-processing effects
- Check browser DevTools for performance bottlenecks
Service Worker Issues
Technology Stack
- Framework: Vue 3 with Composition API
- Build Tool: Vite 7
- Graphics: WebGPU + Three.js
- State Management: Pinia
- Router: Vue Router 4
- Database: DuckDB WASM
- Audio: Web Audio API
- 3D Models: Live2D + VRM support
- Styling: UnoCSS
- PWA: Workbox + vite-plugin-pwa
Related Resources
Desktop Platform
Electron app with native performance
Mobile Platform
iOS and Android support via Capacitor
