{"id":20073524,"url":"https://github.com/ragingwind/next-manifest","last_synced_at":"2025-10-16T14:17:56.408Z","repository":{"id":65411312,"uuid":"126022300","full_name":"ragingwind/next-manifest","owner":"ragingwind","description":"Next.js plugins for Web Manifest and PWA","archived":false,"fork":false,"pushed_at":"2020-03-31T05:54:09.000Z","size":58,"stargazers_count":76,"open_issues_count":5,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T07:56:31.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://next-manifest.ragingwind.now.sh/manifest.json","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ragingwind.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T13:32:06.000Z","updated_at":"2023-02-08T01:38:24.000Z","dependencies_parsed_at":"2023-01-22T06:55:16.506Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/next-manifest","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fnext-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fnext-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fnext-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fnext-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/next-manifest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579993,"owners_count":21771248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T14:46:38.744Z","updated_at":"2025-10-16T14:17:51.362Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-manifest\n\n\u003e Next.js plugin for [Web Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) and PWA\n\n# Updates\n\n- After 3.x, icon generating is deprecated because of `worker_threads` is not supported on now platform.\n\n# Installation\n\n```sh\nnpm install --save next-manifest\n```\n\nor\n\n```sh\nyarn add next-manifest\n```\n\n# Usage\n\n```js\n// next.config.js\nconst withManifest = require('next-manifest');\nconst defaults = {\n  // next-manifest options\n  output: './static/', // The folder where the manifest will be generated.\n  // manifest options\n  name: 'PWA',\n  icons: [\n    {\n      \"src\": \"/static/icons/icon-192x192.png\",\n      \"sizes\": \"192x192\",\n      \"type\": \"image/png\"\n    },\n    {\n      \"src\": \"/static/icons/icon-512x512.png\",\n      \"sizes\": \"512x512\",\n      \"type\": \"image/png\"\n    }\n  ]\n}\nmodule.exports = withManifest({\n  manifest: {\n    ...defaults\n  }\n});\n```\n\n## manifest.json\n\nAfter build is over without errors, `manifest.json` will be created at `output`\n\n## Deploying a manifest with more meta for PWA\n\nWeb manifest must be declared in your HTML pages using a link tag at the head of your document. Not only manifest link, also both of `meta`, `viewport` and `theme-color` will be needed for your PWA, like below:\n\n```html\n\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /\u003e\n\u003cmeta name=\"theme-color\" content=\"#000000\" /\u003e\n\u003clink rel=\"manifest\" href=\"/static/manifest/manifest.json\" /\u003e\n```\n\nfor your convenience, this plugin supports `Manifest` component. You can place `Manifest` component under `\u003cHead\u003e` component in `_document.js` with props.\n\n```js\n// pages/_document.js\nimport Manifest from 'next-manifest/manifest'\n\n\u003cHead\u003e\n  \u003cManifest /\u003e\n\u003c/Head\u003e\n```\n\nif you want to update the values in tags, pass the content and href value to the component\n\n```js\n// pages/_document.js\nimport Manifest from 'next-manifest/manifest'\n\n\u003cHead\u003e\n  \u003cManifest\n    // path for manifest will be deploying\n    href='/static/manifest/manifest.json'\n    // color for `theme-color`\n    themeColor='#F0F0F0'\n    // scale for `viewport` meta tag\n    initialScale='1'\n  /\u003e\n\u003c/Head\u003e\n```\n\nSee [the example project](https://github.com/ragingwind/next-manifest/blob/master/examples/hello-pwa/pages/_document.js) to understand.\n\n## License\n\nMIT © [Jimmy Moon](https://jimmymoon.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fnext-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fnext-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fnext-manifest/lists"}