Ask HN: How should I go about developing an html widget? So I am thinking of developing an html widget that can be added to any web page (similar to the way sharethis is added but will only display data, no posting). Just a few questions if anyone can help:
1) The widget will fetch data you enter on my website based on a unique code. Shall I return the whole html structure from my site? Or shall I build it on the client site? I want to prevent someone overriding my classes, so I was thinking inline styling or changing the class name on every regeneration of the widget.
2) Was thinking to give it for free and only charge a yearly subscription to remove the logo, or be able to add custom colors etc. What do you think? How does sharethis or other widgets monetize?
3) There should be some transformations as well so some plain javascript will be included. Shall I wrap it in an iframe? Or just call a cdn js file on my site? |