Web script¶
Status: draft
Proposals by Claude – not binding until Daniel approves them.
How the review overlay runs on any website without a build step. What users see: Web script.
Today the overlay depends on the Sphinx build for four things: the
dw-el-<n> classes and the #deciwa-page map on every page, elements.json
(text and fingerprint of every element), config.json (review rules) and the
source file of the page. The web script finds all of this in the browser.
A single |
The parts meet in small interfaces: an element source returns the element
list of the page, a store answers the calls the overlay makes today
( |
The overlay sources become ES modules in
On foreign pages the UI lives in a Shadow DOM, so the page’s CSS cannot break the overlay and the overlay’s CSS cannot change the page. |
The docs workflow publishes |
The source of a page is, in this order:
The browser always stores the address; a mapping added later moves the annotations to the source file without losing any. Decided: Mapping pages to source fil... (DEC_WEB_SOURCE). |
Without a build there is no |
The script scans again after client-side navigation ( |
Proposal was: right after the prototype, before VS Code – the first real use is the danwos website, and the Chrome extension builds on it. Answered by Daniel (2026-10-20): yes, as 0.2 – see The web script comes as 0.2... (DEC_WEB_SCRIPT_FIRST). |
First use: the danwos website¶
src/layouts/Base.astrogets the script tag withdata-activate="param".The website repository gets
.deciwa/config.tomlwith[web].sourcesfor its content collections.The self-built feedback tool in the Astro dev toolbar (
.feedback/feedback.json) is replaced once deciwa works there.