Open Graph preview service running on Cloudflare Workers.
npm install
npm run devCreate a Cloudflare KV namespace and replace the placeholder id for the
OGP_CACHE binding in wrangler.jsonc with the returned namespace ID:
npx wrangler kv namespace create OGP_CACHE
npm run deployThe KV namespace stores fetched page metadata for up to one year. A bounded in-memory LRU cache is also used within each Worker isolate.
https://ogp.chiba.dev/?url=https://github.com
<iframe src="https://ogp.chiba.dev/?url=https://github.com" height="500" style="width: 500px; max-width: 100%;"></iframe>
- as is: ogp.ct.deno.net
- to be: ogp.chiba.dev