{"id":13782551,"url":"https://github.com/lukechilds/parcel-plugin-ogimage","last_synced_at":"2025-08-16T18:07:57.352Z","repository":{"id":57319051,"uuid":"183877221","full_name":"lukechilds/parcel-plugin-ogimage","owner":"lukechilds","description":"Set absolute URL for og:image meta tags.","archived":false,"fork":false,"pushed_at":"2020-03-20T00:31:57.000Z","size":8,"stargazers_count":22,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T07:54:47.439Z","etag":null,"topics":["parcel","parcel-bundler","parcel-plugin"],"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/lukechilds.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}},"created_at":"2019-04-28T08:08:20.000Z","updated_at":"2023-09-08T17:53:12.000Z","dependencies_parsed_at":"2022-08-26T01:10:23.557Z","dependency_job_id":null,"html_url":"https://github.com/lukechilds/parcel-plugin-ogimage","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lukechilds/parcel-plugin-ogimage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Fparcel-plugin-ogimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Fparcel-plugin-ogimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Fparcel-plugin-ogimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Fparcel-plugin-ogimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukechilds","download_url":"https://codeload.github.com/lukechilds/parcel-plugin-ogimage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukechilds%2Fparcel-plugin-ogimage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270749194,"owners_count":24638673,"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-08-16T02:00:11.002Z","response_time":91,"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":["parcel","parcel-bundler","parcel-plugin"],"created_at":"2024-08-03T18:01:38.984Z","updated_at":"2025-08-16T18:07:57.325Z","avatar_url":"https://github.com/lukechilds.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Other"],"readme":"# parcel-plugin-ogimage\n\n\u003e Set absolute URL for og:image meta tags.\n\n[![Build Status](https://travis-ci.com/lukechilds/parcel-plugin-ogimage.svg?branch=master)](https://travis-ci.com/lukechilds/parcel-plugin-ogimage)\n[![npm](https://img.shields.io/npm/v/parcel-plugin-ogimage.svg)](https://www.npmjs.com/package/parcel-plugin-ogimage)\n\nSets absolute URLs for `og:image` meta tags. This is required by the spec and relative URLs will not work on some sites such as Twitter.\n\nYou can fix this directly in parcel by using `--public-url https://example.com`, however now all your URLs are hardcoded to absolute URLs which may be undesirable and can break things like prerendering.\n\nThis plugin uses the value of the `og:url` meta tag to convert `og:image` to an absolute URL.\n\n## Install\n\n```shell\nnpm install parcel-plugin-ogimage\n```\n\n## Usage\n\nJust install this package as a development dependency. Parcel will automatically call it when building your application.\n\nYou **must** have both `og:image` and `og:url` meta tags:\n\n```html\n\u003cmeta property=\"og:image\" content=\"card.png\"\u003e\n\u003cmeta property=\"og:url\" content=\"https://example.com\"\u003e\n```\n\nParcel will generate that into something like this:\n\n```html\n\u003cmeta property=\"og:image\" content=\"/card.9190ce93.png\"\u003e\n\u003cmeta property=\"og:url\" content=\"https://example.com\"\u003e\n```\n\n`parcel-plugin-ogimage` will then update the `og:image` with an absolute URL:\n\n```html\n\u003cmeta property=\"og:image\" content=\"https://example.com/card.9190ce93.png\"\u003e\n\u003cmeta property=\"og:url\" content=\"https://example.com\"\u003e\n```\n\n## License\n\nMIT © Luke Childs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechilds%2Fparcel-plugin-ogimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukechilds%2Fparcel-plugin-ogimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukechilds%2Fparcel-plugin-ogimage/lists"}