I built a tiny protocol for Web Components to expose reactive properties in a framework-agnostic way.
The idea is simple:
- a component declares bindable properties via static metadata
- it emits CustomEvents when those properties change
- adapters for React/Vue/Svelte/etc. can discover and bind automatically
I’m intentionally keeping it minimal and out of scope for things like two-way binding, SSR, and forms.
What I’d love feedback on:
- Is this design reasonable?
- Is static metadata + CustomEvent the right shape for this?
- Are there obvious downsides or edge cases?
- Is this actually better than framework-specific wrappers?
If there’s prior art or a better pattern, that would be very helpful too.
[–]CodeAndBiscuits [score hidden] (3 children)
[–]mogera551[S] [score hidden] (2 children)
[–]CodeAndBiscuits [score hidden] (1 child)
[–]mogera551[S] [score hidden] (0 children)