Wake Lock API Tester - Online Prevent Screen Sleep
Request and release a screen wake lock to keep the device awake. See the lock state in real time. Perfect for recipes or presentations.
UD5 Toolkit
Test, monitor, and control the Screen Wake Lock API — keep your screen on while using this page.
navigator.wakeLock.request('screen')
to acquire a lock and returns a WakeLockSentinel object that can be released when no longer needed.
navigator.wakeLock will be undefined.
Here's a basic implementation pattern:
let wakeLock = null;
async function requestWakeLock() {
try {
wakeLock = await navigator.wakeLock.request('screen');
wakeLock.addEventListener('release', () => {
console.log('Wake lock released');
});
} catch (err) {
console.error('Failed:', err);
}
}
// Re-acquire on visibility change
document.addEventListener('visibilitychange', async () => {
if (document.visibilityState === 'visible' && !wakeLock) {
await requestWakeLock();
}
});
request() — has release() method and released readonly property.document.visibilityState and visibilitychange event to detect when the page is hidden/shown.navigator.permissions.query({name: 'screen-wake-lock'}) to check permission state where supported.Request and release a screen wake lock to keep the device awake. See the lock state in real time. Perfect for recipes or presentations.
Press any key and see it light up on a standard QWERTY layout. Check functionality or demonstrate shortcuts.
Set a 20, 30, or 45‑minute countdown to simulate a technical interview. Hidden/unhidden. Boost your prep.
Evaluate password strength through a short interactive story where each character set adds lines to a narrative. Educational fun.
Simple interactive eye dominance test: hold up a virtual dot and see which eye stays aligned. Educational.
Play pure tones at various frequencies to estimate your hearing range. Simple and educational.
Select your bin type and get a custom instruction on securing it with bungees, straps, or locks.
Create secure passwords that look like gibberish words but are easy to pronounce and remember. Mix of syllables. Local generation.
Touch your screen and see the pressure and radius reported. Visualize force. Mobile developer tool.
Generate a bcrypt hash from a password with configurable salt rounds. Verify a password against a hash. Entirely client‑side.
Tap any key to measure beats per minute. Displays average BPM and beat interval in milliseconds. Essential for DJs and music production. No extra permissions.
Measure your visual and auditory reaction speed. Average and best times shown. No data collected. Pure Javascript timing.
Create a random long password that alternates consonants and vowels to mimic a pronounceable word. XKCD meets CVCV. Local.
Compare your password against a built‑in list of the 10,000 most common passwords. Instant warning if it appears.
A sound-enabled spinning wheel with your custom options. Exciting animation and result reveal. Local only.
Tap any key to the beat of a song and the tool calculates the BPM. Also shows average and millisecond delay for loops.
Write upside down text using Unicode flipped characters. Copy and paste to surprise friends. Completely frontend and instant.
Enter a word and get a list of perfect and near rhymes. Categorized by syllable count. Useful for songwriting and poems. Static data, local.
Load a video and visually check if audio aligns with lips. Use frame‑by‑frame stepping. Debug playback issues.
Unified input demo: see pressure, tilt, and type from any pointer. Compare pointerType values. Essential for drawing apps.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Register a service worker, subscribe to push, and send a test notification using a VAPID key pair. Step‑by‑step demo.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
Trigger different vibration patterns on mobile devices. Test if your phone supports haptic feedback. Simple demo.
Override your browser's geolocation to any coordinates and test how your app responds. For development and privacy testing.
Test the new HTML popover attribute for creating accessible tooltips, menus, and dialogs without JavaScript. Copy code snippets.
See the View Transitions API in action. Cross‑fade and morph between two states. Copy the JavaScript starter code.
Experiment with the Async Clipboard API: read/write text and images from the clipboard. Verify permissions and see demo code.
Test the Web Share API by sharing text, links, and files directly from the browser. Check compatibility and see example code.
Check if your browser and display support the wider DCI‑P3 color space. See the difference with a simple test pattern.