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.


Keywords
jsdom, dom, browser, custom, elements, web, components, html, whatwg, w3c, angular, bun, javascript, jest, lit-element, lit-html, nodejs, react, svelte, testing-library, typescript, vitest, vue, web-components
License
MIT
Install
npm install happy-dom@16.3.0

Documentation

Happy DOM Logo

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

Published on NPM

Documentation | Getting started | Setup as Test Environment

DOM Features

  • Custom Elements (Web Components)

  • Declarative Shadow DOM

  • Mutation Observer

  • Tree Walker

  • Fetch API

And much more..

Works With

Sponsors

Gold Sponsors

RT Vision       Microsoft

Sponsors

Sentry

Backers

Sourcegraph    andykenward

Contributing

See Contributing Guide.

License

MIT License © 2019-Present David Ortner