happy-dom

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

happy-dom@21.0.4 was published on 2026-10-20. Its manifest declares 7 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=20.0.0.

All happy-dom versions · Permanent reference to 21.0.4

Package specifications

Version21.0.4
License declarationMIT
Published2026-10-20T18:05:53.295Z
Node.js requirement>=20.0.0
Type declarationsBundled declarations
Runtime dependency count7
Peer requirement count0
Optional dependency count0
Minified size970.74 KiB
Minified + gzip246.64 KiB
Unpacked distribution size8969.91 KiB
Published file count3058
Package typemodule
ES module entryNot declared
Default entrylib/index.js
Side effects declarationNot declared
Direct advisories0
Resolved graph dependencies8
Repository stars4724
Repository forks364

Install happy-dom 21.0.4

npm install happy-dom@21.0.4
pnpm add happy-dom@21.0.4
yarn add happy-dom@21.0.4

Runtime dependencies

Peer requirements

  • None declared

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

How to interpret the specifications

Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.

Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.

OpenSSF repository checks

Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.

Maintained10/10 — 28 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Security-Policy10/10 — security policy file detected
Code-Review3/10 — Found 10/30 approved changesets -- score normalized to 3
Token-Permissions0/10 — detected GitHub workflow tokens with excessive permissions
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Binary-Artifacts10/10 — no binaries found in the repo
Pinned-Dependencies4/10 — dependency not pinned by hash detected -- score normalized to 4
License10/10 — license file detected
Fuzzing0/10 — project is not fuzzed
Packaging10/10 — packaging workflow detected
SAST6/10 — SAST tool is not run on all commits -- score normalized to 6

Evidence and freshness