Skip to content
PluginStats

primus-webpack-plugin weekly downloads statistics

By kkemple · npm · Webpack plugins

Build client side primus script and add to build assets

View on npm Fresh · Oct 17, 2026

primus-webpack-plugin has 5 recorded weekly downloads on npm, a decrease of 88.4% over the past 30 days.

It ranks #2044 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +150%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
5
Official API · Oct 17, 2026
7-day growth
-87.5%
-35 weekly downloads
30-day growth
-88.4%
-38 weekly downloads
90-day growth
+150%
+3 weekly downloads
Rank
#2044
Among tracked npm listings

About primus-webpack-plugin

PrimusWebpackPlugin

Build client side Primus script and add to build assets 📦⚡

Introduction

Primus is a socket wrapper implementation that requires a built client library. The client library also needs to match the configuration of the server side implementation. Primus handles this by exposing primus.library() which returns the client library as a string.

This is problematic in applications that bundle and dynamically generate client assets. It is also problematic because unless you want to serve the client script directly from your websocket server (not a great approach IMO) you need to prebuild and package the client script anyway.

This plugin allows you to pass in your Primus options and then adds the client library to your Webpack build assets.

If HtmlWebpackPlugin is being used it will also add the asset to the output HTML :tada:

Usage

Install PrimusWebpackPlugin:

With Yarn:

In webpack.config.js:

Options:

Name | Description | Default

filename | Name of generated file | primus-client.js minify | Whether or not to minify the file | false primusOptions | Options for the Primus Server | {}

https://github.com/primus/primus#getting-started

Caveats

primus.library() generates a UMDish style file but it doesn't seem to work being bundled with Webpack, instead a global Primus constructor is added. If you want to require/import Primus you will need to shim it in your Webpack config.

Description from the npm listing.

  • webpack-plugin
  • webpack
  • primus
  • sockets

Where primus-webpack-plugin sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 103, #5 (overall #2045)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 12, #4 (overall #224)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

primus-webpack-plugin weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 17, 2026, +150% over 90 days.primus-webpack-pluginWeekly downloads on npm · Last 90 days5downloads / week+150% over 90 days01020304050607080Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
primus-webpack-plugin weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 17, 2026, +150% over 90 days.
PNG SVG

7/30/90-day growth

primus-webpack-plugin weekly downloads growth on npm: -87.5% over 7 days, -88.4% over 30 days, +150% over 90 days.primus-webpack-pluginWeekly downloads growth on npm5downloads / week now7-day growth-35 weekly downloads-87.5%30-day growth-38 weekly downloads-88.4%90-day growth+3 weekly downloads+150%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
primus-webpack-plugin weekly downloads growth on npm: -87.5% over 7 days, -88.4% over 30 days, +150% over 90 days.
PNG SVG

Ranking history

primus-webpack-plugin npm ranking history: currently #2044 (by weekly downloads).primus-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2044current rank#600#800#1000#1200#1400#1600#1800#2000#2200Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
primus-webpack-plugin npm ranking history: currently #2044 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for primus-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
50
5-3
80
8-1
90
9-33
42+2
40-1
410
410
41+1
40-2
42+32
10—

Similar npm Webpack plugins plugins

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/primus-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.