@hawkticehurst This is very interesting. I don't think I'm sold on an `x-signal` custom element (auto coercion and reliance on `innerHTML` seem sketchy to me), but it's a unique concept to explore for sure.

If it's interesting to you, I'm doing something not too dissimilar with #HydroActive. It's not quite defining state in HTML like you are, but it does focus on reading initial values from pre-rendered HTML with signals as a reactivity mechanism.

https://github.com/dgp1130/HydroActive/

GitHub - dgp1130/HydroActive: An experimental library for hydrating web components and adding "sprinkles of reactivity" to pre-rendered HTML.

An experimental library for hydrating web components and adding "sprinkles of reactivity" to pre-rendered HTML. - dgp1130/HydroActive

GitHub

Just released v0.1.7 of #HydroActive with the main new feature being support of the "On-Demand Definitions" community protocol I recently proposed. If you're interested to try it out, this is an easy way to give it a shot.

https://github.com/dgp1130/HydroActive/releases/tag/releases%2F0.1.7

https://github.com/webcomponents-cg/community-protocols/pull/67

Release releases/0.1.7 · dgp1130/HydroActive

BREAKING CHANGES: The defineSignalComponent and defineBaseComponent functions have been renamed to component and baseComponent respectively. The new versions do not immediately call customElements....

GitHub

Just published #HydroActive v0.1.4 with #ShadowDOM support!

https://github.com/dgp1130/HydroActive/releases/tag/releases%2F0.1.4

Now you can call `host.shadow.query('...')` to easily scope a query to the shadow root of an element.

#Web #JavaScript #TypeScript #WebComponents #CustomElements

Release releases/0.1.4 · dgp1130/HydroActive

https://www.npmjs.com/package/hydroactive/v/0.1.4 This release adds support for shadow roots. Now on any Queryable you can call .shadow to get another Queryable scoped to that element's shadow root...

GitHub

I had been hoping to spend some time this weekend on #HydroActive, but #Akuma is just too much fun right now.

#StreetFighter #StreetFighter6

What even is #hydration?

I just published a new video update on #HydroActive exploring exactly what the term means, what problems you encounter when you hydrate with plain #WebComponents and how HydroActive can help with those problems.

I also give an overview of the `defer-hydration` community protocol and how we can use it provide a common hydration interface.

https://youtu.be/euFQRqrTSMk

What even is hydration? - HydroActive

YouTube

Recorded another video for #HydroActive today! This one will be focused on what exactly #hydration actually means and how HydroActive helps you solve some key problems with it.

I think the audio should come out better this time, so it's hope it works out 🤞.

New release of #HydroActive re-works some of the DOM access APIs and improves overall hydration support with more comprehensive examples.

https://github.com/dgp1130/HydroActive/releases/tag/releases%2F0.1.1

My next milestone is put together another video which walks through the changes and some of the design decisions which went into hydration and the weird nuances it transparently solves for you in ways you would never notice as a user. Very interesting discussion coming! 😁

Release releases/0.1.1 · dgp1130/HydroActive

https://www.npmjs.com/package/hydroactive/v/0.1.1 This release adds improved hydration support and reworks the core DOM manipulation APIs to decouple utilities like comp.live into smaller, more com...

GitHub

Published: New #YouTube video on #HydroActive where I:

* (re)introduce what HydroActive is (a webcomponent library for adding hydration and reactivity to primarily server-side rendered content)
* discuss the problems it's attempting to solve
* explain the core design principles behind the project
* demo some basic components and use cases

https://youtu.be/kTDgjF4a_oU?si=_EKTTgt6mzVyCMjg

While this is retreading some old ground from my previous video, the goal here is to kick off a series of (hopefully shorter) videos on specific concepts in HydroActive and how it evolves over time. Stay tuned for more content in the future!

(Re)introducing HydroActive: A web component library for easily adding hydration and reactivity!

YouTube

Been struggling a lot with staying motivated with anything lately.

I've been sitting on a 90% done #YouTube video on #HydroActive but can't quite bring myself to get it over the finish line.

No games have really grabbed my attention. I tried #Prey and I can tell it's good, but just failed to grab me. I think I'm just not in the right mental state right now to enjoy it.

I've been watching #EldenRing #BingoBrawlers which is good time sink, but doesn't exactly make me feel productive. I tried a bingo seed myself, but I feel like it has a pretty high barrier to entry.

Maybe I could get back into a #Zelda #Randomizer? At this point I'm basically just waiting for #ShadowsOfTheErdtree to come out.

Anything that's worked for you to build motivation and passion?

@oxharris @fabrice @slightlyoff Interesting stuff, glad to see more innovation in this space. It's a unique approach for sure.

The reactivity stuff you're talking about reminds me a lot of #HydroActive, which tries to tackle a similar problem in a very different way.

https://github.com/dgp1130/HydroActive/

The HTML modules stuff is interesting. I've been doing similar explorations in this space recently which might be relevant to you.

https://blog.dwac.dev/posts/html-fragments/

GitHub - dgp1130/HydroActive: An experimental library for hydrating web components and adding "sprinkles of reactivity" to pre-rendered HTML.

An experimental library for hydrating web components and adding "sprinkles of reactivity" to pre-rendered HTML. - dgp1130/HydroActive

GitHub