Skip to content
PluginStats

vite-plugin-md weekly downloads statistics

By antfu (15 listings) · npm · Vite plugins

Markdown for Vite

View on npm Fresh · Dec 6, 2026

vite-plugin-md has 10,850 recorded weekly downloads on npm, an increase of 16.0% over the past 30 days, ranking #1228 of 3,247 tracked listings.

Weekly downloads
10,850
Official API · Dec 5, 2026
7-day growth
+10.4%
+1K weekly downloads
30-day growth
+16.0%
+1.5K weekly downloads
90-day growth
+18.7%
+1.7K weekly downloads
Rank
#1228
▲ 16 in 7 days

About vite-plugin-md

vite-plugin-md

Markdown for Vite

  • Use Markdown as Vue components
  • Use Vue components in Markdown
  • Extend functionality with Builder API

NPM version

From v0.13, we introduced a pipeline and builder engine (#54, #77) to provide full customizability. If you still prefer the simple Markdown-to-Vue transformation prior to v0.13, it has been moved to vite-plugin-vue-markdown.

Installing this Plugin

Installation can be done in a few simple steps. From the root of your repo do the following:

  1. NPM Install

    npm i vite-plugin-md -D # yarn add vite-plugin-md -D
    

    Please note that this plugin does have some peer dependencies; this is by design is intended to provide better control to end users but as NPM has fairly recently changed how they handle peer dependencies these will no longer be automatically be installed for you. You can either add auto-install-peers=true to your .npmrc file to go back to the old process or install peer deps when told about them.

  2. Vite Configuration

    Add the following to your vite.config.js / vite.config.ts file:

    import Vue from '@vitejs/plugin-vue'
    import Markdown from 'vite-plugin-md'
    
    export default {
      plugins: [
        Vue({
          include: [/\.vue$/, /\.md$/], // <--
        }),
        Markdown(),
      ],
    }
    

    This adds the VueJS along with this repo as "plugins" to Vite. With VueJS you'll also want to make sure to include both vue and md files.

  3. Typescript Config (optional)

    If you're using Typescript than you'll want take the additional step of adding a "shim file" to help Typescript to understand how to think of Vue SFC files and Markdown files structurally. For VueJS developers, you've probably already done this for your VueJS files but you can wrap this up with a single file -- shims.d.ts -- in the root of your repo:

    declare module '*.vue' {
      import type { ComponentOptions } from 'vue'
      const Component: ComponentOptions
      export default Component
    }
    
    declare module '*.md' {
      import type { ComponentOptions } from 'vue'
      const Component: ComponentOptions
      export default Component
    }
    
  4. Builder Installs (optional)

    Modern versions of this plugin provide a powerful pipeline system for extending the functionality of this plugin. You can use provided/recommended plugins but you can create these yourself. More on this below but for now be aware that the three builders which had been originally included as internal builders are now "external" to both demonstrate how you can do this and to keep this repo more focused on core pipelining.

    The three "built-in" builders were code(), link(), and meta(). Instead of importing them directly as symbols from this repo you can now just import them directly from their repos:

    • code - pnpm add -D @yankeeinlondon/code-builder

      npm install -D @yankeeinlondon/code-builder

      yarn add -D @yankeeinlondon/code-builder

    • meta - pnpm add --save-dev @yankeeinlondon/meta-builder

    • link - pnpm add --save-dev @yankeeinlondon/link-builder

    At this point the process is exactly the same as before, you simply add these builders into the configuration for this repo like so:

    import Markdown from 'vite-plugin-md'
    import code from '@yankeeinlondon/code-builder'
    
    export default {
      plugins: [
        Markdown({
          builders: [code()]
        })
      ]
    }
    

    Note: code, meta, and link can all be imported from md-powerpack -- npm install -D md-powerpack -- which is an aggregation repo for builder API's. Either approach is equally valid.

Using this Plugin

Refer to the example app in this repo for a working example but the really short answer is ... just write markdown files in the same places where you might have written VueJS SFC components and they will both be treated as Vue components in every way.

That means you can:

  1. Import Markdown as Vue components

    <template>
      <HelloWorld />
    </template>
    
    <script>
    import HelloWorld from './README.md'
    
    export default {
      components: {
        HelloWorld,
      },
    }
    </script>
    
  2. Use Vue Components inside your Markdown

    # My Page
    There I was, there I was ... in the jungle. Then I started hearing this ticking sound and I realized it was some sort of _counter_?
    
    <Counter :init='5'/>
    
    I looked a bit closer and realized I could **press** this counter and it would change! What is this magic?
    

    In this example we use a custom Vue component called Counter (actually found in the demo app) and intermix it with our Markdown content. In this example we leveraged the ability to automatically import components with the powerful Vite plugin unplugin-vue-components but if you prefer not to you can just manually import some components globally or you can also add the following block to your Markdown:

    <script setup>
    import { Counter } from './Counter.vue'
    </script>
    

    In most cases, however, use of the unplugin-vue-components just makes life simpler. :)

  3. Frontmatter

    Frontmatter is a meta-data standard used with most of the static content frameworks and allows you to put name/value pairs at the top of your Markdown files and then use this content within the page. For example:

    ---
    name: My Cool App
    ---
    
    # Hello World
    
    This is {{name}}
    ```…
    

Description from the npm listing.

  • vite
  • vite-plugin
  • markdown-it

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

vite-plugin-md weekly downloads on npm, last 90 days: 10,850 weekly downloads as of Dec 5, 2026, +18.7% over 90 days.vite-plugin-mdWeekly downloads on npm · Last 90 days10,850downloads / week+18.7% over 90 days05K10K15K20KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-md weekly downloads on npm, last 90 days: 10,850 weekly downloads as of Dec 5, 2026, +18.7% over 90 days.

7/30/90-day growth

vite-plugin-md weekly downloads growth on npm: +10.4% over 7 days, +16.0% over 30 days, +18.7% over 90 days.vite-plugin-mdWeekly downloads growth on npm10,850downloads / week now7-day growth+1,022 weekly downloads+10.4%30-day growth+1,496 weekly downloads+16.0%90-day growth+1,709 weekly downloads+18.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-md weekly downloads growth on npm: +10.4% over 7 days, +16.0% over 30 days, +18.7% over 90 days.

Ranking history

vite-plugin-md npm ranking history: currently #1228 (by weekly downloads).vite-plugin-mdnpm ranking · by weekly downloads · Last 90 days#1228current rank#400#600#800#1000#1200#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-md npm ranking history: currently #1228 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 62, #8 (overall #1,228)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 11, #15 (overall #215)
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 (591)
Recent weekly downloads observations for vite-plugin-md
Date (UTC)Weekly downloadsChange vs. previous
10,850-157
11,007-252
11,259-248
11,507+241
11,266+454
10,812+1.2K
9,657-171
9,828+350
9,478+314
9,164+431
8,733-451
9,184+345
8,839+615
8,224—

Similar npm Vite plugins plugins

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