NEARFoundation / stats.gallery

Big & fun NEAR account analytics!
https://stats.gallery
GNU General Public License v3.0
33 stars 18 forks source link

embeddable statistics #10

Closed amgando closed 3 years ago

amgando commented 3 years ago

we should think carefully about how to break up these stats into shareable components with their own access point. consider that others may want to use these statistics as widgets in their own applications, for example, or on their vanity sites.

something like this might help, not sure though https://github.com/karol-f/vue-custom-element https://itnext.io/vuidget-how-to-create-an-embeddable-vue-js-widget-with-vue-custom-element-674bdcb96b97

encody commented 3 years ago

@amgando Are we looking at something like Spotify embeds? Those are embedded using iframes, which have the advantage of only having to write one tag in one place instead of three tags in three places. Or is the intent with embeddable statistics different?

amgando commented 3 years ago

@encody I hadn't really done much research on options here. I think the goal would be to offer up a modern embed experience to devs as well as low / no tech folks who want to add widgets to Wordpress, Wix, etc.

not sure what the level of effort on any of this would be so it's a research problem at this point afaik

encody commented 3 years ago

@amgando I'll put together something using iframes and we'll see if that looks appropriate.