{"id":27326668,"url":"https://github.com/thangman22/oembed-component","last_synced_at":"2025-10-17T10:17:33.738Z","repository":{"id":58224643,"uuid":"122353803","full_name":"thangman22/oembed-component","owner":"thangman22","description":"📋oEmbed web component that make you easy to embed everything.","archived":false,"fork":false,"pushed_at":"2023-12-15T08:54:27.000Z","size":209,"stargazers_count":20,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-01T02:43:44.852Z","etag":null,"topics":["javascript","oembed","web-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thangman22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"thangman22"}},"created_at":"2018-02-21T15:27:06.000Z","updated_at":"2025-09-06T10:31:29.000Z","dependencies_parsed_at":"2025-04-12T11:59:24.077Z","dependency_job_id":"81a342ef-8ac4-4258-8db6-0ab93490b95a","html_url":"https://github.com/thangman22/oembed-component","commit_stats":null,"previous_names":["thangman22/ombed-component"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/thangman22/oembed-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangman22%2Foembed-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangman22%2Foembed-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangman22%2Foembed-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangman22%2Foembed-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thangman22","download_url":"https://codeload.github.com/thangman22/oembed-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangman22%2Foembed-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279325500,"owners_count":26148880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","oembed","web-components"],"created_at":"2025-04-12T11:59:15.260Z","updated_at":"2025-10-17T10:17:33.714Z","avatar_url":"https://github.com/thangman22.png","language":"JavaScript","funding_links":["https://ko-fi.com/thangman22"],"categories":[],"sub_categories":[],"readme":"# Oembed component\n\n\u003e oEmbed web component that make you easy to embed everything.\n\n![oembed](https://raw.githubusercontent.com/thangman22/oembed-component/master/static/facebook-feature-image.png)\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/thangman22/oembed-component)\n\n`\u003co-embed\u003e` is component to help developer put any embed that support oEmbed to website easier.\n\n[Provider supported](https://oembed.com/providers.json)\n\n## How to install\n\nAdd script tag at head\n\n```html\n\u003cscript defer async src=\"https://cdn.jsdelivr.net/npm/oembed-component/dist/oEmbed.js\"\u003e\u003c/script\u003e\n```\n\nor install with Yarn\n\n```sh\nyarn add oembed-component\n```\n\n## How to use\n\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n\u003ctemplate\u003e\n  \u003cscript src=\"https://cdn.jsdelivr.net/npm/oembed-component/dist/oEmbed.js\" defer async\u003e\u003c/script\u003e\n  \u003co-embed url=\"https://www.instagram.com/p/BfcNH1XD91P/\"\u003e\u003c/o-embed\u003e\n\u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003co-embed url=\"https://www.instagram.com/p/BfcNH1XD91P/\"\u003e\u003c/o-embed\u003e\n```\n\n### Properties\n\nProperty      | Type        | Default   | Require   | Description\n:---          |:---         |:---       |:---       |:---\n`url`         | *String*    | `\"\"`      | true      | URL of object [Provider supported](https://oembed.com/providers.json)\n`proxy`       | *String*    | `\"\"`      | false     | URL of proxy\n\n## Proxy\nSome 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/).\n\n## Browser Support\n\n ![Chrome](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/chrome/chrome_48x48.png) | ![Opera](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/opera/opera_48x48.png) | ![Firefox](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/firefox/firefox_48x48.png) | ![Safari](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/safari/safari_48x48.png) |![IE](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |  ![Edge](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.2.2/edge/edge_48x48.png) |\n:---: | :---: | :---: | :---: | :---: | :---: |\nLatest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11+ | Latest ✔\n\n## Based on vue.js?\nYes. 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`\n\n## Development\n\n```sh\nyarn # Install dependencies\nyarn dev # Start the development\nyarn test # Run unit test\nyarn build # Run build for make bundle\n```\n\n## Development\n\n```sh\nyarn # Install dependencies\nyarn dev # Start the development\nyarn test # Run unit test\nyarn build # Run build for make bundle\n```\n\n## Contributing\nFind on our issues the next steps of the project ;)\nWant to contribute? PR please.\n\n## License\nMIT License © [thangman22](https://thangman22.com)\n\nSee my another project at [thangman22.com](https://thangman22.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangman22%2Foembed-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthangman22%2Foembed-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangman22%2Foembed-component/lists"}