Please use our main repository for any issues/bugs/features suggestion.
This is a lightweight Azure function that analyzes a URL and finds its web manifest.
PWABuilder.com uses this service to find a manifest for a PWA. Additionally, if this service is unable to detect a manifest, PWABuilder falls back to a Puppeteer (headless Chrome)-based service to find the manifest.
Open the .sln file in Visual Studio. F5 to run.
Issue a GET to /api/FindManifest?url=https://somepwa.com
, where somepwa.com is your PWA's URL. Sample production call:
You may optionally supply a ?verbose=true query string in the URL to return additional error information.
The response will be a JSON object containing:
{
manifestUrl: string | null;
manifestContents: object | null;
error: string | null;
manifestContainsInvalidJson: boolean;
manifestScore: object | null;
}
- manifestUrl - the URL to the web manifest. This will be null if there was an error fetching the web app or its manifest.
- manifestContents - the manifest object. This will be null if there was an error fetching the web app or its manifest, or if the manifest contents was invalid JSON.
- error - the error that occurred when fetching the manifest. This will be null if the operation succeeded.
- manifestContainsInvalidJson - If there was an error (error is non-null), this tells you if the error was due to invalid JSON in the manifest.
- manifestScore - When the manifest is detected, this contains a score for each property in the manifest.
This Azure function is deployed to https://pwabuilder-manifest-finder.azurewebsites.net