-
Notifications
You must be signed in to change notification settings - Fork 145
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
Social sharing of pub packages not as rich as sharing a github repo #7886
Comments
Seems like for twitter we need some meta tags: https://developer.x.com/en/docs/twitter-for-websites/cards/guides/getting-started Google chat seems to use opengraph (hinted here https://webapps.stackexchange.com/questions/151458/is-it-possible-to-change-the-image-google-chat-shows-for-a-url-link): https://ogp.me/ ( |
Seems we are already creating these tags, but the content is not as precise as wanted.
We could specialize the image if there is one in the readme or perhaps use one of the screenshots. https://robolly.com/open-graph-preview/?url=https://pub.dev/packages/retry |
I believe the best approach would be adding a new field to the Alternatively, if the |
I think we shouldn't add yet another tag into |
However, the intended semantics of screenshots is to be ... screenshots - not clear that that is the same as a display image. |
But I agree, adding yet another pubspec property just for this also sucks |
+1 to this. Also, the documentation of the
|
We noticed that there are some opportunities to improve the social sharing experience of a pub package hosted on pub.dev. Specifically: more auto-generated context and "splash image" of the pub package.
In comparison, here is what it looks like to share a github project (via X):
Note the large image with content around what the package is, contributors, stars, forks, etc (giving a more accurate impression about the status of the project).
Compare that with a social share from the same project's pub package:
Note the static stock image for "pub", with no package branding/identification/stats
To help people promote their awesome work as hosted on pub.dev, we should consider how to make a more rich "social share snippet image". We can use GitHub as the inspiration here.
Ideally, when sharing a package's pub.dev URL via social services like X, it would be good to:
Thanks for considering!
The text was updated successfully, but these errors were encountered: