MCPcopy Create free account
hub / github.com/capricorn86/happy-dom

github.com/capricorn86/happy-dom

Chat with this repo
repository ↗ · DeepWiki ↗ · release v20.11.0 ↗ · + Follow · compare 2 versions
5,647 symbols 15,470 edges 1,000 files 2,932 documented · 52% updated 2d agov20.11.0 · 2026-07-18★ 4,570281 open issues

Browse by type

Functions 4,455 Types & classes 1,192
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Happy DOM Logo

A JavaScript implementation of a web browser without its graphical user interface.







<a href="https://www.npmjs.com/package/happy-dom">
    <img alt="Published on NPM" src="https://img.shields.io/npm/v/happy-dom.svg">
</a>







<a href="https://github.com/capricorn86/happy-dom/wiki/">Documentation</a> | <a href="https://github.com/capricorn86/happy-dom/wiki/Getting-started">Getting started</a> | <a href="https://github.com/capricorn86/happy-dom/wiki/Setup-as-Test-Environment">Setup as Test Environment</a>

DOM Features

  • Custom Elements (Web Components)

  • Declarative Shadow DOM

  • Mutation Observer

  • Tree Walker

  • Fetch API

And much more..

Works With

Sponsors

Sponsors

<a href="https://sentry.io/"><img alt="Sentry" width="50px" src="https://avatars.githubusercontent.com/u/1396951?s=200&v=4"></a>
&nbsp;&nbsp;
<a href="https://canonical.com/"><img alt="Canonical" width="50px" src="https://avatars.githubusercontent.com/u/53057619?s=200&v=4"></a>

Backers

<a href="https://sourcegraph.com/"><img alt="Sourcegraph" src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/3979584?v=4&h=40&w=40&fit=cover&mask=circle&maxage=7d"></a>
&nbsp;&nbsp;
<a href="https://github.com/andykenward"><img alt="andykenward" src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/4893048?v=4&h=40&w=40&fit=cover&mask=circle&maxage=7d"></a>
&nbsp;&nbsp;
<a href="https://github.com/raystubbs"><img alt="raystubbs" src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/7083791?v=4&h=40&w=40&fit=cover&mask=circle&maxage=7d"></a>

Contributing

See Contributing Guide.

License

MIT License © 2019-Present David Ortner

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 4,353
Class 1,016
Interface 131
Function 102
Enum 45

Languages

TypeScript100%

Modules by API surface

packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts800 symbols
packages/happy-dom/src/window/BrowserWindow.ts187 symbols
packages/happy-dom/src/nodes/document/Document.ts183 symbols
packages/happy-dom/src/nodes/svg-element/SVGElement.ts98 symbols
packages/happy-dom/src/nodes/element/Element.ts93 symbols
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationPropertySetParser.ts92 symbols
packages/happy-dom/src/nodes/html-element/HTMLElement.ts88 symbols
packages/happy-dom/src/window/WindowContextClassExtender.ts87 symbols
packages/happy-dom/src/nodes/html-media-element/HTMLMediaElement.ts67 symbols
packages/happy-dom/src/dom/dom-matrix/DOMMatrixReadOnly.ts67 symbols
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts65 symbols
packages/happy-dom/src/nodes/svg-svg-element/SVGSVGElement.ts51 symbols

Dependencies from manifests, versioned

@angular/common22.0.0 · 1×
@angular/compiler22.0.0 · 1×
@angular/core22.0.0 · 1×
@angular/platform-browser22.0.0 · 1×
@happy-dom/global-registrator0.0.0 · 1×
@jest/environment30.0.0 · 1×
@jest/fake-timers30.0.0 · 1×
@jest/types30.0.0 · 1×
@lit/reactive-element1.3.1 · 1×
@testing-library/react14.0.0 · 1×

For agents

$ claude mcp add happy-dom \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page