{"id":21161746,"url":"https://github.com/silverbirder/o-embed","last_synced_at":"2026-04-13T16:01:22.845Z","repository":{"id":39249615,"uuid":"466646570","full_name":"silverbirder/o-embed","owner":"silverbirder","description":"\u003co-embed\u003e is Web Components for oEmbed generated by open-wc","archived":false,"fork":false,"pushed_at":"2025-06-29T10:38:13.000Z","size":308,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T11:31:12.580Z","etag":null,"topics":["javascript","oembed","open-wc","storybook","webcomponents"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/silverbirder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-03-06T05:36:25.000Z","updated_at":"2025-06-29T10:38:16.000Z","dependencies_parsed_at":"2023-11-18T03:29:00.283Z","dependency_job_id":"43f40bd4-2098-4bc3-937b-237482a7fcaf","html_url":"https://github.com/silverbirder/o-embed","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/silverbirder/o-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbirder%2Fo-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbirder%2Fo-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbirder%2Fo-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbirder%2Fo-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverbirder","download_url":"https://codeload.github.com/silverbirder/o-embed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbirder%2Fo-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","open-wc","storybook","webcomponents"],"created_at":"2024-11-20T13:17:25.275Z","updated_at":"2026-04-13T16:01:22.822Z","avatar_url":"https://github.com/silverbirder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/Silver-birder/o-embed)\n[![codecov](https://codecov.io/gh/Silver-birder/o-embed/branch/main/graph/badge.svg?token=52D9NYB4TO)](https://codecov.io/gh/Silver-birder/o-embed)\n[![storybook](https://raw.githubusercontent.com/storybookjs/brand/master/badge/badge-storybook.svg)](https://www.chromatic.com/library?appId=6235dbeee943ba003aa9a965)\n\n# \\\u003co-embed\u003e\n\n`\u003co-embed\u003e` is Web Components for [oEmbed](https://oembed.com/) generated by [open-wc](https://open-wc.org/).\n\n## oEmbed \n\noEmbed means the following.\n\n\u003e oEmbed is a format for allowing an embedded representation of a URL on third party sites. \n\nFor example, in the case of Tweet, you will see the following embed.\n\n![open wc tweet](https://res.cloudinary.com/silverbirder/image/upload/h_512/v1647767845/github.com/o-embed/open-wc-tweet.png)\n\nThe URL for the Tweet is bellow.\n\n* `https://twitter.com/openwc/status/1427617679427440643`\n\nThe URL for Tweet's oEmbed API is bellow.\n\n* `https://publish.twitter.com/oembed?\nurl=https://twitter.com/openwc/status/1427617679427440643`\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { OEmbed } from 'https://cdn.skypack.dev/@silverbirder/o-embed';\n\n  window.customElements.define(\"o-embed\", OEmbed);\n\u003c/script\u003e\n\n\u003co-embed\n  src=\"https://twitter.com/openwc/status/1427617679427440643\"\n  proxy=\"https://silverbirder-cors-anywhere.herokuapp.com\"\n\u003e\u003c/o-embed\u003e\n```\n\n### Attributes\n\n|Attribute|Type|Required|Default|Description|\n|--|--|--|--|--|\n|src|*String*|true|`\"\"`|URL to embed.\u003c/br\u003eIt must be supported by the provider.|\n|proxy|*String*|true|`\"\"`|URL of proxy.\u003c/br\u003eThe details is [here(Proxy)](#Proxy).|\n|height|*String*|false|`\"\"`|height of iframe|\n|weight|*String*|false|`\"\"`|weight of iframe|\n|provider|*String*|false|`\"https://oembed.com/providers.json\"`|URL of providers|\n\n### Proxy\n\n\u003e 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 as your proxy. Self hosted version is provide at https://github.com/Rob--W/cors-anywhere/.\n\n※ https://www.webcomponents.org/element/thangman22/oembed-component\n\n### Slot\n\n```html\n\u003co-embed\u003e\n  \u003cp slot=\"loading\"\u003eLoading...\u003c/p\u003e\n  \u003cp slot=\"notFound\"\u003eNot Found\u003c/p\u003e\n  \u003cp slot=\"error\"\u003eError\u003c/p\u003e\n\u003c/o-embed\u003e\n```\n\n|Slot|Condition|\n|--|--|\n|loading|While loading `src`|\n|notFound|Provider of `src` does not exist|\n|error|When unknown errors occur|\n\n## Installation\n\n```bash\nnpm i @silverbirder/o-embed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverbirder%2Fo-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverbirder%2Fo-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverbirder%2Fo-embed/lists"}