Domino: Server-side DOM Implementation
JSON →Domino provides a lightweight, server-side implementation of the Document Object Model (DOM) for Node.js, currently at version 2.1.7. Its primary goal is to enable server-side rendering and manipulation of HTML structures without the overhead of a full browser engine. It prioritizes performance and simplicity over strict compliance with the latest DOM specifications or script execution. Domino adheres to DOM Level 4, meaning certain modern browser APIs and behaviors (like Attributes inheriting Node) are not present. It explicitly does not execute scripts or download external resources, making it unsuitable for scraping pages that rely heavily on client-side JavaScript. The library offers both a standard `createWindow` / `createDocument` API and an incremental HTML parser for streaming input. It differentiates itself from alternatives like `jsdom` by not aiming to run untrusted code, avoiding proxy facades and leading to a more performant internal structure, especially for tree modification if `Node#childNodes` is avoided.
Traffic · last 30 days ↑20% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇪🇸 Spain