A basic, lightweight link preview API initially designed for rendering link embeds in SLChat.
- Supports OpenGraph and Twitter Card metadata formats.
- Returns a clean, basic JSON structure with missing fields as null.
- No Selenium or browser automation used.
- Optional raw
<head>extraction mode.
Request:
/?url=https://www.planetminecraft.com/
Response:
{
"site": "Planet Minecraft",
"title": "Planet Minecraft Community | Creative fansite for everything Minecraft!",
"description": "Planet Minecraft is a family friendly community that shares and respects the creative works and interests of others. We have a variety of entertaining...",
"image": "https://www.planetminecraft.com/images/layout/themes/modern/planetminecraft_logo.png",
"theme": "#3366CC"
}Request:
/?raw=true&url=https://ogp.me/
Request:
/?discord=false&url=https://ogp.me/
Originally developed as a subproject in the SLChat-External repository to reduce SLChat's reliance on third-party services.
It was later moved to this repository to prevent unnecessary Cloudflare build triggers on unrelated commits within SLChat-External.
At the time, I wasn't aware that Cloudflare supported build watch paths, which would have made this move unnecessary.