Skip to content
PluginStats

domagic-webpack-plugin weekly downloads statistics

By lijunfei · npm · Webpack plugins

A development-only Webpack plugin for DOM source mapping and AI-assisted style edits.

View on npm Fresh · Oct 18, 2026

domagic-webpack-plugin has 45 recorded weekly downloads on npm, a decrease of 45.8% over the past 30 days, ranking #1825 of 2,322 tracked listings.

Weekly downloads
45
Official API · Oct 18, 2026
7-day growth
+21.6%
+8 weekly downloads
30-day growth
-45.8%
-38 weekly downloads
90-day growth
-30.8%
-20 weekly downloads
Rank
#1825
Among tracked npm listings

About domagic-webpack-plugin

domagic-webpack-plugin

DOMagic 的 Webpack 适配插件。它复用 domagic-vite-plugin 中已经沉淀的核心能力:

  • React / Vue DOM 元数据注入
  • DOMagic runtime 浮层
  • AI 修改样式接口
  • Git 提交面板接口
  • 本地规则 runner 与 CLI runner

这个包只负责 Webpack 外壳适配,不修改 Vite 版本的插件逻辑。

安装

npm install -D domagic-webpack-plugin domagic-vite-plugin

需要配合 html-webpack-plugin 注入 runtime:

npm install -D html-webpack-plugin

使用

import HtmlWebpackPlugin from 'html-webpack-plugin'
import { DOMagicWebpackPlugin } from 'domagic-webpack-plugin'

export default {
  mode: 'development',
  plugins: [
    new HtmlWebpackPlugin({ template: './index.html' }),
    new DOMagicWebpackPlugin({
      pathMode: 'relative',
    }),
  ],
  devServer: {
    port: 3000,
  },
}

工作方式

  • 开发模式下自动插入一个 pre loader,处理 .jsx、.tsx、.vue 文件。
  • 通过 html-webpack-plugin 的 hooks 注入 DOMagic runtime。
  • 通过 devServer.setupMiddlewares 挂载 DOMagic 本地接口。
  • 生产模式 mode: 'production' 下默认不启用。

匿名指标上报(可选)

Webpack 适配复用 Vite 核心中间件。设置服务端环境变量 DOMAGIC_BUSINESS_REPORT_AK(可选配 DOMAGIC_BUSINESS_REPORT_BASE_URL、DOMAGIC_BUSINESS_REPORT_USER_EMAIL)即可开启匿名上报;未设置 AK 时自动禁用。当前 result_type 只上报 修改样式、修改业务代码 两个中文值,匿名 UUID 会放在额外文本字段里一起发送,不上传 prompt、源码、Token 或 API Key,上报失败不会阻断编辑。

选项

支持与 Vite 插件一致的基础配置:

new DOMagicWebpackPlugin({
  pathMode: 'relative',
  root: process.cwd(),
  agent: {
    provider: 'codex',
  },
})

也可以显式关闭:

new DOMagicWebpackPlugin({
  enabled: false,
})

Description from the npm listing.

  • webpack
  • webpack-plugin
  • dom
  • react
  • vue
  • ai

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

domagic-webpack-plugin weekly downloads on npm, last 90 days: 45 weekly downloads as of Oct 18, 2026, -30.8% over 90 days.domagic-webpack-pluginWeekly downloads on npm · Last 90 days45downloads / week-30.8% over 90 days05001K1.5K2K2.5K3KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
domagic-webpack-plugin weekly downloads on npm, last 90 days: 45 weekly downloads as of Oct 18, 2026, -30.8% over 90 days.

7/30/90-day growth

domagic-webpack-plugin weekly downloads growth on npm: +21.6% over 7 days, -45.8% over 30 days, -30.8% over 90 days.domagic-webpack-pluginWeekly downloads growth on npm45downloads / week now7-day growth+8 weekly downloads+21.6%30-day growth-38 weekly downloads-45.8%90-day growth-20 weekly downloads-30.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
domagic-webpack-plugin weekly downloads growth on npm: +21.6% over 7 days, -45.8% over 30 days, -30.8% over 90 days.

Ranking history

domagic-webpack-plugin npm ranking history: currently #1825 (by weekly downloads).domagic-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1825current rank#1740#1760#1780#1800#1820#1840Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
domagic-webpack-plugin npm ranking history: currently #1825 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 92, #9 (overall #1,829)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins251 listings · 13 pages · page 7, #9 (overall #129)
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 (122)
Recent weekly downloads observations for domagic-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
45+4
41-3
44-1
45-1
46-18
640
64+27
37-9
46+2
44-3
470
47+17
30-1
31—

Similar npm Webpack plugins plugins

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