Skip to content
PluginStats

@modyfi/vite-plugin-yaml weekly downloads statistics

By modyfi · npm · Vite plugins

Import YAML files as JS objects 🔌

View on npm Stale · Oct 17, 2026

@modyfi/vite-plugin-yaml has 84,656 recorded weekly downloads on npm, a decrease of 37.4% over the past 30 days, ranking #473 of 2,314 tracked listings.

Weekly downloads
84,656
Official API · Oct 18, 2026
7-day growth
-52.0%
-91.7K weekly downloads
30-day growth
-37.4%
-50.5K weekly downloads
90-day growth
-50.6%
-86.7K weekly downloads
Rank
#473
Among tracked npm listings

About @modyfi/vite-plugin-yaml

Pipeline

🧹 vite-plugin-yaml

Transforms a YAML file into a JS object.

🚀 Install

npm install -D @modyfi/vite-plugin-yaml
# or
# yarn add -D @modyfi/vite-plugin-yaml
# or
# pnpm i -D @modyfi/vite-plugin-yaml

🦄 Usage

Add ViteYAML to vite.config.js / vite.config.ts:

// vite.config.js / vite.config.ts
import ViteYaml from '@modyfi/vite-plugin-yaml';

export default {
  plugins: [
    ViteYaml(), // you may configure the plugin by passing in an object with the options listed below
  ],
};

Then you can simply import yaml files like you would any other file:

import YamlContent from './your.yaml';

console.log(YamlContent.example);

Do note that you may have to include the file type in your import.

🔦 TypeScript support

The recommended way to add type definitions for .yaml or .yml modules is via a tsconfig.json file.

// tsconfig.json
{
  "compilerOptions": {
    ...
    "types": [
      ...
      "@modyfi/vite-plugin-yaml/modules"
      ],
  }
}

You may also add type definitions without tsconfig:

// vite-env.d.ts
/// <reference types="@modyfi/vite-plugin-yaml/modules" />

🐛 Options

/**
 * A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on.
 *
 * By default all files are targeted.
 */
include?: FilterPattern;
/**
 * A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore.
 *
 * By default no files are ignored.
 */
exclude?: FilterPattern;
/**
 * Schema used to parse yaml files.
 *
 * @see https://github.com/nodeca/js-yaml/blob/49baadd52af887d2991e2c39a6639baa56d6c71b/README.md#load-string---options-
 */
schema?: Schema;
/**
 * A boolean to determine if JSON object should be serialized.
 *
 * @see https://www.npmjs.com/package/tosource for the motivation behind serialization of JSON.
 */
raw?: boolean;
/**
 * A function that will be called for error reporting.
 *
 * Defaults to `console.warn()`.
 */
onWarning?: (warning: YAMLException) => void;

Description from the npm listing.

  • vite
  • vite-plugin
  • yaml
  • yml
  • modyfi

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

@modyfi/vite-plugin-yaml weekly downloads on npm, last 90 days: 92,207 weekly downloads as of Oct 18, 2026, -44.6% over 90 days.@modyfi/vite-plugin-yamlWeekly downloads on npm · Last 90 days92,207downloads / week-44.6% over 90 days050K100K150K200KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@modyfi/vite-plugin-yaml weekly downloads on npm, last 90 days: 92,207 weekly downloads as of Oct 18, 2026, -44.6% over 90 days.

7/30/90-day growth

@modyfi/vite-plugin-yaml weekly downloads growth on npm: -47.8% over 7 days, -33.8% over 30 days, -44.6% over 90 days.@modyfi/vite-plugin-yamlWeekly downloads growth on npm92,207downloads / week now7-day growth-84,373 weekly downloads-47.8%30-day growth-47,120 weekly downloads-33.8%90-day growth-74,361 weekly downloads-44.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@modyfi/vite-plugin-yaml weekly downloads growth on npm: -47.8% over 7 days, -33.8% over 30 days, -44.6% over 90 days.

Ranking history

@modyfi/vite-plugin-yaml npm ranking history: currently #473 (by weekly downloads).@modyfi/vite-plugin-yamlnpm ranking · by weekly downloads · Last 90 days#473current rank#471#472#473#474#475Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@modyfi/vite-plugin-yaml npm ranking history: currently #473 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 24, #13 (overall #473)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins250 listings · 13 pages · page 4, #5 (overall #65)
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 (122)
Recent weekly downloads observations for @modyfi/vite-plugin-yaml
Date (UTC)Weekly downloadsChange vs. previous
92,207+7.6K
84,656-10.6K
95,235-68
95,303-39.5K
134,836-42.6K
177,4120
177,412+832
176,580+178
176,402+3.1K
173,342+7.2K
166,134+5.9K
160,214+9.2K
151,026-37.7K
188,707—

Similar npm Vite plugins plugins

All 20 @modyfi/vite-plugin-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/@modyfi/vite-plugin-yaml. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.