WICG / observable

Observable API proposal
https://wicg.github.io/observable/
Other
543 stars 12 forks source link

Minimal standalone polyfill of latest spec? #107

Closed josephrocca closed 3 months ago

josephrocca commented 5 months ago

Is there a minimal script that I can import from jsdelivr/unpkg/etc. to start playing around with the features proposed in this spec? Including element.on prototype functionality, rather than just the observable primitives.

I'm not involved in any of the spec work/discussion here at all, and I haven't used any of the packages listed in the "Userland libraries" section. It looks like they're either just providing the primitives, or are bundled up with a lot of stuff that's unrelated to this spec.

If someone can point me toward a way to easily test the full experience that this proposal proposes, that would be great.

domfarolino commented 5 months ago

@benlesh is working on a reference implementation of this specification in https://github.com/WICG/observable/pull/42, but it hasn't been active in a little bit (it's a hard thing to get just right).

One way you can test something is by navigating to chrome://flags/#observable-api in Google Chrome, and enabling the feature manually in your browser. This will give you access to whatever the latest experimental version of Observables has made it to your browser. Note that most of the operators have not been implemented yet though!

domfarolino commented 3 months ago

Since I've closed #42 for inactivity, I would recommend sticking with chrome://flags/#observable-api in Chromium to experiment with the Observable API in its latest form.