Skip to content

feat: Open Graph & Social Card Preview — see how your link looks on Twitter, Slack, Discord #84

Description

@ajithakdev

Summary

Add an Open Graph & Social Card Preview tool. Every modern web app needs social share cards, but debugging broken previews after deploying to production is frustrating. This tool lets developers preview exact card rendering across platforms before deploying.

Proposed Implementation

  • Location: src/tools/og-preview/OgPreviewTool.tsx
  • Zero dependencies — HTML template rendering
  • Features:
    • Input form for:
      • og:title (with character limit indicator — 60 chars optimal)
      • og:description (with char limit — 160 chars optimal)
      • og:image (URL or drag-drop preview)
      • og:url, og:type, og:site_name
      • Twitter card type (summary vs summary_large_image)
      • Author, canonical URL
    • Live previews rendered as pixel-accurate mockups:
      • 🔍 Google Search result
      • 🐦 X (Twitter) card
      • 📘 Facebook / LinkedIn share
      • 💬 Discord / Slack embed
    • Generate HTML <meta> tags — copy to clipboard
    • Generate Next.js metadata export object
    • Generate Nuxt useHead() snippet
    • Validation warnings (title too long, missing image, description truncated)

Acceptance Criteria

  • All 4 platform previews render correctly
  • Character limits shown with visual indicators
  • Generated meta tags are valid HTML
  • Next.js and Nuxt export formats work
  • Image preview renders from URL input
  • Registry entry

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnew toolA new tool addition to the toolkit

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions