Skip to content
PluginStats

@afterpack/webpack weekly downloads statistics

By afterpack · npm · Webpack plugins

webpack plugin for AfterPack: obfuscate your production JavaScript during the webpack build

View on npm Fresh · Dec 6, 2026

@afterpack/webpack has 377 recorded weekly downloads on npm, an increase of 243% over the past 30 days, ranking #2328 of 3,247 tracked listings.

Weekly downloads
377
Official API · Dec 5, 2026
7-day growth
-11.5%
-49 weekly downloads
30-day growth
+243%
+267 weekly downloads
90-day growth
—
Insufficient history
Rank
#2328
▼ 127 in 7 days

About @afterpack/webpack

@afterpack/webpack

A webpack obfuscation plugin for webpack 5. It obfuscates your production JavaScript inside the webpack build, using the AfterPack JavaScript obfuscator.

Install

npm install --save-dev @afterpack/webpack

Usage

// webpack.config.mjs
import { AfterpackWebpackPlugin } from "@afterpack/webpack";

export default {
  // ...
  plugins: [new AfterpackWebpackPlugin()],
};

The plugin obfuscates each JavaScript asset your chunks produce at the last step before webpack writes to disk, so the readable bundle is never written. Hot-update chunks and assets other plugins copy in are left alone. If obfuscation fails, the build fails.

Subresource integrity plugins such as webpack-subresource-integrity are not supported: they hash each chunk before AfterPack rewrites it, so the recorded hashes would not match the files you ship.

Each build writes a protection receipt to .afterpack/receipts/, one per output directory (.afterpack/receipts/dist.json for dist). .afterpack/ sits next to your project's lockfile, afterpack.json or .git (failing those, its package.json), otherwise beside the build directory, so the receipt never ships with your build. Run npx afterpack@latest verify dist in your deploy step to check that what you ship is what was obfuscated. Builds into one directory share its receipt: each adds the files it wrote, and a file no longer on disk drops out.

Options

new AfterpackWebpackPlugin({ preset: "hard", seed: "git" });
OptionWhat it doesDefault
preset"minify", "light", "medium", "hard" or "extreme""light"
seeda number or string; "git" uses the current commita new random seed per build
identifiers.reservednames never to renamenone
paths.excludeglobs for files to leave untouchednone
sourceMap.enabledwrite source maps for the obfuscated output; off also drops the build's CSS mapsoff; on in development mode (build.mode or NODE_ENV=development) when webpack emits a map
protectionMap.enabledwrite the Protection Mapon when devtool emits source maps, outside CI
build.autorunfalse turns AfterPack offtrue

Dotted names are nested objects: sourceMap.enabled is { sourceMap: { enabled: true } }. Every other option is in the configuration reference.

/* @afterpack */ directives that raise protection for a region are a Pro feature. They need a devtool that emits source maps, such as "source-map". Without one, the plugin skips them and tells you.

When devtool emits source maps, the Protection Map is written to .afterpack/, outside webpack's output; that directory carries its own .gitignore and self-ignores. Without source maps, or in CI, it is off unless protectionMap.enabled is true. It contains your original source, so never deploy or commit it.

Options can also live in afterpack.json or in AFTERPACK_* environment variables. The options object wins over the environment, which wins over the file. An unknown or misspelled key fails the build and names the right spelling.

Pro

Without a key, AfterPack runs on your machine with the full pipeline at any preset. Set AFTERPACK_KEY in your environment and the same plugin builds in AfterPack's cloud instead, which adds per-region directives and two hardening transforms you can turn on: self-integrity, which detects edits to its own check table only, not edits elsewhere in your code, and comparison hardening. Keep the key out of your webpack config: the plugin rejects it there. See AfterPack Pro.

Not supported here

  • build.backup: the output goes back to webpack in memory, so there is no file to back up.
  • paths.include: the plugin works on webpack's assets and does not walk the output directory.

Links

License

Apache-2.0. The engine it runs, @afterpack/core, has its own license.

Feedback

Questions, suggestions and bug reports: afterpack.dev/contact. You can also file a bug on GitHub Issues.

Description from the npm listing.

  • obfuscator
  • javascript-obfuscator
  • obfuscation
  • code-protection
  • source-code-protection
  • javascript-security
  • anti-reverse-engineering
  • webpack
  • webpack-plugin
  • afterpack

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

@afterpack/webpack weekly downloads on npm, last 90 days: 377 weekly downloads as of Dec 5, 2026.@afterpack/webpackWeekly downloads on npm · Last 90 days377downloads / week02004006008001KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@afterpack/webpack weekly downloads on npm, last 90 days: 377 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@afterpack/webpack weekly downloads growth on npm: -11.5% over 7 days, +243% over 30 days, 90-day growth unavailable.@afterpack/webpackWeekly downloads growth on npm377downloads / week now7-day growth-49 weekly downloads-11.5%30-day growth+267 weekly downloads+243%90-day growth+377 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@afterpack/webpack weekly downloads growth on npm: -11.5% over 7 days, +243% over 30 days, 90-day growth unavailable.

Ranking history

@afterpack/webpack npm ranking history: currently #2328 (by weekly downloads).@afterpack/webpacknpm ranking · by weekly downloads · Last 90 days#2328current rank#1400#1600#1800#2000#2200#2400#2600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@afterpack/webpack npm ranking history: currently #2328 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 117, #8 (overall #2,328)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 6, #9 (overall #109)
Webpack 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 (170)
Recent weekly downloads observations for @afterpack/webpack
Date (UTC)Weekly downloadsChange vs. previous
377-199
576-105
681+43
638+9
629+133
496+16
480+54
426+249
177+114
63+5
58-2
60+21
39-13
52—

Similar npm Webpack plugins plugins

All 20 @afterpack/webpack 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/@afterpack/webpack. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.