We.js embed generator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files/public
lib
server
test
.gitignore
.jscsrc
.jshintignore
.jshintrc
.npmignore
.travis.yml
README.md
install.js
package.json
plugin.js

README.md

we-plugin-wembed-server

We.js wembed server plugin

Add suport to parse metadata from sites and expose as JSON or HTML

Example with HTML: https://wejs.org/api/v1/embed?url=https://www.youtube.com/watch?v=1G4isv_Fylg

Example with JSON: https://wejs.org/api/v1/json?url=https://www.youtube.com/watch?v=1G4isv_Fylg

Installation

In your we.js project

we i we-plugin-wembed-server

Configuration

In you configuration file:

wembed: {
  // time to refesh page cache
  refreshTime: 3600000,
  // size of images
  image: {
    width: 200,
    height: 200,
  }
}

URLS

Get wembed in JSON:

get /api/v1/json?url=https://www.youtube.com/watch?v=1G4isv_Fylg

Get wembed in HTML:

get /api/v1/embed?url=https://www.youtube.com/watch?v=1G4isv_Fylg

Links

License

the MIT license