https://github.com/thangman22/oembed-component
📋oEmbed web component that make you easy to embed everything.
https://github.com/thangman22/oembed-component
javascript oembed web-components
Last synced: 8 months ago
JSON representation
📋oEmbed web component that make you easy to embed everything.
- Host: GitHub
- URL: https://github.com/thangman22/oembed-component
- Owner: thangman22
- License: mit
- Created: 2018-02-21T15:27:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:54:27.000Z (over 2 years ago)
- Last Synced: 2025-10-01T02:43:44.852Z (9 months ago)
- Topics: javascript, oembed, web-components
- Language: JavaScript
- Homepage:
- Size: 204 KB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Oembed component
> oEmbed web component that make you easy to embed everything.

[](https://www.webcomponents.org/element/thangman22/oembed-component)
`` is component to help developer put any embed that support oEmbed to website easier.
[Provider supported](https://oembed.com/providers.json)
## How to install
Add script tag at head
```html
```
or install with Yarn
```sh
yarn add oembed-component
```
## How to use
```html
```
### Properties
Property | Type | Default | Require | Description
:--- |:--- |:--- |:--- |:---
`url` | *String* | `""` | true | URL of object [Provider supported](https://oembed.com/providers.json)
`proxy` | *String* | `""` | false | URL of proxy
## Proxy
Some of provider is not allow cross-origin HTTP request and oembed will not work with those site. You need to put proxy url to make it work. I would suggest to use [cors-anywhere.herokuapp.com](https://cors-anywhere.herokuapp.com) as your proxy. Self hosted version is provide at [https://github.com/Rob--W/cors-anywhere/](https://github.com/Rob--W/cors-anywhere/).
## Browser Support
 |  |  |  | |  |
:---: | :---: | :---: | :---: | :---: | :---: |
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11+ | Latest ✔
## Based on vue.js?
Yes. This component use vue.js and [vue-custom-element](https://github.com/karol-f/vue-custom-element) for development. However You not need to add vue.js to your project because is all packed in `dist.js`
## Development
```sh
yarn # Install dependencies
yarn dev # Start the development
yarn test # Run unit test
yarn build # Run build for make bundle
```
## Development
```sh
yarn # Install dependencies
yarn dev # Start the development
yarn test # Run unit test
yarn build # Run build for make bundle
```
## Contributing
Find on our issues the next steps of the project ;)
Want to contribute? PR please.
## License
MIT License © [thangman22](https://thangman22.com)
See my another project at [thangman22.com](https://thangman22.com)