Skip to Main Content

GemmaQuest: Serverless WebGPU RPG

Google I/O Hackathon

GemmaQuest is a browser RPG where Google's Gemma 4 E2B (~2.3B params, Q4) runs 100% on-device via WebGPU — no server, no API, no internet. NPC dialogue and biome lore stream live from the model while the player's network is offline. The whole project ships as a single HTML file (gemmaquest.html) that contains the spec, an in-page test runner, and the playable game. ▎ ▎ The problem it solves: most "AI games" are thin wrappers over a hosted API, which means latency, cost, privacy leakage, and zero offline play. GemmaQuest proves a frontier-class open model can author a game world live, on the player's own GPU, with zero network — by toggling DevTools → Offline before loading the realm and watching the LOCAL · GPU badge stay green while NPCs keep talking. ▎ ▎ Built on transformers.js + ONNX Runtime Web (WebGPU EP) running onnx-community/gemma-4-E2B-it-ONNX. A single persistent Web Worker sits behind an InferenceEngine adapter interface with a serialized request queue, so biome-lore and NPC-chat generations never race on the GPU. A drop-in ApiEngine implements the same interface as a fallback insurance path.

Team

fourcolors

Placement

Participant

More from Google I/O Hackathon

Billie Gene is a rapid vaccine-design research acceleration platform built to reduce the early bottleneck in responding to emerging viral outbreaks such as…

Billie Gene project preview

Our technology has reached the point where society needs to stop putting human lives at risk and start leveraging the tools around us. Picture this: a…

Sky Guardian project preview

An RL environment to help train your managed agents in your voice.

us06web.zoom.us/…

1 in 4 Americans lives with a disability, yet most cities have no systematic way to audit pedestrian infrastructure for ADA compliance at scale. Manual…

Autonomous Infrastructure Auditor project preview

Gemini Lifeguard Rescue is an AI-powered water safety system that helps lifeguards detect and respond to emergencies faster. The demo focuses on beach rescue…

Gemini Lifeguard Rescue project preview

Autonomous Android Simulator Player Fleet & Telemetry Ingest It is a premium, real-time platform designed to run autonomous gameplay testing agents on a…

Autonomous Player Fleet project preview