# Web app manifest

> The JSON file that makes a site installable: a minimal working manifest, how to link it, which members matter, and where each one is documented.

import { CardGrid, LinkCard } from '@astrojs/starlight/components';

The **web app manifest** is a JSON file that tells the browser how your site should
behave when it is installed as an app. It declares the app's identity (name, icons,
`id`), its installation boundary (`scope`), how it renders once launched (`display`),
and OS integration points such as shortcuts and `share_target`.

## A minimal manifest

```json
{
  "name": "Weather Reports",
  "short_name": "Weather",
  "start_url": "/",
  "display": "standalone",
  "icons": [
    { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
  ]
}
```

Link it from every page you want installable:

```html
<link rel="manifest" href="/manifest.webmanifest" />
```

The specification defines the manifest as an application manifest linked with
`rel="manifest"`; every member below is optional in the format itself. What a given
browser *requires* before it will offer installation is a separate, browser-specific
question. See [Install prompt](/reference/installation/install-prompt/) for those requirements.

## Which members to reach for first

- [`name` and `short_name`](/reference/manifest/name-short-name/) label the
  install prompt and the home-screen icon; [`id`](/reference/manifest/id/) pins the app's
  identity so a changed URL does not create a second install.
- [`start_url`](/reference/manifest/start-url/) is what launches;
  [`scope`](/reference/manifest/scope/) fences which URLs stay inside the app window.
- [`display`](/reference/manifest/display/) (with
  [`display_override`](/reference/manifest/display-override/)) chooses the window shape;
  [`icons`](/reference/manifest/icons/) and
  [`theme_color`/`background_color`](/reference/manifest/theme-background-color/) supply the
  home screen and splash.

## Where it commonly goes wrong

- A `start_url` outside `scope`: the app launches, then immediately leaves its own window.
- Serving the manifest with the wrong content type, or from a path the page cannot reach.
- Changing `start_url` without setting `id`, which some browsers treat as a different app.
- Assuming a member is honoured everywhere; support varies per member and per platform.

## Every member in this section

