Skip to content
chibatPublic

About

Open Graph Preview

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Open Graph Preview

Open Graph preview service running on Cloudflare Workers.

Development

npm install
npm run dev

Deploy

Create 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 deploy

The KV namespace stores fetched page metadata for up to one year. A bounded in-memory LRU cache is also used within each Worker isolate.

Hosted instance

https://ogp.chiba.dev/

Example

URL

https://ogp.chiba.dev/?url=https://github.com

Embed Code

<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

About

Open Graph Preview

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages