primus-webpack-plugin weekly downloads statistics
By kkemple · npm · Webpack plugins
Build client side primus script and add to build assets
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.
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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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)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.