Could support for Open Graph - Social Media Tags be added ?

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
web-dev

Research direction

Start with the README and inspect the library's existing metadata helpers to understand its style and public entry points. Define the supported Open Graph, Twitter, and Facebook metadata and the API shape before implementation; done means the requested social-card helpers generate the documented tags and their behavior is covered by appropriate checks.

Written by the indexing model from the issue text.

Description

Hi the lib looks awesome, handling a bunch of things we need to get rolling on the page metadata. After an examination of the README, I noticed there is no mention for Open Graph Metatags or support for especific Social Media Cards like the ones from Twitter or Facebook.

So I want to ask if this could be added to the library, sticking to the lib style, in a way like:

import { xCard, facebookCard } from '@forge42/seo-tools/social-cards';

//...
export const meta: MetaFunction = ({ data }: MetaArgs) => {
    return [
        { title: data.title},
        xCard({...theThingsGoesInHere}),
        facebookCard({...theThingsGoesInHere})
    ];
};

If you think this might be usefull please let me know. I keep forgeting and relearning do this tags everytime, I think this might be usefull for a bunch of folks. And since we are doing Remix and RR7 websites all day long, it makes sense to have this feature on a lib like this. If you think is ok, I would like to make the PR.

Dominant language
TypeScript
Stars
96
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code-forge-io/seo-tools

All issues in code-forge-io/seo-tools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.