Understanding PWA Manifests
A PWA manifest is a JSON file that contains metadata about your web application.
Key Purpose
- Make web apps installable
- Define app appearance and behavior
- Specify icons and theme colors
- Control display mode and orientation
Manifest Structure
Basic Structure
{
"name": "My App",
"short_name": "MyApp",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [...]
}Required Fields
name
Full name of the application. Used in installation prompts and app lists.
short_name
Short version of the name for limited-space contexts (typically 12 characters or less).
start_url
The URL that loads when the app is launched. Usually "/" or the app's main page.
display
Controls how the app is displayed: standalone, fullscreen, minimal-ui, or browser.
Display Modes
standalone
App looks like a native app with no browser UI. Recommended for most PWAs.
fullscreen
App takes up the entire screen with no browser UI. Most immersive but can be disorienting.
minimal-ui
Shows minimal browser controls (back button, URL bar). Good balance between web and native.
browser
Opens as a regular browser tab. Not recommended for PWAs.
Implementation
HTML Link Tag
<link rel="manifest" href="/manifest.json">File Location
Place manifest.json in your website's root directory.
HTTPS Requirement
PWAs require HTTPS. Manifest won't work on HTTP (except localhost).
The PWA Manifest Generator tool simplifies the process of creating manifest.json files. Whether you're building a new PWA or updating an existing one, having a properly configured manifest is essential for providing a native app-like experience. Start using the generator today to create your PWA manifest.