WarpLink
Concepts

Social Previews

How WarpLink generates rich social previews with Open Graph and Twitter Card tags, so your links look right when shared on social media.

When a WarpLink URL is shared on social media (Twitter, Facebook, Slack, iMessage, etc.), it displays a rich preview card with a title, description, and image. This is automatic — no extra configuration needed.

How It Works

WarpLink detects social media bots by matching the User-Agent against a list of known crawler patterns:

  1. Bot detected — The Worker returns a full HTML page with Open Graph and Twitter Card meta tags
  2. Real user — The Worker returns a 302 redirect to the destination

This split approach ensures:

  • Social platforms get the metadata they need for rich previews
  • Real users get instant redirects without seeing an interstitial page

Bot Detection

The Worker checks the User-Agent against a list of known bot patterns stored in KV (_config:bot-agents). Common patterns include:

  • Twitterbot — Twitter/X card crawler
  • facebookexternalhit — Facebook Open Graph crawler
  • LinkedInBot — LinkedIn preview crawler
  • Slackbot — Slack unfurl crawler
  • WhatsApp — WhatsApp preview crawler
  • Googlebot — Google search crawler

When a bot is detected, the Worker serves HTML instead of a redirect.

Meta Tags

The HTML response includes both Open Graph and Twitter Card tags:

Configuring Previews

Set social preview metadata when creating or updating a link:

If no OG metadata is set on the link, WarpLink uses the destination URL's existing OG tags as fallback.

Best Practices

  • Image size: Use images at least 1200x630px for optimal display across platforms
  • Title length: Keep titles under 60 characters to avoid truncation
  • Description length: Keep descriptions under 155 characters
  • Image format: JPEG or PNG — avoid SVG (not supported by most crawlers)
  • HTTPS images: All image URLs must use HTTPS

On this page