@adsentinel/webpack weekly downloads statistics
By adsentinel · npm · Webpack plugins
AdSentinel's Webpack plugin: at build time it fetches a site's two serving tags from the control API and injects them into the emitted HTML, through HtmlWebpackPlugin when present and the emitted HTML asset otherwise, fail-open.
@adsentinel/webpack has 31 recorded weekly downloads on npm, a change of -31.1% over the past 7 days, ranking #2897 of 3,247 tracked listings.
About @adsentinel/webpack
@adsentinel/webpack
A Webpack plugin that bakes AdSentinel's two serving tags into your site's HTML
at build time. It fetches the site's edge bundle from the control API and
injects the ready-made tags into the <head> of every emitted HTML document.
- With HtmlWebpackPlugin in
the build, it injects through that plugin's
beforeEmithook. - Without it, it rewrites each emitted
*.htmlasset incompilation.hooks.processAssets.
The network call and the HTML injection live in @adsentinel/plugin-core; this
package is only the Webpack binding.
Install
npm install --save-dev @adsentinel/webpack
webpack is a peer dependency; html-webpack-plugin is an optional peer
dependency (the plugin uses it when present and falls back to the emitted HTML
asset when it is not).
Usage
// webpack.config.js
const { AdSentinelPlugin } = require('@adsentinel/webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
// ...
plugins: [
new HtmlWebpackPlugin(),
new AdSentinelPlugin({
// controlOrigin defaults to https://page-kit.io
apiId: process.env.ADSENTINEL_API_ID,
apiKey: process.env.ADSENTINEL_API_KEY,
siteHost: 'example.com',
}),
],
};
With native ES modules (webpack.config.mjs), import it the same way:
import { AdSentinelPlugin } from '@adsentinel/webpack';
Find the site's apiId / apiKey in the AdSentinel console under
Domain → Serving.
Options
| Option | Required | Default | Description |
|---|---|---|---|
apiId | yes | — | The site's plugin API id. |
apiKey | yes | — | The site's plugin API key. |
siteHost | yes | — | The host the tags are fetched for. |
controlOrigin | no | https://page-kit.io | The control / serving origin. |
fetchImpl | no | global fetch | A custom fetch (for tests or a proxied environment). |
Rebuild on credential or generation rotation
This is a build-time plugin: a build bakes the tags that were current when it ran, exactly as the Vite plugin does. If you rotate the site's plugin credentials or bump its serving generation in the console, the already-built HTML keeps the tags it was stamped with. Rebuild the site for the new configuration to take effect.
For HTML that must reflect a rotation without a rebuild, inject the tags at the edge (the Cloudflare publisher edge) or at request time instead.
Fail-open
AdSentinel never breaks your build. If the control API is unreachable, the credentials are wrong, or the site is inactive or has no tags, the plugin injects nothing and pushes a single compilation warning — the build still succeeds and the HTML ships without the tags.
Description from the npm listing.
- adsentinel
- adblock-recovery
- webpack
- webpack-plugin
- html-webpack-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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (128)Similar npm Webpack plugins plugins
All 20 @adsentinel/webpack alternativesData 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/@adsentinel/webpack. First seen Nov 27, 2026; last successful collection Dec 6, 2026. See the methodology.