Skip to main content

Link Types & Widgets

okl.ink provides specialized rendering, badges, and icon styling for distinct link types.

Automatic OpenGraph Resolver (/api/og)

When you paste a URL into the link builder, okl.ink triggers an internal server-side metadata resolver:
The server fetches the page safely and scans for:
  • og:image / twitter:image
  • Page <title> and og:title
  • Favicons and apple touch icons

Security & Sanitization

  • Follows up to 5 redirects safely
  • Rejects non-HTTP(S) schemas (javascript:, file:, data:)
  • Enforces a 6-second fetch timeout (AbortController) to prevent SSRF or long-hanging requests
  • Limits parsing to the first 1.5MB of HTML content

Icon Style Variants

Themes support 3 distinct icon treatments:
  1. Duotone: Phosphor-style duotone SVG icons with 20% opacity primary backings and crisp foreground paths.
  2. Filled: Solid glyphs with high contrast accents.
  3. Colored: Authentic brand-colored SVGs (GitHub black, YouTube red, LinkedIn blue, Product Hunt orange).