Is there a Julia package similar to the R package htmlwidgets?

The R package htmlwidgets allows to pass some R objects to a JavaScript file (with the help of JSON), and then this JavaScript file creates a HTML widget which is then rendered in a HTML file. It is often used to create some plots using JavaScript libraries. Is there a similar package for Julia? It seems to me there is a Julia package for plotly graphics, how is it done?