discoverdotnet icon indicating copy to clipboard operation
discoverdotnet copied to clipboard

Embeddable widgets

Open daveaglick opened this issue 7 years ago • 2 comments

Provide a widget that could be added to other sites for project, blog, etc. items. Some questions/thoughts:

  • Should the widget be copy-paste HTML?
    • That means it'll be evergreen and there's no danger of Discover .NET ever going away
    • On the other hand it means the widget won't update as the data changes and won't get style or feature updates
  • If the widget is embedded, what mechanism?
    • iframe pointing to Discover-hosted HTML?
    • Discover-hosted HTML but downloaded by JS and added to the DOM?
    • Generated on the fly by JS using Discover API data?
  • Probably want a standard "Powered by Discover .NET" link or something in the widget

daveaglick avatar Aug 15 '18 17:08 daveaglick

Maybe the best approach is a remotely generated and hosted widget but the JS that fetches it has a locally rendered fallback in case the Discover site ever goes offline.

daveaglick avatar Aug 15 '18 18:08 daveaglick

Also consider creating oEmbed endpoints once a widget is available: https://oembed.com/

daveaglick avatar Feb 17 '19 02:02 daveaglick