Skip to content

Generates OpenGraph embeds for avherald.com articles

License

Notifications You must be signed in to change notification settings

Nufflee/EmbedHerald

Repository files navigation

EmbedHerlad

A Cloudflare Worker that generates OpenGraph embeds (metadata) for the amazing avherald.com articles.

Currently hosted on nuff.gay. To use it, simply take an avherald.com URL and replace avherald.com with nuff.gay. For example: https://avherald.com/h?article=50faa50b&opt=0 -> https://nuff.gay/h?article=50faa50b&opt=0 which will yield this beautiful Discord embed:

Discord message showing the generated embed

Running locally

Using npm

$ npm i
$ npm run start-local

Exposing your instance to the Internet

To test your local instance on Discord or similar services, you will need to expose it to the Internet. You can do that using localtunnel by running the following commands concurrently.

$ npx http-proxy -p 8001 6969 # necessary so that the tunnel does not close when restarting the application
$ npx lt -p 8001
$ npm run start-local

Using Docker

$ npm run docker:build
$ npm run docker:run

Using Docker Compose

$ npm run docker:compose

You can find the details of the docker-compose setup in docker-compose.yml.

Deploying on Cloudflare

First, follow the Cloudflare Getting Started guide and create a new worker with the name embedherald (or one of your choosing, in which case you'll need to modify wrangler.toml).

Then, run:

$ npm i
$ npm run deploy

Copyright

I did not write nor do I own any content on https://avherald.com.

About

Generates OpenGraph embeds for avherald.com articles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •