ogpeek
ogpeek parses, fetches, and validates OpenGraph tags from any URL. The fetcher traces redirects with timeout and size caps, the parser is tolerant of real-world markup, and the validator catches common OGP spec violations. One external dependency, runs on Node and edge runtimes alike.
$ npm install ogpeek
Quick start
import { parse } from "ogpeek";
import { fetchHtml } from "ogpeek/fetch";
const { html, finalUrl } = await fetchHtml(url);
const result = parse(html, finalUrl);