polterware/kit

Manifest Module

Use generateManifest and mergeManifest to create and update web app manifests programmatically.

The manifest helpers live in @polterware/pwa/manifest and provide programmatic manifest generation and merging.

generateManifest

import { generateManifest, mergeManifest } from "@polterware/pwa/manifest";

const manifest = generateManifest({
  name: "Polterware",
  short_name: "Polter",
  description: "Headless PWA install flow",
  start_url: "/",
  icons: [
    {
      src: "/icons/icon-192x192.png",
      sizes: "192x192",
      type: "image/png",
      purpose: "any maskable",
    },
  ],
});

On this page