# ampproject/worker-dom

The same DOM API and Frameworks you know, but in a Web Worker.

Repository: https://github.com/ampproject/worker-dom
Canonical: https://ross.abutalabs.com/products/worker-dom
Language: TypeScript
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T19:14:58+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2939, "days_push": 7, "days_rel": 432, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3263, forks 153 (observed 2026-08-28T04:07:52.856689+00:00)

## What it is
WorkerDOM is a TypeScript implementation of the DOM API designed to run inside a Web Worker, syncing only necessary DOM mutations to the main thread. It lets frameworks and DOM code execute off the main thread while rendering to the page.

## Use cases
- run DOM manipulation in a web worker to keep the main thread free
- sandbox third-party embedded content alongside first-party code
- reduce expensive rendering jank for non-synchronous UI updates
- build interactive widgets without blocking user input
- power amp-script style safe embedded scripting

## When to choose
- your page suffers main-thread contention from DOM-heavy code
- you need to isolate third-party scripts embedded in your document
- you want framework-agnostic DOM APIs executed off-thread

## When to avoid
- your app needs synchronous DOM reads/writes with immediate layout feedback
- you target very old browsers without Web Worker support
- you need full compatibility with every DOM API or browser extension

## Facets
- artifact type: library
- maturity: active
- function: frontend-framework, ui-components, concurrency
- domain: web-development, frontend, performance
- platform: browser
- tags: web-worker, dom-api, off-main-thread, typescript, amp, web-server, nodejs

## Member repositories
- ampproject/worker-dom (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:52.856689+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:23:11.707671+00:00, confidence not recorded.
  - readme: https://github.com/ampproject/worker-dom (fetched 2026-08-28T04:07:52.856689+00:00, sha 2fb2877dc5fc)
  - registry_npm: https://registry.npmjs.org/worker-dom (fetched 2026-08-29T09:36:50.428139+00:00, sha a3453b577e32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
