{"id":15311114,"url":"https://github.com/talentlessguy/react-ogp","last_synced_at":"2025-04-15T01:09:09.386Z","repository":{"id":53000479,"uuid":"356500994","full_name":"talentlessguy/react-ogp","owner":"talentlessguy","description":"🌐 The ultimate React OpenGraph component","archived":false,"fork":false,"pushed_at":"2021-08-06T08:46:12.000Z","size":34,"stargazers_count":30,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:09:02.855Z","etag":null,"topics":["opengraph","opengraph-data","react","react-","react-component","react-component-library","reactjs"],"latest_commit_sha":null,"homepage":"https://npm.im/react-ogp","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/talentlessguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"v1rtl","liberapay":"v1rtl"}},"created_at":"2021-04-10T07:03:35.000Z","updated_at":"2025-04-11T22:00:20.000Z","dependencies_parsed_at":"2022-09-16T03:01:30.075Z","dependency_job_id":null,"html_url":"https://github.com/talentlessguy/react-ogp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Freact-ogp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Freact-ogp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Freact-ogp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Freact-ogp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talentlessguy","download_url":"https://codeload.github.com/talentlessguy/react-ogp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986313,"owners_count":21194025,"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":["opengraph","opengraph-data","react","react-","react-component","react-component-library","reactjs"],"created_at":"2024-10-01T08:31:41.368Z","updated_at":"2025-04-15T01:09:09.367Z","avatar_url":"https://github.com/talentlessguy.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.svg\" height=\"200px\" /\u003e\n\u003c/p\u003e\n\n# react-ogp\n\n![Vulnerabilities][vulns-badge-url]\n[![Version][v-badge-url]][npm-url]\n![Last commit][last-commit-badge-url]\n![Minified size][size-badge-url] [![Downloads][dl-badge-url]][npm-url]\n\nThe ultimate React OpenGraph component.\n\n## Features\n\n- Automatically sets `url` / `secure_url` for images and videos.\n- TypeScript support\n- Forcing to complete _all_ properties for an object not to forget to fill some fields\n\n## Install\n\n```sh\npnpm i react react-ogp\n```\n\n## Usage\n\n### Next.js\n\n```jsx\nimport React from 'react'\nimport { OGP } from 'react-ogp'\nimport Head from 'next/head'\n\nexport default function Index() {\n  return (\n    \u003c\u003e\n      \u003cHead\u003e\n        \u003cOGP\n          url=\"https://example.com\"\n          title=\"My website\"\n          description=\"This is my website\"\n          siteName=\"example.com\"\n          image=\"http://example.com/cover.jpg\"\n        /\u003e\n      \u003c/Head\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n### [React Helmet](https://github.com/nfl/react-helmet)\n\n```jsx\nimport React from 'react'\nimport { OGP } from 'react-ogp'\nimport { Helmet as Head } from 'react-helmet'\n\nexport default function Index() {\n  return (\n    \u003c\u003e\n      \u003cHead\u003e\n        \u003cOGP\n          url=\"https://example.com\"\n          title=\"My website\"\n          description=\"This is my website\"\n          siteName=\"example.com\"\n          image=\"http://example.com/cover.jpg\"\n        /\u003e\n      \u003c/Head\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n[vulns-badge-url]: https://img.shields.io/snyk/vulnerabilities/npm/react-ogp.svg?style=flat-square\n[v-badge-url]: https://img.shields.io/npm/v/react-ogp.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/react-ogp\n[last-commit-badge-url]: https://img.shields.io/github/last-commit/talentlessguy/react-ogp.svg?style=flat-square\n[size-badge-url]: https://img.shields.io/bundlephobia/min/react-ogp.svg?style=flat-square\n[dl-badge-url]: https://img.shields.io/npm/dt/react-ogp?style=flat-square\n","funding_links":["https://ko-fi.com/v1rtl","https://liberapay.com/v1rtl"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Freact-ogp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalentlessguy%2Freact-ogp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Freact-ogp/lists"}