Repository navigation
Conversation
commit: |
cowboyd
force-pushed
the
tree-host
branch
2 times, most recently
from
August 11, 2026 04:00
b9d2f0a to
c0a23d5
Compare
cowboyd
force-pushed
the
tree-host
branch
2 times, most recently
from
August 22, 2026 05:24
0db862a to
f1ad9a8
Compare
Contributor
Author
|
closing out in favor of a DOM based substrate. See #37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
React, Preact, Solid, and raw consumers all ultimately need the same small set of operations: create elements and literals, set properties, and insert, move, or remove children. A framework-neutral Host makes those mutations the compatibility boundary for Bombshell, allowing every reconciler to target one model while custom elements extend the same operations through middleware. This prevents the core UI from becoming React-shaped, DOM-shaped, or tied to any one rendering strategy.
The ordered Host element tree is intentionally distinct from the middleware tree. Elements and literals can be assembled while detached, then attaching or reparenting an element creates the corresponding middleware nodes in the correct context. This preserves element identity while letting framework reconcilers perform their normal move operations and gives later layout code a definitive render order.
This PR adds
Host,HostApi,HostElement,HostLiteral, and the extensibleHostElementstype map. It supports detached subtree construction, attachment, reparenting, same-parent reordering, removal, properties, and literal updates. Tests define the mutation and lifecycle contract framework adapters will consume.