Skip to content
PluginStats

vite-plugin-browser-sync weekly downloads statistics

By Applelo · npm · Vite plugins

Add BrowserSync in your Vite project

View on npm Fresh · Oct 27, 2026 · data Jul 1, 2026

vite-plugin-browser-sync has 2,589 recorded weekly downloads on npm.

Weekly downloads
2,589
Official API · Jul 1, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About vite-plugin-browser-sync

npm node-current Coverage Status

vite-plugin-browser-sync

Add BrowserSync to your Vite project.

This plugin supports Vite 7 and 8.

<p align="center"> <a href="https://github.com/Applelo/vite-plugin-browser-sync/blob/main/screenshot.jpg?raw=true"> <img src="https://raw.githubusercontent.com/Applelo/vite-plugin-browser-sync/main/screenshot.png?raw=true" alt=""/> </a> </p>

🚀 Features

  • ⚡ Fully integrated in your ViteJS environment
  • 👌 Zero config available for common use cases
  • ✨ All the BrowserSync features
  • 🙌 Support for BrowserSync proxy and snippet mode
  • 🔥 Freedom to manage BrowserSync options
  • 🎛️ Can run on dev, preview or build --watch

📦 Install

npm i -D vite-plugin-browser-sync

# yarn
yarn add -D vite-plugin-browser-sync

# pnpm
pnpm add -D vite-plugin-browser-sync

# bun
bun add -D vite-plugin-browser-sync

👨‍💻 Usage

By default, BrowserSync will start alongside your Vite Server in dev. It uses the proxy mode of BrowserSync based on your Vite server options: no need to pass any options to make it work!

// vite.config.js / vite.config.ts
import VitePluginBrowserSync from 'vite-plugin-browser-sync'

export default {
  plugins: [VitePluginBrowserSync()]
}

If you want to manage BrowserSync or override default behavior of this plugin, you can pass a bs object with your BrowserSync options in it:

// vite.config.js / vite.config.ts
import VitePluginBrowserSync from 'vite-plugin-browser-sync'

export default {
  plugins: [
    VitePluginBrowserSync({
      dev: {
        bs: {
          ui: {
            port: 8080
          },
          notify: false
        }
      }
    })
  ]
}

If you need the snippet mode of BrowserSync, the plugin supports it by injecting the script automatically.

// vite.config.js / vite.config.ts
import VitePluginBrowserSync from 'vite-plugin-browser-sync'

export default {
  plugins: [
    VitePluginBrowserSync({
      dev: {
        mode: 'snippet'
      }
    })
  ]
}

You can also enable the plugin on vite build --watch mode and vite preview mode.

[!IMPORTANT]

  • In buildWatch, if you use the default proxy mode you need to set the bs object.
  • snippet mode is available in buildWatch but it is not recommended to use since it updates your index.html file.
  • In preview, only the proxy mode is supported since it will not inject the snippet.
// vite.config.js / vite.config.ts
import VitePluginBrowserSync from 'vite-plugin-browser-sync'

export default {
  plugins: [
    VitePluginBrowserSync({
      dev: {
        enable: false,
      },
      preview: {
        enable: true,
      },
      buildWatch: {
        enable: true,
        bs: {
          proxy: 'http://localhost:3000',
        }
      }
    })
  ]
}

[!NOTE] For Astro users, this plugin does not work in preview mode because of overrides made by Astro.

vite-plugin-browser-sync options for BrowserSync

This plugin overrides default options from BrowserSync to avoid duplicating behaviors already handled by ViteJS. Furthermore, your ViteJS config is synced with BrowserSync.

If you want to change the overridden options you are free to do so via the bs object.

OptionWhydevbuildWatchpreview
logLevelSet to silent, use ViteJS printUrls to display BrowserSync info✔️✔️✔️
openApply ViteJS open option✔️✔️
codeSyncDisabled because it is already handled by ViteJS✔️
onlineSynced with the server host option✔️✔️
For proxy mode
OptionWhydevbuildWatchpreview
proxy.targetInject the right url from ViteJS✔️✔️
proxy.wsForce websocket proxy to make ViteJS HMR work✔️✔️
For snippet mode…

Description from the npm listing.

  • browsersync
  • browser-sync
  • livereload
  • serve
  • vite
  • vite-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

vite-plugin-browser-sync weekly downloads on npm, last 90 days: 2,589 weekly downloads as of Jul 1, 2026.vite-plugin-browser-syncWeekly downloads on npm · Last 90 days2,589downloads / weekNo observations recorded in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-browser-sync weekly downloads on npm, last 90 days: 2,589 weekly downloads as of Jul 1, 2026.

7/30/90-day growth

vite-plugin-browser-sync weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.vite-plugin-browser-syncWeekly downloads growth on npm2,589downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Jul 1, 2026pluginstats.com
vite-plugin-browser-sync weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

vite-plugin-browser-sync has no ranking history on npm yet.vite-plugin-browser-syncnpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-browser-sync has no ranking history on npm yet.

Listing placement

All npm2,577 listings · 129 pages · 1,290 shown · page 71, #8 (overall #1,408)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins272 listings · 14 pages · page 13, #17 (overall #257)
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 (1)
Recent weekly downloads observations for vite-plugin-browser-sync
Date (UTC)Weekly downloadsChange vs. previous
2,589—

Similar npm Vite plugins plugins

All 20 vite-plugin-browser-sync 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-browser-sync. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.