node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป



Converts your media urls and links to embedded HTML.


npm install webremix

How to Use

var remix = require('webremix');

remix.generate(' look at these amazing cats!', function(err, resp) {

Output becomes:

<div class="image-wrapper">
    <a href="" target="_blank">
        <img src="">
</div> look at these amazing cats!

Video size options

If you want to pass in a different width and height for Youtube/Vimeo, pass in the following:

var options = {
    width: 500,
    height: 200

remix.generate('', options, function(err, resp) {

Supported media

  • Regular links ( or
  • Links with image extensions of jpg|gif|png|jpeg
  • Instagram urls
  • Youtube urls
  • Vimeo urls
  • Soundcloud urls (will fall back to a regular link if the author has sharing disabled)


npm test