Skip to content
PluginStats

vite-plugin-vue-layouts-next weekly downloads statistics

By loicduong · npm · Vite plugins

Router based layout plugin for Vite 8, Vue 3 and Vue Router 5.

View on npm Fresh · Oct 18, 2026

vite-plugin-vue-layouts-next has 14,699 recorded weekly downloads on npm, a decrease of 35.2% over the past 30 days, ranking #862 of 2,322 tracked listings.

Weekly downloads
14,699
Official API · Oct 18, 2026
7-day growth
-52.0%
-15.9K weekly downloads
30-day growth
-35.2%
-8K weekly downloads
90-day growth
-19.6%
-3.6K weekly downloads
Rank
#862
Among tracked npm listings

About vite-plugin-vue-layouts-next

vite-plugin-vue-layouts-next

npm version monthly downloads standard-readme compliant

Router based layout plugin for Vite 8, Vue 3 and Vue Router 5.

A fork of vite-plugin-vue-layouts with some improvements and fixes, supports Vite 8, Vue 3 and Vue Router 5.

Layouts are stored in the /src/layouts folder by default and are standard Vue components with a <router-view></router-view> in the template.

Pages without a layout specified use default.vue for their layout.

You can use route blocks to allow each page to determine its layout. The block below in a page will look for /src/layouts/users.vue for its layout.

<route lang="yaml">
meta:
  layout: users
</route>

📖 Read the documentation

Table of Contents

Install

# npm
npm install -D vite-plugin-vue-layouts-next

# yarn
yarn add -D vite-plugin-vue-layouts-next

# pnpm
pnpm add -D vite-plugin-vue-layouts-next

Usage

Add to your vite.config.ts:

import Vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import Layouts from 'vite-plugin-vue-layouts-next'
import VueRouter from 'vue-router/vite'

export default defineConfig({
  plugins: [VueRouter(), Vue(), Layouts()],
})

In main.ts, import Vue Router 5's generated file-based routes and setup the layouts.

import { setupLayouts } from 'virtual:generated-layouts'
import { createRouter } from 'vue-router'
import { routes } from 'vue-router/auto-routes'

const router = createRouter({
  // ...
  routes: setupLayouts(routes),
})

See Getting Started for client types and per-page layouts.

Documentation

Full documentation lives at vue-layouts.loicduong.dev:

  • Getting Started - install, usage and client types
  • Why - the rationale, and how this fork differs
  • How it works - what setupLayouts does to your routes
  • Migration - upgrading to v3, including layout name normalization
  • Config - plugin options, layout names and ClientSideLayout options
  • Common Patterns - transitions and passing data between layouts and pages
  • Dynamic Layouts - setPageLayout and useLayout
  • Typed Layouts - generated .d.ts that type-checks layout names
  • ClientSideLayout - the lighter, glob-import based variant
  • Examples - runnable SPA, SSG, client-side and nested-routes setups

The site also publishes llms.txt and llms-full.txt for LLM consumption.

The docs site is built with VitePress and lives in docs/. To work on it locally:

pnpm install
pnpm docs:dev

Maintainer

Loic Duong

Thanks

vite-plugin-vue-layouts

Contributing

PRs accepted. Open an issue or submit PRs for any improvements.

License

MIT © loicduong

Description from the npm listing.

  • typescript
  • vite-plugin
  • vite
  • vue-router
  • vue

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-vue-layouts-next weekly downloads on npm, last 90 days: 14,699 weekly downloads as of Oct 18, 2026, -19.6% over 90 days.vite-plugin-vue-layouts-nextWeekly downloads on npm · Last 90 days14,699downloads / week-19.6% over 90 days10K15K20K25K30K35KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-vue-layouts-next weekly downloads on npm, last 90 days: 14,699 weekly downloads as of Oct 18, 2026, -19.6% over 90 days.

7/30/90-day growth

vite-plugin-vue-layouts-next weekly downloads growth on npm: -52.0% over 7 days, -35.2% over 30 days, -19.6% over 90 days.vite-plugin-vue-layouts-nextWeekly downloads growth on npm14,699downloads / week now7-day growth-15,910 weekly downloads-52.0%30-day growth-7,987 weekly downloads-35.2%90-day growth-3,593 weekly downloads-19.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-vue-layouts-next weekly downloads growth on npm: -52.0% over 7 days, -35.2% over 30 days, -19.6% over 90 days.

Ranking history

vite-plugin-vue-layouts-next npm ranking history: currently #862 (by weekly downloads).vite-plugin-vue-layouts-nextnpm ranking · by weekly downloads · Last 90 days#862current rank#846#848#850#852#854#856#858#860#862#864Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-vue-layouts-next npm ranking history: currently #862 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 44, #3 (overall #863)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 8, #3 (overall #143)
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 vite-plugin-vue-layouts-next
Date (UTC)Weekly downloadsChange vs. previous
14,699+1.8K
12,902-2K
14,925-271
15,196-6.6K
21,748-7.4K
29,1140
29,114-1.5K
30,609+433
30,176+387
29,789+1.2K
28,586+436
28,150+886
27,264-5.8K
33,045—

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-vue-layouts-next. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.