Open Graph
Renders Open Graph card images and the meta tags that point at them. One request returns the picture, a sibling request returns the markup that references it.
Two edge services running on cdn.jakelabate.com, each mounted at its own path, each its own Cloudflare Worker and its own repository. Both are open source and free to use.
Renders Open Graph card images and the meta tags that point at them. One request returns the picture, a sibling request returns the markup that references it.
Serves the tagged ctx-cards build and its term packs from a pinned release, so a script tag on your page points at a version that cannot change under you.
One Worker per service, each bound to a path rather than a hostname. A third Worker owns the root and acts as the directory.
cdn.jakelabate.com/open-graph/* Open Graph service
cdn.jakelabate.com/context-cards/* Context Cards service
cdn.jakelabate.com/ directory and catch all
Cloudflare resolves overlapping routes by specificity, so the two service paths win over the catch all. This matters more than it looks: the hostname resolves to a proxied AAAA record at 100::, the IPv6 discard prefix, because a Workers route needs a DNS record to exist but nothing should actually be reachable at it. Without a Worker claiming the remaining paths, any unmatched request would be sent to an address that never answers and return a 522. The catch all turns that into a 404 that names the real mounts.
The alternative would be a Workers custom domain, which claims an entire hostname and provisions its own certificate. That is the simpler option when a host serves one thing. It cannot be used here, because Cloudflare will not attach a second Worker's route to a hostname another Worker holds as a custom domain.
Both services follow the same rules, so behaviour is predictable across paths.
max-age=31536000, immutable. Changing an input produces a different URL and therefore a new response, rather than invalidating an old one.access-control-allow-origin is * on every response, and only GET, HEAD and OPTIONS are accepted./health. It reports the resolved public base, which is the fastest way to confirm routing and configuration agree.Both services are MIT licensed and self-hostable. The Workers are small enough to read in one sitting.
Both of these could be served from a public mirror. Running them on a domain I control means the URL on a page belongs to me, the backing store can change without anyone editing a script tag, and there is no third party in the request path for something a page depends on at render time.
It also means the failure modes are mine to fix. A public CDN going down is an outage you can only wait out. This one I can redeploy.
Both of these are open source Cloudflare Workers. If you want something similar on infrastructure you control, get in touch.