experiment EX-WC-0001
Web Component Framework Architecture Probes
Web Component Framework Architecture Probes
Probe scope
This repository does not contain a JavaScript workspace or existing component build system. Therefore the probes performed here were limited to:
- Executed repository reality probes.
- Source-backed architecture probes using current official documentation.
- Explicit deferral of runtime consumer fixtures to the dedicated Web Components repository.
Executed probes
EX-WC-001: Repository tooling probe
- Method:
- Scanned for
package.json, lockfiles, TS configs, and CI workflows. - Checked local runtime versions.
- Scanned for
- Result:
- No JS workspace exists in this repository.
- Local tools available: Node
v25.6.0, npm11.8.0, Python3.14.3.
- Consequence:
- Production framework implementation in this repository would be premature and structurally mislocated.
EX-WC-002: Registry and metadata probe
- Method:
- Read repository architecture, metadata standard, and registry placeholders.
- Result:
- The repository expects durable research artifacts, generated indexes, and traceable IDs.
- Consequence:
- The correct output here is a research and handoff package, not framework source code.
Source-backed comparative probes
EX-WC-003: Authoring model probe
- Compared:
- Native
HTMLElement - Lit /
ReactiveElement - Mixed architecture
- Native
- Result:
- Native
HTMLElementwins for minimal primitives and behavior-light elements. - Lit wins on ergonomics for complex interactive custom elements.
- Mixed architecture best fits the category-specific evidence and avoids forcing layout recipes into Shadow DOM.
- Native
- Decision impact:
- Adopt mixed authoring with one public contract model.
EX-WC-004: Shadow DOM probe
- Compared:
- Universal Shadow DOM
- Universal Light DOM
- Category-specific DOM strategy
- Result:
- Universal Shadow DOM imposes too much styling and content-model friction.
- Universal Light DOM loses protection for bounded interactive widgets.
- Category-specific policy provides the best tradeoff.
- Decision impact:
- Shadow DOM default only for bounded interactive widgets and selected form controls.
EX-WC-005: Consumer integration probe
- Compared:
- Plain HTML
- React 19
- Vue 3
- SSR path
- Result:
- Plain HTML remains the baseline contract.
- React 19 reduces previous CE friction substantially.
- Vue 3 interoperability is strong with clear property/event rules.
- SSR remains valuable but must be fixture-validated before becoming contractual.
- Decision impact:
- Core packages stay framework-agnostic; adapters remain optional.
Required deferred probes
These probes were not executed in this repository and must be executed in the dedicated Web Components repository before broad library expansion:
- Simple presentational component in native
HTMLElementand Lit variants. - Slotted content component in Light DOM and Shadow DOM variants.
- Low-risk interactive disclosure in plain HTML-enhancement and Lit variants.
- Form-associated custom element with native form and validation fixture.
- Themeable component demonstrating token flow and CSS parts/custom properties boundaries.
- CSS-first layout primitive with container-query behavior.
- React consumption fixture.
- Vue consumption fixture.
- Static HTML no-build fixture.
- SSR/pre-render fixture.
Conclusion
The probes performed here were sufficient to decide foundational architecture, but not sufficient to certify implementation ergonomics. That remaining work is implementation-phase validation debt and is captured in the readiness checklist and handoff prompt.