<CardGrid>
	<LinkCard title="scope manifest member" href="/reference/manifest/scope/" description="The scope member is the URL prefix that marks which pages belong to an installed web app; navigation outside it keeps the app window but brings browser UI back." />
	<LinkCard title="start_url manifest member" href="/reference/manifest/start-url/" description="start_url is the same-origin URL an installed PWA opens from the home screen, the place to tag launches for analytics, and one input to the app identity." />
	<LinkCard title="id manifest member" href="/reference/manifest/id/" description="id identifies an installed PWA independently of start_url, so the launch URL can change without the browser treating the manifest as a second app." />
	<LinkCard title="name and short_name manifest members" href="/reference/manifest/name-short-name/" description="name is the full label of an installed web app and short_name the label for tight spaces such as a home screen; Chromium requires one of them before it offers installation." />
	<LinkCard title="display manifest member" href="/reference/manifest/display/" description="The display member picks how much browser UI an installed web app keeps: fullscreen, standalone, minimal-ui, or browser, on a fixed fallback chain." />
	<LinkCard title="display_override manifest member" href="/reference/manifest/display-override/" description="display_override lists display modes in priority order ahead of the display fallback chain, letting a PWA request window-controls-overlay or tabbed safely." />
	<LinkCard title="icons manifest member" href="/reference/manifest/icons/" description="icons lists the images a browser and OS use for an installed PWA (src, sizes, type, purpose); it gates Chromium installability and Android maskable shapes." />
	<LinkCard title="theme_color and background_color manifest members" href="/reference/manifest/theme-background-color/" description="theme_color tints the title bar, status bar, and task switcher of an installed PWA; background_color fills the splash screen and window until the first paint." />
	<LinkCard title="screenshots manifest member" href="/reference/manifest/screenshots/" description="The screenshots member lists wide or narrow images that Chrome 94 on Android and Chrome 108 on desktop show in the richer install dialog." />
	<LinkCard title="shortcuts manifest member" href="/reference/manifest/shortcuts/" description="The shortcuts array adds quick-action entries to the long-press or right-click menu of an installed PWA icon, each opening an in-scope URL instead of start_url." />
	<LinkCard title="share_target manifest member" href="/reference/manifest/share-target/" description="The share_target member registers an installed PWA in the OS share sheet and delivers shared text, URLs, and files to an in-scope URL by GET or multipart POST." />
	<LinkCard title="file_handlers manifest member" href="/reference/manifest/file-handlers/" description="file_handlers registers an installed PWA as the OS opener for named MIME types and extensions; window.launchQueue then hands the opened file to the page." />
	<LinkCard title="handle_links manifest member" href="/reference/manifest/handle-links/" description="handle_links is a WICG proposal letting an installed PWA ask to open in-scope links in its own window. No engine ships it; Chrome 155 drops the member silently." />
	<LinkCard title="launch_handler manifest member" href="/reference/manifest/launch-handler/" description="The launch_handler member's client_mode decides whether launching an installed web app focuses an existing window, navigates it, or opens a new one; Chrome and Edge 110 implement it." />
	<LinkCard title="lang, dir, and *_localized manifest members" href="/reference/manifest/localization/" description="lang and dir set the default language and text direction of a manifest; the *_localized members carry per-language name, short_name, description, and icons, shipped in Chrome and Edge 148." />
	<LinkCard title="related_applications and prefer_related_applications" href="/reference/manifest/related-applications/" description="related_applications lists a PWA's native or web counterparts by platform, url, and id; prefer_related_applications makes Chrome on Android offer one instead." />
	<LinkCard title="edge_side_panel manifest member" href="/reference/manifest/edge-side-panel/" description="The Edge-only edge_side_panel member and its preferred_width property pin a PWA to the Microsoft Edge sidebar; Microsoft deprecated it in July 2026." />
	<LinkCard title="widgets manifest member" href="/reference/manifest/widgets/" description="The widgets array registers Adaptive Cards widgets for the Windows 11 Widgets Board, rendered and refreshed by the PWA's service worker on widgetinstall." />
	<LinkCard title="scope_extensions manifest member" href="/reference/manifest/scope-extensions/" description="scope_extensions lists other origins an installed web app treats as in scope, each confirmed by a web-app-origin-association file; Chrome 138 ships it." />
	<LinkCard title="tabbed display mode and tab_strip manifest member" href="/reference/manifest/tabbed-display/" description="The tabbed display_override value gives an installed PWA its own tab strip, and the tab_strip member configures its pinned home tab and new-tab button." />
	<LinkCard title="categories manifest member" href="/reference/manifest/categories/" description="The categories member is an array of lowercase strings naming the store sections a web app belongs in; browsers parse it but render nothing from it." />
	<LinkCard title="description manifest member" href="/reference/manifest/description/" description="The description member explains what a web app does; Chrome 88 and Edge 88 show it in the richer install dialog, Firefox and Safari parse it and do nothing." />
	<LinkCard title="orientation manifest member" href="/reference/manifest/orientation/" description="The orientation member asks for a default screen orientation for an installed web app window; Chrome on Android honours it, desktop browsers and Safari do not." />
	<LinkCard title="protocol_handlers manifest member" href="/reference/manifest/protocol-handlers/" description="protocol_handlers registers an installed web app in the OS as the handler for URL schemes such as mailto or web+note; Chrome 96 and Edge 96, desktop only." />
	<LinkCard title="How installed PWAs pick up manifest changes" href="/reference/manifest/manifest-updates/" description="Chrome re-checks an installed PWA's manifest about once a day, applies changes after all app windows close, and updates different fields on desktop and Android." />
</CardGrid>

## Where to go next

- [Install prompt](/reference/installation/install-prompt/): what browsers require before offering installation.
- [Service Worker](/reference/service-worker/): the other half of an installable, offline-capable app.

← Back to the [Reference](/reference/) overview.