Google Launches LiteRT.js: High-Performance AI Inference Comes to the Web Browser
Key Takeaways
- ▸Native runtime performance now available for web developers through WebAssembly, replacing slower JavaScript-based kernels
- ▸Enhanced privacy and zero server costs by running models entirely on-device with ultra-low latency
- ▸Full hardware acceleration support across CPU, GPU, and future NPU implementations
Summary
Google has announced LiteRT.js, a new JavaScript binding that brings its LiteRT inference library directly to web browsers via WebAssembly. The library enables developers to run ML and AI models entirely on-device in the browser, eliminating the need for server-side processing. LiteRT.js represents a significant evolution from TensorFlow.js, offering native-level performance by leveraging Google's optimized runtime with hardware acceleration across CPUs (via XNNPACK), GPUs (via ML Drift), and upcoming NPU support (via WebNN). The initial release includes the npm package and real-world implementation demos, making it seamless for developers to deploy .tflite models to mobile and desktop web browsers.
- Direct path for developers with existing .tflite models to deploy to web platforms without rewriting
Editorial Opinion
LiteRT.js represents a watershed moment for browser-based AI, shifting computational control from cloud servers to user devices. By democratizing access to Google's production-grade inference engine, the company is positioning the web as a viable platform for real-time, privacy-preserving AI experiences—a capability that was practically unthinkable just a few years ago. This move could accelerate the adoption of edge AI and reshape expectations around where and how AI inference happens.


