discoverdotnet
discoverdotnet copied to clipboard
Embeddable widgets
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
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.
Also consider creating oEmbed endpoints once a widget is available: https://oembed.com/