Google has introduced LiteRT.js, a JavaScript binding for its LiteRT edge-AI runtime that lets web developers run machine-learning models directly inside the browser.

The release targets production web apps rather than demos alone. Google's developer post says LiteRT.js is built for JavaScript and TypeScript projects and can run tasks such as text generation, object detection, and audio processing on the client. The runtime is designed to use WebGPU for hardware acceleration, surface WebNN as browser support grows, and fall back to WebAssembly when needed.

That combination matters because browser-side inference has usually forced developers to choose between privacy, latency, cost, and reach. Running models locally can avoid sending user data to a server, reduce API bills, and make interactive features feel faster when the user's device has enough compute. The tradeoff is that developers must still account for browser support, model size, memory limits, and device variability.

LiteRT.js also ties Google's web strategy more directly to its broader AI Edge stack. The documentation positions LiteRT as a cross-platform runtime for deploying machine-learning and generative AI models across devices, while the new web path gives that stack a first-class JavaScript surface.

The practical takeaway is that Google wants browser AI to look less like a custom experiment and more like a normal deployment target. If LiteRT.js works reliably across modern browsers, web apps could move more inference away from cloud endpoints without abandoning familiar frontend tooling.