@denkwerk/nuxt-favicon-generator weekly downloads statistics
By denkwerk (3 listings) · npm · Webpack plugins
Nuxt module that generates favicons, touch icons and a web app manifest from an SVG or a Figma node, and adds the head tags
@denkwerk/nuxt-favicon-generator has 29 recorded weekly downloads on npm, a change of +31.8% over the past 7 days.
About @denkwerk/nuxt-favicon-generator
A Nuxt module that generates favicons and an Apple touch icon from one SVG, a raster image or a Figma component,
serves the files, and adds the matching <link> and <meta> tags to every page. Additionally, it can add a web app
manifest, a theme color and Windows tiles. It is built on @denkwerk/favicon-generator.
- Nothing is written to
public/: the files are generated intonode_modules/.cache/favicon-generatorat build time and served by Nitro. - Output is cached until the options or the source image change. A Figma export is reused while the Figma file is unchanged, which one small API request checks.
- In
nuxt dev, editing the source image restarts Nuxt with regenerated icons.
Setup
npx nuxt module add @denkwerk/nuxt-favicon-generator
# or: pnpm add -D @denkwerk/nuxt-favicon-generator, then add it to `modules`
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@denkwerk/nuxt-favicon-generator'],
favicon: { input: './assets/favicon.svg' },
})
That generates and links favicon.ico, favicon.svg, favicon-96x96.png and apple-touch-icon.png. Additionally,
you can add a theme color, a web app manifest and more:
favicon: {
input: './assets/favicon.svg',
themeColor: '#02969c',
manifest: { name: 'My App', shortName: 'App', display: 'standalone' },
},
Remove any favicon.ico or other icons from public/, because they would conflict with the generated ones. The module warns about this.
Config file
Instead of (or in addition to) the favicon options, the module reads a favicon.config.ts, the same file the
CLI uses:
// favicon.config.ts
import { defineConfig } from '@denkwerk/favicon-generator'
export default defineConfig({
input: './assets/favicon.svg',
themeColor: '#02969c',
manifest: { name: 'My App' },
})
The lookup rules are the CLI's, starting in the Nuxt rootDir. The module uses the first of
favicon.config.{js,ts,mjs,mts,cjs,cts,json} it finds, then checks parent directories up to the nearest one with a
package.json or .git. Options in nuxt.config.ts take precedence over the file; groups are merged key by key, so
the file can set manifest.name and nuxt.config.ts manifest.shortName. The file's output,
overwrite and snippets are ignored because the module decides where files go, and its pathPrefix is relative to
app.baseURL. favicon.config.ts is type-checked with nuxt.config.ts, and in nuxt dev editing it restarts Nuxt.
Add @denkwerk/favicon-generator to your dependencies so the file can import defineConfig.
From Figma
favicon: {
input: 'https://www.figma.com/design/<file-key>/<file-name>?node-id=19938-42',
// The token comes from FIGMA_TOKEN, e.g. in .env, or a gitignored figmaTokenFile.
},
The link must point at a node (node-id). The Figma REST API needs a personal access token with the file_content:read
scope, which is read from the FIGMA_TOKEN env var or figmaTokenFile. Keep the token out of your config.
Options
Besides these module options, every @denkwerk/favicon-generator option except
output, overwrite and snippets is supported: themeColor, appleTouchIcon, manifest, windows, legacy and
the Figma token. Relative paths are resolved against the Nuxt rootDir.
| Option | Default | |
|---|---|---|
input | none | Source image or Figma link. Nothing is generated without it. |
pathPrefix | / | Path under app.baseURL to serve the files from. / keeps /favicon.ico where browsers look for it. |
mirrorPrefixes | [] | More paths that serve the same files, e.g. ['/'] with pathPrefix: '/public/' to link them under /public/ and keep them at the site root. The tags use pathPrefix. |
head | true | Add the <link>/<meta> tags to every page. |
cache | true | Reuse generated files while options and source are unchanged, and a Figma export while the Figma file is unchanged (one small API request per build checks it). false generates and exports on every build. |
cacheDir | node_modules/.cache/favicon-generator | Where the cache and the generated files are kept. |
configFile | looked up | Path to a specific config file, or false to ignore config files. |
enabled | true | Turn the module off, e.g. enabled: process.env.CI !== 'true'. |
app.baseURL is taken into account in all generated URLs and in manifest.json.
Examples
examples/nuxt: options innuxt.config.tsexamples/nuxt-config-file: options infavicon.config.ts
License
Description from the npm listing.
- favicon
- favicon-generator
- favicons
- favicon.ico
- apple-touch-icon
- web-app-manifest
- manifest
- pwa
- svg
- figma
- icons
- nuxt
- nuxt-module
- nuxt3
- nuxt4
- nitro
- vite
- vite-plugin
- rollup
- rollup-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm Webpack plugins plugins
All 20 @denkwerk/nuxt-favicon-generator alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@denkwerk/nuxt-favicon-generator. First seen Oct 16, 2026; last successful collection Oct 23, 2026. See the methodology.