Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Happy DOM

Lightweight DOM implementation for server-side rendering and testing without a browser.

TestingNPM

GitHubWebsite

1. License

License from npm.

github.com/capricorn86/happy-dom

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Happy DOM does

Lightweight DOM implementation for server-side rendering and testing without a browser.

Happy DOM popularity

71 / 100
Gid Score, #326 overall
37.8M
downloads a week, npm
4,756
GitHub stars
122
agent projects use it
Happy DOM: downloads per weeknpm, happy-dom 37,849,124
Happy DOM: GitHub starscapricorn86/happy-dom 4,756

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Happy DOM is used

  • Happy DOM is a dependency in 122 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.5% of the 4,867 JavaScript/TypeScript ones), #7 of 122 in testing.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 215; those are left out of every share on this page.
  • The most used alternative in our scan is jsdom (615 projects).
  • Projects that use it most often also use Vitest (90.2%), Vite (70.5%), Testing Library (56.6%).
  • It is more common in projects set up for OpenCode (4.7%) than for OpenAI Codex (1.5%).

By coding agent

87 projects, 2.7%
66 projects, 2.2%
40 projects, 1.6%
16 projects, 4.7%
9 projects, 1.9%
7 projects, 1.5%
5 projects, 1.8%

Often used with

In 90.2% of its projects
In 70.5% of its projects
In 56.6% of its projects
In 58.2% of its projects
In 62.3% of its projects
In 89.3% of its projects
In 71.3% of its projects
In 63.9% of its projects

More about Happy DOM

Funding
  • GitHub Sponsors: https://github.com/capricorn86

See all

Head to head
More in Testing

Alternatives

Happy DOM This page

MITGid 7137.8M/wk

jsdom

JavaScript implementation of web standards for testing DOM interactions.

MITGid 83167M/wk

Compare Happy DOM with another tool

Get started

Install it.

npm install happy-dom

No step-by-step start for Happy DOM yet: we have not written its hand-checked card.