Skip to content

Implement dynamic contextual OG Images for share links #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
miurla opened this issue May 15, 2025 · 0 comments
Open

Implement dynamic contextual OG Images for share links #536

miurla opened this issue May 15, 2025 · 0 comments
Labels
enhancement New feature or request ui

Comments

@miurla
Copy link
Owner

miurla commented May 15, 2025

Description

Currently, we have a static OG Image for shared links. We should enhance the social sharing experience by implementing dynamic, contextual OG Images based on the content being shared (search results, chat contexts, etc.).

Proposed Implementation

  • Utilize Next.js's ImageResponse API to generate dynamic OG Images
  • Create route-based dynamic images for:
    • Search results (app/search/[id]/opengraph-image.tsx)
  • Include relevant thumbnails or content previews in the generated images
  • Display key information (search terms, chat topics)
  • Maintain brand consistency with fallback to static image when dynamic content isn't available

Expected Benefits

  • Improved social sharing experience
  • Higher engagement rates when links are shared on social platforms
  • Better visual context for shared links
  • Increased click-through rates

Technical Requirements

  • Use Edge runtime for optimal performance
  • Implement responsive image generation to accommodate different platforms
  • Ensure proper caching strategy
  • Maintain accessibility with appropriate alt text
@miurla miurla added enhancement New feature or request ui labels May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui
Projects
None yet
Development

No branches or pull requests

1 participant