π§ Gemma 4 multimodal AI running 100% client-side in your browser β private, free, no server. Hosted on Akash Network.
See the codeGemma 4 multimodal AI running 100% in your browser. Private, free, no server, no API.
BrowserGemma is a demo of Google's Gemma 4 multimodal AI (text + vision) running entirely client-side in your browser via WebGPU (with WASM fallback). No data ever leaves your device. No API keys. No server.
The entire frontend is hosted on the Akash Network β a decentralized cloud. This means:
Note: First load downloads the model (~hundreds of MB), then it's cached by your browser. Requires Chrome/Edge (latest) for WebGPU. Falls back to WASM on other browsers.
| Layer | Technology |
|---|---|
| AI Model | Gemma 4 E2B (ONNX, quantized) |
| Inference | transformers.js (WASM + WebGPU) |
| Frontend | Vite + React + TypeScript + Tailwind CSS v4 |
| Hosting | Akash Network (decentralized cloud) |
| Serving | Nginx (static files) |
Your Browser Akash Network
ββββββββββββββββββββββββ ββββββββββββββββ
β React UI β β Nginx β
β ββββββββββββββββββ β β (static β
β β transformers.jsβ βββββββββ HTML/JS/ β
β β ββββββββββββββ β β HTTP β WASM) β
β β β Gemma 4 β β β ββββββββββββββββ
β β β (WebGPU/ β β β
β β β WASM) β β β HuggingFace CDN
β β ββββββββββββββ β β ββββββββββββββββ
β ββββββββββββββββββ βββββββββ ONNX Model β
β β HTTPS β Weights β
β π Zero data leaves β ββββββββββββββββ
β your device β
ββββββββββββββββββββββββ
Key insight: The Akash server only serves static files. ALL AI inference runs in your browser. Model weights are downloaded directly from HuggingFace's CDN and cached locally.
# Clone
git clone https://github.com/toxmon/browsrgemma.git
cd browsrgemma
# Install
npm install
# Dev server
npm run dev
# Production build
npm run build
docker build -t toxmon/browsrgemma:0.1.0 .
deploy.yml contents# Install Akash CLI (if needed)
# See: https://akash.network/docs/getting-started/cli/
# Create deployment
akash tx deployment create deploy.yml --from $KEY --chain-id akashnet-2 --fees 5000uakt
# View bids
akash lease list
# Send manifest to provider
akash provider send-manifest deploy.yml <LEASE-ID>
# Build
docker build -t your-dockerhub-user/browsrgemma:0.1.0 .
# Push
docker push your-dockerhub-user/browsrgemma:0.1.0
# Update deploy.yml image field, then deploy
Akash hosting for a static site: ~$0.01-0.05/month in AKT. Essentially free.
BrowserGemma is a Progressive Web App. On mobile:
MIT
7 commits
TypeScript
90.1%
HTML
4.1%
JavaScript
2.7%
Dockerfile
1.6%
CSS
1.5%
π§ Gemma 4 multimodal AI running 100% client-side in your browser β private, free, no server. Hosted on Akash Network.
See the codeGemma 4 multimodal AI running 100% in your browser. Private, free, no server, no API.
BrowserGemma is a demo of Google's Gemma 4 multimodal AI (text + vision) running entirely client-side in your browser via WebGPU (with WASM fallback). No data ever leaves your device. No API keys. No server.
The entire frontend is hosted on the Akash Network β a decentralized cloud. This means:
Note: First load downloads the model (~hundreds of MB), then it's cached by your browser. Requires Chrome/Edge (latest) for WebGPU. Falls back to WASM on other browsers.
| Layer | Technology |
|---|---|
| AI Model | Gemma 4 E2B (ONNX, quantized) |
| Inference | transformers.js (WASM + WebGPU) |
| Frontend | Vite + React + TypeScript + Tailwind CSS v4 |
| Hosting | Akash Network (decentralized cloud) |
| Serving | Nginx (static files) |
Your Browser Akash Network
ββββββββββββββββββββββββ ββββββββββββββββ
β React UI β β Nginx β
β ββββββββββββββββββ β β (static β
β β transformers.jsβ βββββββββ HTML/JS/ β
β β ββββββββββββββ β β HTTP β WASM) β
β β β Gemma 4 β β β ββββββββββββββββ
β β β (WebGPU/ β β β
β β β WASM) β β β HuggingFace CDN
β β ββββββββββββββ β β ββββββββββββββββ
β ββββββββββββββββββ βββββββββ ONNX Model β
β β HTTPS β Weights β
β π Zero data leaves β ββββββββββββββββ
β your device β
ββββββββββββββββββββββββ
Key insight: The Akash server only serves static files. ALL AI inference runs in your browser. Model weights are downloaded directly from HuggingFace's CDN and cached locally.
# Clone
git clone https://github.com/toxmon/browsrgemma.git
cd browsrgemma
# Install
npm install
# Dev server
npm run dev
# Production build
npm run build
docker build -t toxmon/browsrgemma:0.1.0 .
deploy.yml contents# Install Akash CLI (if needed)
# See: https://akash.network/docs/getting-started/cli/
# Create deployment
akash tx deployment create deploy.yml --from $KEY --chain-id akashnet-2 --fees 5000uakt
# View bids
akash lease list
# Send manifest to provider
akash provider send-manifest deploy.yml <LEASE-ID>
# Build
docker build -t your-dockerhub-user/browsrgemma:0.1.0 .
# Push
docker push your-dockerhub-user/browsrgemma:0.1.0
# Update deploy.yml image field, then deploy
Akash hosting for a static site: ~$0.01-0.05/month in AKT. Essentially free.
BrowserGemma is a Progressive Web App. On mobile:
MIT
7 commits
TypeScript
90.1%
HTML
4.1%
JavaScript
2.7%
Dockerfile
1.6%
CSS
1.5%