Qu'est-ce que le format de fichier WEBMANIFEST ?
Un fichier .webmanifest est le manifeste d'application Web, un document JSON qu'un navigateur lit pour installer et afficher une Progressive Web App (PWA). Il contient un objet JSON unique dont les membres décrivent l'application : name, short_name, icons, start_url, scope, display, background_color et theme_color, entre autres. Lorsque vous ajoutez une PWA à l'écran d'accueil d'un téléphone ou sur un bureau, ces valeurs déterminent l'icône de l'application, son titre et la manière dont la fenêtre s'ouvre.
Le format est un standard du W3C, rédigé pour la première fois en 2013 et pris en charge par les navigateurs depuis Chrome 45 en 2015. Une page y fait référence dans l'en-tête HTML :
<link rel="manifest" href="/app.webmanifest">Le type de média enregistré est application/manifest+json. L'extension .webmanifest est celle enregistrée par l'IANA, bien que de nombreux sites nomment encore le fichier manifest.json. Les deux fonctionnent tant que le serveur envoie un type de contenu JSON valide.
Sécurité et sûreté
RISQUE : LOWA .webmanifest file is plain-text JSON with no executable code, so opening it cannot run anything on your machine. The only practical risk is that a manifest can declare protocol_handlers or file_handlers that register a PWA to handle links or file types once the app is installed, which is a browser-mediated permission, not an action of opening the file. Editing an invalid manifest can break PWA installation but poses no security threat.
Détails du format
en bref- Firefox WebExtension manifest - Browser extensions use a manifest file, but it is named manifest.json with a .json extension, not .webmanifest.
- Java JAR/app manifests - Unrelated MANIFEST.MF metadata inside Java archives; different format and purpose.
Programmes qui ouvrent les fichiers WEBMANIFEST
Détails techniques
spécifications approfondies| Encoding | UTF-8 text |
| Byte order | Not applicable (text) |
| Container | JSON object with top-level keys called members |
| Compression | None (may be gzip/brotli compressed in transit by the web server) |
| Typical size | Under 5 KB |
| Structure | A single JSON object whose members describe a web application: name, short_name, description, icons (array of image objects with src, sizes, type), start_url, scope, display, orientation, background_color, theme_color, categories, screenshots, shortcuts, share_target, protocol_handlers, and file_handlers. |
| Integrity | None built in; integrity relies on HTTPS transport and same-origin/CORS fetch rules |
| Platforms | Windows, macOS, Linux, Android, iOS, ChromeOS |
| Notes | Referenced from a page's HTML head via <link rel="manifest" href="app.webmanifest">. The browser reads it to install a Progressive Web App, set the home-screen icon and name, and control the launch display mode. Servers should return it with the application/manifest+json media type, though browsers also accept application/json. When the manifest is on a different origin than the page scope it must be fetched with CORS. |
| Publié | 2013 (first W3C Working Draft, December 17, 2013) |
| Dernière version | W3C Working Draft (ongoing) |
| Standard ouvert | Oui · libre de droits |
| Spécification | www.w3.org |
Conversions WEBMANIFEST
Q&R de la communauté
posées par les utilisateursPas encore de questions - soyez le premier à poser une question sur les fichiers WEBMANIFEST.