Content Indexing API Test - Online Add to Device's Media Feed
Test the Content Indexing API to add a page to the device's content feed. See how your PWA integrates with the OS.
UD5 Toolkit
See how your content appears in the system launcher
// Inside service worker 'activate' or after page load
const registration = await navigator.serviceWorker.ready;
if ('index' in registration) {
await registration.index.add({
id: 'article-1',
title: 'My Article',
description: 'Short desc',
url: '/article-1',
category: 'article',
icons: [{ src: '/icon.png', sizes: '96x96' }]
});
}
Requires HTTPS, installed PWA, and supported browser.
No content indexed yet. Add your first item!
'index' in registration before using.ServiceWorkerRegistration.index. You must register a service worker and the page must be served over HTTPS.registration.index.delete(id) to remove a specific entry, or clear all with a loop. This demo simulates deletion locally; in a real app you must call the API.Test the Content Indexing API to add a page to the device's content feed. See how your PWA integrates with the OS.
Place multiple grid items into the same cells to create overlapping layouts. Learn the technique visually. Copy code.
Control image‑orientation: from-image vs none. See how the browser interprets EXIF rotation. Fix portrait photos.
Learn how to register your PWA to handle custom URL protocols. See the manifest entry and test.
Configure how your PWA launches: focus existing or create new. Test with the launch_handler manifest field.
Register a periodic background sync and see the status. Schedule content updates for your PWA. API demo.
Check if the browser has captured the beforeinstallprompt event. Understand why your PWA is (or isn't) installable.
Check if your site has a service worker registered and if it can load offline. Quick PWA readiness assessment.
Build a horizontal scroll‑snap container with configurable snap‑type and alignment. Perfect for image galleries.
Compare all CSS easing presets side by side on a bouncing ball. See which curve fits your UI animation.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
Process audio faster than real‑time with OfflineAudioContext. Apply filters and export the result. Dev tool.
Drop files onto a zone and see a preview with name, size, and type. Copy the JavaScript pattern for your site.
Demonstrate how to add custom headers and POST‑like functionality to EventSource using a polyfill. Code and example.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
See how overflow: visible, hidden, scroll, and auto behave with real content. Clone to test with your text.
Render the classic Stanford Bunny with a basic WebGPU pipeline. Rotate and zoom. Check if your browser supports WebGPU.
See how scroll‑padding and scroll‑margin affect the position of elements when using anchor links or scroll‑snap. Visual.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Check if your page triggers the beforeinstallprompt event. Simulate the install flow. Debug PWA installability.
Upload a 512x512 logo and get resized icons for every PWA requirement. Download a zip and the corresponding manifest.json snippet.
Apply a convolution filter (blur, sharpen) using a Web Worker. See the UI stay responsive while processing. Learn multithreading in the browser.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Register a one‑off background sync and see it fire when connectivity returns. Debug service worker sync logic.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Register a periodic background sync to fetch fresh data even when the tab is closed. Understand the API and limits.
Test the Fullscreen API: request fullscreen on a colored div, detect changes, and copy the JavaScript boilerplate.
See the current state of a Service Worker for your page: installing, waiting, active. Unregister or skip waiting. Developer utility.
See the View Transitions API in action. Cross‑fade and morph between two states. Copy the JavaScript starter code.
Find safe mixing ratios for the classic elephant toothpaste demonstration. Volume adjustments for different container sizes.