GFA Design System is still in development; component APIs and styles may change in upcoming releases.

Ask a Question
Language

Link preview

Hover an inline link to fetch Open Graph metadata and show a compact preview card in a portal.

Installation

CLI

GFA Studio CLI — Coming soon

The `npx gfa-studio` installer is not published yet. Use Manual install below or download the artifact JSON.

Manual

  1. Copy link-preview.ts, link-preview-text.tsx, and link-preview-card.tsx from apps/web/src/components/gfa/ into your project (adjust @/ imports).
  2. Copy apps/web/src/lib/link-preview.ts and apps/web/src/app/api/link-preview/route.ts; wire GET to getLinkPreview so the client can call /api/link-preview?url=….
  3. Review production safety: outbound fetch timeouts, caching, and SSRF controls for arbitrary URLs before exposing this endpoint publicly.

Step-by-step getting started guide →

Release note

Published
12 May 2026, 15:00(Türkiye — Ankara, Europe/Istanbul)
Last updated
12 May 2026, 15:00(Türkiye — Ankara, Europe/Istanbul)

Instants are stored as UTC (ISO) in the repo; above are the same moments in Türkiye local time. Ankara uses the Europe/Istanbul zone (same offset as İstanbul and the rest of the country).