Skip to content
PluginStats

unplugin-yaml weekly downloads statistics

By luxass · npm · Vite plugins

Allow importing YAML files as JSON or Strings

View on npm Fresh · Dec 6, 2026

unplugin-yaml has 14,376 recorded weekly downloads on npm, an increase of 42.0% over the past 30 days, ranking #1152 of 3,247 tracked listings.

Weekly downloads
14,376
Official API · Dec 5, 2026
7-day growth
+35.8%
+3.8K weekly downloads
30-day growth
+42.0%
+4.3K weekly downloads
90-day growth
+39.7%
+4.1K weekly downloads
Rank
#1152
▲ 66 in 7 days

About unplugin-yaml

unplugin-yaml

npm version npm downloads

Allow import YAML file for Vite, Webpack, Rollup and esbuild. With TypeScript support. Powered by unplugin.

Install

npm i -D unplugin-yaml

Usage

[!TIP] You can view all examples here.

<details> <summary>Vite</summary><br/>
// vite.config.ts
import YAMLPlugin from "unplugin-yaml/vite";

export default defineConfig({
  plugins: [YAMLPlugin({/* options */})],
});

<br/></details>

<details> <summary>Rollup</summary><br/>
// rollup.config.js
import YAMLPlugin from "unplugin-yaml/rollup";

export default {
  plugins: [YAMLPlugin({/* options */})],
};

<br/></details>

<details> <summary>Webpack</summary><br/>
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [require("unplugin-yaml/webpack").default({/* options */})],
};

<br/></details>

<details> <summary>Nuxt</summary><br/>
// nuxt.config.js
export default defineNuxtConfig({
  modules: [["unplugin-yaml/nuxt", {/* options */}]],
});

<br/></details>

<details> <summary>Astro</summary><br/>
// astro.config.mjs
import { defineConfig } from "astro/config";
import YAMLPlugin from "unplugin-yaml/astro";

// https://astro.build/config
export default defineConfig({
  integrations: [YAMLPlugin({/* options */})],
});

<br/></details>

<details> <summary>esbuild</summary><br/>
// esbuild.config.js
import { build } from "esbuild";
import YAMLPlugin from "unplugin-yaml/esbuild";

build({
  /* ... */
  plugins: [YAMLPlugin({/* options */})],
});

<br/></details>

<details> <summary>Rspack</summary><br/>
// rspack.config.mjs
import rspack from "@rspack/core";
import YAMLPlugin from "unplugin-yaml/rspack";

/** @type {import('@rspack/core').Configuration} */
export default {
  plugins: [
    new rspack.HtmlRspackPlugin({
      template: "./index.html",
    }),
    YAMLPlugin(),
  ],
};

<br/></details>

<details> <summary>Rolldown (Experimental)</summary><br/>
// rolldown.config.js
import { defineConfig } from "rolldown";
import YAMLPlugin from "unplugin-yaml/rolldown";

export default defineConfig({
  input: "./index.js",
  plugins: [YAMLPlugin({/* options */})],
});

<br/></details>

Configuration

YAMLPlugin({
  include: [
    /\.yamlcustom$/, // .yamlcustom
  ],
  parserOptions: {
    // see yaml load options
  },
});
TypeScript

If you are using TypeScript, you need to add the following to your tsconfig.json file:

{
  "compilerOptions": {
    "types": ["unplugin-yaml/types"]
  }
}

📄 License

Published under MIT License.

Description from the npm listing.

  • astro
  • esbuild
  • nuxt
  • rolldown
  • rolldown-plugin
  • rollup
  • rollup-plugin
  • unplugin
  • vite
  • vite-plugin
  • webpack
  • yaml

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

unplugin-yaml weekly downloads on npm, last 90 days: 14,376 weekly downloads as of Dec 5, 2026, +39.7% over 90 days.unplugin-yamlWeekly downloads on npm · Last 90 days14,376downloads / week+39.7% over 90 days02K4K6K8K10K12K14K16KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
unplugin-yaml weekly downloads on npm, last 90 days: 14,376 weekly downloads as of Dec 5, 2026, +39.7% over 90 days.

7/30/90-day growth

unplugin-yaml weekly downloads growth on npm: +35.8% over 7 days, +42.0% over 30 days, +39.7% over 90 days.unplugin-yamlWeekly downloads growth on npm14,376downloads / week now7-day growth+3,791 weekly downloads+35.8%30-day growth+4,251 weekly downloads+42.0%90-day growth+4,088 weekly downloads+39.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
unplugin-yaml weekly downloads growth on npm: +35.8% over 7 days, +42.0% over 30 days, +39.7% over 90 days.

Ranking history

unplugin-yaml npm ranking history: currently #1152 (by weekly downloads).unplugin-yamlnpm ranking · by weekly downloads · Last 90 days#1152current rank#1050#1100#1150#1200#1250#1300Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
unplugin-yaml npm ranking history: currently #1152 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 58, #12 (overall #1,152)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 10, #20 (overall #200)
Vite plugins: every listing in weekly downloads order

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 (170)
Recent weekly downloads observations for unplugin-yaml
Date (UTC)Weekly downloadsChange vs. previous
14,376+687
13,689-669
14,358-752
15,110+293
14,817+3.1K
11,741-306
12,047+1.5K
10,585+58
10,527+267
10,260+546
9,714-102
9,816-220
10,036+177
9,859—

Similar npm Vite plugins plugins

All 20 unplugin-yaml alternatives

Data 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/unplugin-yaml. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.