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.
Set a recurring timer that reminds you to check your posture. Desktop notification with a gentle chime. Stay healthy.
Generate a sample sleep schedule for babies 0-24 months based on age-appropriate wake windows. Nap count and bedtime suggestions. Educational reference.
Set a nap timer with optional gentle white noise or lullabies (Web Audio). Reminder to put baby down. Fully local, no ads.
Set recurring audio/visual reminders to check and correct sitting posture. Adjustable interval and notification style. Helps reduce back pain from desk work.
Timer that reminds you to look at something 20 feet away for 20 seconds every 20 minutes. Customizable intervals and subtle sound/visual alerts.
Tap key for 15 seconds, calculates BPM. Quick resting heart rate check. Manual, no hardware.
Set a 20, 30, or 45‑minute countdown to simulate a technical interview. Hidden/unhidden. Boost your prep.
Wait for the box to turn green, then tap as fast as possible. Measure milliseconds. Compete with friends.
Enter completed chores/reading minutes to calculate earned screen time. Customizable rates. Local tracking.
Enter a URL and a user‑agent to see if it is allowed or blocked by the robots.txt file. Quick bot validation.
Hash passwords using the bcrypt algorithm with configurable cost factor. Also verify a password against a stored hash. All local.
Countdown timer with alerts for boiling pacifiers, bottles, or pump parts. Follow recommended times. Local audio alarm.
Visual and audio beat at 100‑120 compressions per minute. 30 compressions timer. For training and emergencies.
Set timer for incubation period with temperature guide. Track hours for optimal tanginess. Homemade yogurt.
Perform gestures on a canvas and see them detected in real time. Logs swipe direction, pinch scale, and rotate angle.
Play a sweep from 20Hz to 20kHz. Test your speakers and your hearing. Simple and effective. Web Audio API.
Play a frequency sweep from 20Hz to 20kHz. See where your hearing cuts off. Headphones needed.
Select an emoji that matches your mood and log it to a simple calendar. Self‑awareness tool. Local only.
Play pure tones at various frequencies to estimate your hearing range. Simple and educational.
Design a custom CSS toggle switch (checkbox). Adjust size, colors, icons. Copy the pure CSS code. No JavaScript.
Convert traditional cooking time to electric pressure cooker time. Reference chart.
Get a random UI challenge (e.g., 'Design a checkout flow for a plant shop') to practice your skills. All local.
Enter child's stats and compare to typical rear-facing, forward-facing, and booster seat requirements. Reference tool.
Evaluate password strength through a short interactive story where each character set adds lines to a narrative. Educational fun.
Fetch a site’s HSTS header and validate its syntax, max‑age, and subdomain flags. Ensure your site enforce HTTPS.
See a live VU meter of your microphone's input level. Test if your mic is working and adjust gain. Privacy‑friendly.
Paste text and see a sorted count of all emojis used. Find your most‑used emoji. Fun analytics. All local.
Convert English text to Braille (Grade 1 and simple Grade 2 contractions). Educational tool to understand Braille representation. Local only.
Get an endless supply of clean, family‑friendly knock‑knock jokes. Click for a new one. No ads, just laughs.