# Happy DOM — card for AI agents

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

Category: Testing · npm package `happy-dom` · latest version 21.0.4 (checked 2026-11-01)
Install: `npm install happy-dom`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 71.4 (#326 of all tools, 13 of 122 in its category)
- Used in 122 public projects set up for AI coding agents (1.9%)
- Downloads last week: 37,849,124 (as of 2026-11-24), +66.1% over 4 weeks
- GitHub stars: 4,756 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
Vitest 90.2%, Vite 70.5%, Testing Library 56.6%, Playwright (JavaScript) 58.2%, Zod 62.3%, TypeScript 89.3%

## Checked alternatives (same job)
- jsdom: https://agentgid.com/tools/jsdom/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/happy-dom/
- Homepage: https://github.com/capricorn86/happy-dom
- Repository: https://github.com/capricorn86/happy-dom

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
