Content Index - Interactive Lab | IconVault

Real Content Index API lab: add, list and delete offline PWA content entries with honest support detection. Free, in-browser.

All tools

Content Index

Offline content entries for installed PWAs

5 of 5 free uses left

New entry

checking…

5 of 5 free entries left. Everything runs in your browser.

Indexed entries (0)

Detecting service worker and Content Index…

Operation log

add(), getAll() and delete() calls are logged here with their real results.

The real code

// Runs on a page controlled by your service worker (Chrome/Edge 84+, HTTPS)
const registration = await navigator.serviceWorker.ready;

await registration.index.add({
  id: "article-123",
  url: "/articles/123",
  title: "My offline article",
  description: "Available without a connection.",
  icons: [{ src: "/icon-192.png", sizes: "192x192", type: "image/png" }],
  category: "article",
});

const all = await registration.index.getAll(); // list entries
await registration.index.delete("article-123"); // remove one

// The browser surfaces indexed content in download UIs and,
// for installed PWAs, in OS-level content surfaces.

About this tool

IconVault's Content Index playground talks to the real API: once a service worker with `registration.index` is detected, you can add entries with titles, descriptions, icons and categories, list them with `getAll()`, and delete them, all logged with genuine results. Where the API is missing, the form disables itself honestly and shows the exact code to run where it exists. It is free and runs fully in your browser.

The Content Index lets installed PWAs register their offline content, articles, videos, audio, with the browser so it can surface it in download managers and OS-level surfaces. The lab explains the requirements (Chrome/Edge 84+, HTTPS, an active service worker), the entry schema including icons and categories, and why this is the missing piece between cached assets and discoverable offline content.

Frequently asked questions

Popular searches

content index apiregistration.indexcontent index pwacontentindexindex.addcontent index examplecontent index democontent index browser supportcontent index chromecontent index firefoxoffline content pwapwa offline articlesservice worker content indexbackground fetch content indexindex.getallindex.delete contentcontent index categorycontent index iconspwa installable contentoffline video pwaoffline podcast pwacontent index tutorialmdn content indexcontent index typescriptcontent index polyfillis content index supportedcaniuse content indexcontent index httpsservice worker ready indexpwa content discoverybrowser download ui pwacontent indexing webhow to use content index apicontent index step by stepcontent index entry schemacontentindexentrytest content index onlinecontent index playgroundcontent index labpwa offline managementworkbox content indexcontent index 2024web app offline libraryregistration.index.add examplecontent index pwa exampleoffline content apipwa content index tutorialindex.add iconscontentindexentry examplepwa offline articles api

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →