{"id":15457984,"url":"https://github.com/agentofuser/remark-oembed","last_synced_at":"2025-09-13T15:43:04.202Z","repository":{"id":34921293,"uuid":"190312189","full_name":"agentofuser/remark-oembed","owner":"agentofuser","description":"Convert URLs in markdown for youtube, twitter, etc. surrounded by newlines into html embeds","archived":false,"fork":false,"pushed_at":"2022-12-09T05:15:18.000Z","size":1005,"stargazers_count":50,"open_issues_count":39,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T03:11:29.527Z","etag":null,"topics":["html-embed","markdown","oembed","remark-plugin","remarkjs","twitter","unifiedjs","youtube"],"latest_commit_sha":null,"homepage":"https://oembed.com/","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/agentofuser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-05T02:27:45.000Z","updated_at":"2025-01-14T00:07:53.000Z","dependencies_parsed_at":"2023-01-15T10:31:00.393Z","dependency_job_id":null,"html_url":"https://github.com/agentofuser/remark-oembed","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/agentofuser/remark-oembed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentofuser%2Fremark-oembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentofuser%2Fremark-oembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentofuser%2Fremark-oembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentofuser%2Fremark-oembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentofuser","download_url":"https://codeload.github.com/agentofuser/remark-oembed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentofuser%2Fremark-oembed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265809916,"owners_count":23831944,"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","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":["html-embed","markdown","oembed","remark-plugin","remarkjs","twitter","unifiedjs","youtube"],"created_at":"2024-10-01T22:56:27.324Z","updated_at":"2025-07-18T18:31:37.126Z","avatar_url":"https://github.com/agentofuser.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remark-oembed\n\n[![Downloads][downloads-badge]][downloads] [![Chat][chat-badge]][chat]\n\nConverts URLs surrounded by newlines into embeds.\n\nThe important part of this code is taken directly from\n[Benedicte Raae](https://www.raae.codes/)'s excellent\n[gatsby-remark-oembed](https://github.com/raae/gatsby-remark-oembed) plugin, so\nthank you very much [@raae](https://github.com/raae) 🙏\n\n## Installation\n\n[yarn][]:\n\n```bash\nyarn add @agentofuser/remark-oembed\n```\n\n## Usage\n\nSay we have the following file, `demo.md`:\n\n\u003c!-- prettier-ignore --\u003e\n```markdown\nHey this is a nice youtube video about making modern react apps with gatsby:\n\nhttps://www.youtube.com/watch?v=GN0xHSk2P8Q\n\nCheck it out 👆\n```\n\nAnd our script, `example.js`, looks as follows:\n\n```javascript\nvar fs = require('fs')\nvar remark = require('remark')\nvar oembed = require('@agentofuser/remark-oembed')\n\nremark()\n  .use(oembed)\n  .process(fs.readFileSync('demo.md'), function(err, file) {\n    if (err) throw err\n    console.log(String(file))\n  })\n```\n\nNow, running `node example` yields:\n\n```markdown\nHey this is a nice youtube video about making modern react apps with gatsby:\n\n\u003ciframe \n  width=\"480\" \n  height=\"270\" \n  src=\"https://www.youtube.com/embed/GN0xHSk2P8Q?feature=oembed\" \n  frameborder=\"0\" \n  allow=\"accelerometer; \n    autoplay; \n    encrypted-media; \n    gyroscope; \n    picture-in-picture\" \n  allowfullscreen\u003e\n\u003c/iframe\u003e\n\nCheck it out 👆\n```\n\n## API\n\n### `remark().use(oembed)`\n\nConverts URLs surrounded by newlines into embeds.\n\n## Contribute\n\nSee [`contributing.md` in `remarkjs/remark`][contribute] for ways to get\nstarted.\n\nThis organisation has a [Code of Conduct][coc]. By interacting with this\nrepository, organisation, or community you agree to abide by its terms.\n\n## License\n\n[MIT][license] © [Agent of User][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://img.shields.io/travis/agentofuser/remark-oembed.svg\n[build]: https://travis-ci.org/agentofuser/remark-oembed\n[downloads-badge]: https://img.shields.io/npm/dm/remark-oembed.svg\n[downloads]: https://www.npmjs.com/package/@agentofuser/remark-oembed\n[chat-badge]:\n  https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg\n[chat]: https://spectrum.chat/unified/remark\n[yarn]: https://yarnpkg.com/en/docs/install\n[license]: LICENSE.md\n[author]: https://agentofuser.com\n[remark]: https://github.com/remarkjs/remark\n[contribute]: https://github.com/remarkjs/remark/blob/master/contributing.md\n[coc]: https://github.com/remarkjs/remark/blob/master/code-of-conduct.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentofuser%2Fremark-oembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentofuser%2Fremark-oembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentofuser%2Fremark-oembed/lists"}