</>PackageGraphPackageGraph

happy-dom

npmv20.14.0TypeScript

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.

Safe to adopt

Yes — happy-dom scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 6 days ago. 50 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 6 days ago. 50 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 8 transitive packages, about 11 MB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding happy-dom to a project.

7
Direct dependencies

Runtime packages this one declares itself.

8
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

11 MB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

BSD-2-ClauseMIT

Every license you inherit by installing happy-dom, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=20.0.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

happy-dom vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
happy-domthis page06MIT6 days ago
jsdom020MIT1 day ago
ssri02ISC1 day ago
@testing-library/jest-dom56M6MIT1 day ago
default-browser52.6M1MIT1 day ago
cross-fetch32.9M2MIT1 day ago

Dependencies

Declared by happy-dom v20.14.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (7)

@vitest/ui ^4.0.16@webref/css 6.6.2chalk ^5.4.1madge ^8.0.0prettier 3.3.3typescript ^5.8.3vitest ^4.0.16

Used by

Popular packages that depend on happy-dom.

Relationship graph

Dependencies (left) and dependents (right) of happy-dom.

Frequently installed together

Release history

50 releases in the last two years, typically about 0 days apart.

Recent versions of happy-dom
VersionPublishedSizeLicense
20.14.0latest6 days ago8.2 MBMIT
20.13.27 days ago8.2 MBMIT
20.13.17 days ago8.2 MBMIT
20.13.07 days ago8.2 MBMIT
20.12.28 days ago8.2 MBMIT
20.12.18 days ago8.2 MBMIT
20.12.011 days ago8.3 MBMIT
20.11.1512 days ago8.2 MBMIT
20.11.1412 days ago8.2 MBMIT
20.11.1312 days ago8.2 MBMIT
20.11.1213 days ago8.2 MBMIT
20.11.1113 days ago8.2 MBMIT
20.11.1013 days ago8.2 MBMIT
20.11.913 days ago8.2 MBMIT
20.11.814 days ago8.2 MBMIT

Overview

happy-dom is an npm package that 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. It has 6 known dependents in the graph. The latest version is 20.14.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need 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 and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use happy-dom?

Yes — happy-dom scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 6 days ago. 50 releases in the last 2 years.

How do I install happy-dom?

Run `npm install happy-dom` to add happy-dom to your npm project.

How many dependencies does happy-dom have?

happy-dom declares 14 direct dependencies and pulls in 8 packages in total once its runtime tree is resolved totalling about 11 MB on disk.

What license is happy-dom released under?

happy-dom is distributed under the MIT license. Its dependency tree also includes: BSD-2-Clause, MIT.

How popular is happy-dom?

npm does not publish download counts. Within PackageGraph's crawl, 6 known packages depend on happy-dom.

Is happy-dom still maintained?

The most recent release of happy-dom (v20.14.0) was published 6 days ago.

Does happy-dom run install scripts?

No. happy-dom does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.