Utvikling · verktøy

Lag et PWA-nettappmanifest

Skriv inn appdetaljene og last ned en manifest.json-fil som du kan legge til i nettprosjektet ditt.

Kjøres i nettleseren. Ingen opplasting.

Om verktøyet

Lag et PWA-nettappmanifest sem complicação.

Dette verktøyet lager bare manifestfilen. Du må legge den til på nettstedet og konfigurere gyldige appikoner og service worker separat; et manifest alene gjør ikke nettstedet installerbart.

Veiledning

Slik bruker du Lag et PWA-nettappmanifest

The PWA Manifest Generator builds a small manifest.json file from a form: app name, short name, description, start URL, display mode and two colors. You copy the text or download the file and add it to your own site. It makes only that file. It does not create icons, a service worker or the link tag, so by itself it does not make a site installable.

Slik gjør du

  1. Type the app name (up to 80 characters) and a short name (up to 30). Both are required. Add a description of up to 200 characters if you want one.
  2. Enter the start URL as a path on your own site, beginning with a single slash. The box starts at a single slash.
  3. Pick a display mode, then choose the theme color and background color with the color pickers. Both start at white.
  4. Press Build code, check the text, then use Copy code or Download manifest.json. Reset clears the form and removes the download link.

Eksempler

A garden notes app

Du skriver inn
Navn
Garden Notes
Kortnavn
Garden
Beskrivelse
Plan and track your garden
Start-URL
/
Visningsmodus
frittstående
Temafarge
#2e7d32
Bakgrunnsfarge
#ffffff
Du får
manifest.json
{ "name": "Garden Notes", "short_name": "Garden", "description": "Plan and track your garden", "start_url": "/", "display": "standalone", "theme_color": "#2e7d32", "background_color": "#ffffff" }

The tool writes the seven members as indented JSON. There is no icons list in the output, which an installable app needs, so you would add one by hand.

Kjørt med verktøyets egen kode.

A start URL with a query and no description

Du skriver inn
Navn
Recipe Box
Kortnavn
Recipes
Start-URL
/app/?src=pwa
Visningsmodus
minimal-ui
Du får
Start-URL
/app/?src=pwa
Visningsmodus
minimal-ui
Temafarge
#ffffff
Bakgrunnsfarge
#ffffff
Beskrivelse
left out

A path with a query string is allowed. An empty description is left out of the file instead of being written as an empty string. The colors fall back to the white that the pickers start with.

Kjørt med verktøyets egen kode.

A full web address is rejected

Du skriver inn
Navn
Recipe Box
Kortnavn
Recipes
Start-URL
https://example.com/
Du får
Melding
Enter the requested values and try again.

The start URL must be a same-site path starting with a slash, and it cannot start with two slashes or contain .. parts. A full address fails, the output box is cleared and the page shows a short retry message.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Draft the first version of a manifest for a small web app or a static site.
  • Learn which members a manifest holds by seeing the finished text for your own values.
  • Produce a clean file with valid colors and a safe start URL to paste into a project.
  • Test how a display mode such as standalone or minimal-ui is written before you edit the file further.

Begrensninger

  • Only seven members are written: name, short_name, description, start_url, display, theme_color and background_color. There is no icons list, id, scope or language setting.
  • According to MDN, Chromium-based browsers need more for installation, including a 192 pixel and a 512 pixel icon, and the app must be served from a secure address. The tool writes none of that.
  • The name can be 80 characters, the short name 30 and the description 200. The start URL must be a same-site path beginning with / that does not contain .. segments.
  • Nothing is checked against your actual site. Whether the start URL exists or the colors match your design is up to you.

Tips

  • Keep the short name brief, because it is the label used where space is tight.
  • Pick the two colors from your own site design so the installed app looks like the page it comes from.
  • After downloading, link the file from your pages with a manifest link tag and test the install prompt in the browser's developer tools.

Kilder

Vanlige spørsmål

Sobre Lag et PWA-nettappmanifest.

What is a web app manifest?

It is a JSON file that tells a browser how your web app should look and behave once installed, such as its name, start page, display mode and colors. Browsers read it from a link tag in your page.

Will this make my site installable?

Not by itself. Installation also needs suitable icons, a secure address, and the manifest linked from your pages, and some browsers have more requirements. The tool covers the manifest text only, so you add the rest in your own project.

What do the display modes mean?

Standalone opens the app in its own window without browser controls. Minimal interface keeps a small set of controls. Full screen hides almost everything, and Browser tab behaves like an ordinary page. Pick the one that fits the way your app is used.

Why is my start URL rejected?

It must be a path on your own site that starts with a single slash, such as / or /app/. A full web address, a path starting with two slashes, a control character or a .. segment is refused to keep the value safe.

Where do I put the file?

Save it as manifest.json (or manifest.webmanifest) in your site, often in the root folder. Then add a link tag with rel set to manifest and href pointing to it in the head of every page that should use it.

Can I add icons here?

No. The tool does not handle images. Add an icons array by hand with the file paths, sizes and types of the images you have made. Browsers that support installation often want a 192 pixel and a 512 pixel version.

Is my information sent to a server?

No. The file is built in your browser and nothing is uploaded. The download is created on your device from the text in the box, and the link is cleared when you press Reset.

Hvordan bruker du PWA-manifestgenerator?

Skriv inn appdetaljene og last ned en manifest.json-fil som du kan legge til i nettprosjektet ditt.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.