Skip to content

πŸš€ Feature: Add Open Graph and Twitter Card Meta Tags for Social SharingΒ #729

@Jai-Shankar1033

Description

@Jai-Shankar1033

πŸ”– Feature description

πŸ’‘ What I noticed

I tried sharing the GitHub Tracker app link on WhatsApp, Twitter, and LinkedIn and noticed there's no preview card β€” no image, no title, no description. Just a plain URL. This happens because the app is missing Open Graph (OG) and Twitter Card meta tags in index.html.

For a developer tool that people would want to share, this is a big missed opportunity.


πŸš€ What I'm proposing

Add proper Open Graph and Twitter Card meta tags to index.html so when anyone shares the app link on social media or messaging apps, it shows a rich preview card with image, title, and description.


πŸ—οΈ How it would work

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ User shares app link on Twitter β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Twitter reads OG meta tags β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Fetches og:image from public/ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Rich preview card shown to users β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜


πŸ› οΈ Tech Implementation Plan

index.html β€” add inside <head>:

<!-- Primary Meta Tags -->
<title>GitHub Tracker β€” Monitor GitHub User Activity</title>
<meta name="title" content="GitHub Tracker β€” Monitor GitHub User Activity" />
<meta name="description" content="Track and analyze the activity of any GitHub user. Monitor commits, PRs, issues, and repositories in real time." />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://github-spy.netlify.app/" />
<meta property="og:title" content="GitHub Tracker β€” Monitor GitHub User Activity" />
<meta property="og:description" content="Track and analyze the activity of any GitHub user. Monitor commits, PRs, issues, and repositories in real time." />
<meta property="og:image" content="https://github-spy.netlify.app/og-image.png" />

<!-- Twitter Card -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://github-spy.netlify.app/" />
<meta property="twitter:title" content="GitHub Tracker β€” Monitor GitHub User Activity" />
<meta property="twitter:description" content="Track and analyze the activity of any GitHub user. Monitor commits, PRs, issues, and repositories in real time." />
<meta property="twitter:image" content="https://github-spy.netlify.app/og-image.png" />

public/og-image.png:

  • Size: 1200x630px (standard OG image size)
  • Should show the app name, tagline, and a screenshot or logo
  • Can be designed using Figma or Canva and placed in public/

βœ… Acceptance Criteria

  • Open Graph meta tags added to index.html
  • Twitter Card meta tags added to index.html
  • og-image.png (1200x630px) created and placed in public/
  • Preview tested on opengraph.xyz
  • Preview tested on Twitter Card Validator
  • Title and description are accurate and descriptive
  • OG image URL uses the correct deployed domain

πŸ“ˆ Why this matters

Every time someone shares the app link β€” on Twitter, LinkedIn, WhatsApp, Discord, or Slack β€” they get a plain ugly URL instead of a rich preview. Adding OG tags takes less than 30 minutes but makes the app look polished and professional everywhere it gets shared. It's one of the highest ROI changes you can make to a web app.


πŸ”— References


I'd love to work on this if maintainers are open to it. Happy to discuss before starting. πŸ™Œ

🎀 Screenshot

No response

πŸ”„οΈ Additional Information

No response

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions