# webpack/webpack-hot-middleware

Webpack hot reloading you can attach to your own server

Repository: https://github.com/webpack/webpack-hot-middleware
Canonical: https://ross.abutalabs.com/products/webpack-hot-middleware
Language: JavaScript
License: MIT
License Family: permissive
Topics: webpack, middleware, defaults-exempt
Last push: 2026-08-12T19:55:40+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4140, "days_push": 21, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2377, forks 290 (observed 2026-08-28T04:06:42.133314+00:00)

## What it is
A Node.js middleware that adds webpack hot module replacement (HMR) to your own HTTP server, working alongside webpack-dev-middleware without needing webpack-dev-server. It handles the browser-client connection and update subscription, while applying changes via webpack's HMR API.

## Use cases
- add hot reloading to an existing express server
- use webpack HMR without webpack-dev-server
- custom dev server with live module replacement
- hot reload a node backend serving a webpack bundle
- wire HMR into a framework-agnostic server setup

## When to choose
- you already run your own server and want webpack hot reloading attached as middleware
- webpack-dev-server is too opinionated for your setup
- you need fine control over the dev server while keeping HMR

## When to avoid
- you are happy with webpack-dev-server's built-in HMR
- your app does not use webpack
- you need the library to make your components themselves hot-reloadable (it only wires the update mechanism)

## Facets
- artifact type: library
- maturity: stable
- function: middleware, build-tool, developer-tools
- domain: web-development, frontend, developer-tools
- platform: -
- tags: webpack, hot-module-replacement, hmr, hot-reloading, express-middleware, nodejs, web-server

## Member repositories
- webpack/webpack-hot-middleware (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:42.133314+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:58.419342+00:00, confidence not recorded.
  - readme: https://github.com/webpack/webpack-hot-middleware (fetched 2026-08-28T04:06:42.133314+00:00, sha 111d57a64dcd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
