Setup Usage Docs


A simple, lightweight and standalone content embed plugin for web


Bower version npm version
  * @implements Embedo setup
  * @package {npm} npm install embedo --save
  * @package {bower} bower install embedo
  * @import {jsdelivr}
  * @import {cdnjs}
  * @import {unpkg}

  import Embedo from './my/vendor/folder';

  const embedo = new Embedo({
    facebook: {
      appId: 'my_app_id', // Enable facebook SDK
      version: 'v2.10'
    twitter: true,  // Enable twitter SDK
    instagram: true,  // Enable instagram SDK
    pinterest: true  // Enable pinterest SDK,
    googlemaps: {
      key: 'my_api_key' // Enables google maps API

  // Calling .load() event (HTMLElement, url[String|Array], options[Object])
  .done((data) => {})
  .fail((err) => {})

  // OR calling .load() event (HTMLElement, url[String|Array], options[Object])
    document.getElementById('my-awesome-container'), [
  ], {
    hidecaption: false

  // Load with native and external options
      width: 640,
      height: 480,
      hidecaption: true

  // Also, the jQuery way
  embedo.load($('my-awesome-container').get(0), 'my://url');

  // Refresh event (if no element passed, refreshes all embedo instances)

  // Destroy event (if no element passed, destroys all embedo instances)

  // Single instance event handler
  embedo.load(el, url, options).done((data) => {}).fail((err) => {})

  // Global instances event handlers
  embedo.on('watch', (event, result) => {});
  embedo.on('refresh', (result, data) => {});
  embedo.on('destroy', () => {});

What's currently supported?

Facebook URLs containing page, post, photos, videos or comments
Twitter URLs containing user timeline and tweets
YouTube videos URLs, playlists will play in loop
Instagram URLs containing posts and videos
Pinterest URLs containing boards, profile and pins
Vimeo URLs containing videos
SoundCloud URLs containing videos
Reddit posts or comments as plugin
Google Maps URLs containing cordinates to a location
Fallback to iframe for allowed CORS urls or formats like .pdf, .webm, etc.