Built-in Translation API Demo - Online On‑Device Translate
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
UD5 Toolkit
window.ai.
chrome://flags/#prompt-api-for-gemini-nano and set it to Enabled.chrome://flags/#optimization-guide-on-device-model and set it to Enabled.chrome://on-device-internals/ to monitor the model download status.window.ai API — the model will be ready for use.window.ai API, including:window.ai API is still evolving and subject to change.window.ai in your web app is straightforward:if ('ai' in window && window.ai.languageModel) { /* API available */ }const caps = await window.ai.languageModel.capabilities();// caps.available: 'readily' | 'after-download' | 'no'const session = await window.ai.languageModel.create({
systemPrompt: 'You are helpful.',
temperature: 0.7,
topK: 40,
maxTokens: 512
});const result = await session.prompt('Hello!');session.promptStreaming('Hello!')session.destroy();#prompt-api-for-gemini-nano and #optimization-guide-on-device-model, then restart. Check chrome://on-device-internals/ for model download progress. This playground auto-detects API availability.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Trigger different vibration patterns on mobile devices. Test if your phone supports haptic feedback. Simple demo.
Connect an audio source to an Analyzer Node and display frequency and time‑domain data. Learn Web Audio visualization.
Select HTTP method, set headers, and body. Send requests and see the full response. Lightweight Postman alternative.
Use the Magnetometer API to build a digital compass. See magnetic field strength and heading in real time.
Read the ambient atmospheric pressure in hPa using the Pressure Sensor API (if available). Real‑time graph.
Play a simple monophonic synthesizer with your keyboard. Choose waveform, attack, decay, and filter. For music fun.
Register a periodic background sync to fetch fresh data even when the tab is closed. Understand the API and limits.
Drag a battery, resistor, LED onto a grid and simulate current flow. Show Ohm's law in action.
Pick a method, URL, headers, and body, then send an HTTP request directly from your browser. Debug APIs easily.
Change the viewport meta tag and see how a page would render at different device widths. Understand responsive basics.
Simulate adaptive bitrate logic by switching between different quality video segments. See how ABR algorithms work.
Register a periodic background sync and see the status. Schedule content updates for your PWA. API demo.
Mix multiple ambient sounds (rain, fireplace, coffee shop) to create your perfect productive background.
Measure your browser's GPU compute power using a simple WebGPU matrix multiplication. See raw FLOPS and compare with peers. Fully client‑side.
Register a one‑off background sync and see it fire when connectivity returns. Debug service worker sync logic.
Play a collection of retro 8‑bit synth pads and leads using your keyboard. Record sequences and export as WAV. Pure Web Audio API.
Record how many eggs your hens lay each day. Visual chart shows weekly trends, helping you spot drops in production that may signal health issues.
Use your microphone to detect the dominant frequency of ambient sounds. Visualize the spectrum. Local Web Audio.
Apply lowpass, highpass, and reverb to an audio source. See frequency response. Create your own guitar pedal. All local.
Find your public IP address and view approximate geolocation, ISP, and browser header details. No personal data stored. Static and instant.
Pomodoro timer with built‑in lo‑fi music playlist (synthetic). Focus and rest cycles. No copyright music; generated tones.
Process audio faster than real‑time with OfflineAudioContext. Apply filters and export the result. Dev tool.
Record daily systolic/diastolic readings and pulse. See a trend chart. All data saved locally in your browser.
Play a selection of local lo‑fi tracks (embedded). Simple UI with play/pause. No copyright issues. Stay focused.
Zoom through the electromagnetic spectrum from radio waves to gamma rays. See wavelength, frequency, and applications. Static educational page.
Create experimental glitch noises by toggling virtual circuit bend points. No real electronics harmed. Fun noise toy.
Override your browser's geolocation to any coordinates and test how your app responds. For development and privacy testing.
Mix white noise, pink noise, rain, thunder, wind, and cafe sounds. Individual volume, save presets. Relax or focus. All client‑side.
Shift the pitch of any audio clip by semitones without affecting playback speed. Perfect for music transposition. Local Web Audio.