Gathering detailed insights and metrics for gatsby-remark-twitter-cards
Gathering detailed insights and metrics for gatsby-remark-twitter-cards
Gathering detailed insights and metrics for gatsby-remark-twitter-cards
Gathering detailed insights and metrics for gatsby-remark-twitter-cards
Gatsby remark plugin for generating Twitter card graphics 📇
npm install gatsby-remark-twitter-cards
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
20 Stars
68 Commits
3 Forks
1 Watchers
8 Branches
1 Contributors
Updated on Dec 15, 2024
Latest Version
0.6.1
Package Id
gatsby-remark-twitter-cards@0.6.1
Unpacked Size
1.19 MB
Size
1.19 MB
File Count
8
NPM Version
6.14.6
Node Version
12.18.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
gatsby-remark-twitter-cards
is a Gatsby plugin that allows you to create individual open graph twitter card images at build time for inclusion in your site's SEO metadata. It generates cards as JPGs with embedded text in the recommended size of 1200px x 630px.
It uses the wasm-twitter-card
library under the hood: by using Rust libraries compiled to WebAssembly, we can work around some of the limitations of the most popular dependency-free image editing library for Node.js, jimp.
It can be added to your remark plugins in gatsby-config.js
like so:
1 plugins: [ 2 // ... 3 { 4 resolve: `gatsby-transformer-remark`, 5 options: { 6 plugins: [ 7 { 8 resolve: `gatsby-remark-twitter-cards`, 9 options: { 10 title: 'anti/pattern', // website title 11 separator: '|', // default 12 author: 'alessia bellisario', 13 background: require.resolve('./content/assets/base.png'), // path to 1200x630px file or hex code, defaults to black (#000000) 14 fontColor: '#228B22', // defaults to white (#ffffff) 15 titleFontSize: 96, // default 16 subtitleFontSize: 60, // default 17 fontStyle: 'monospace', // default 18 fontFile: require.resolve('./assets/fonts/someFont.ttf'), // will override fontStyle - path to custom TTF font 19 useFrontmatterSlug: false // default, if true it will use the slug defined in the post frontmatter 20 }, 21 }, 22 ], 23 }, 24 }, 25 ],
Option | Required | Type | Default value |
---|---|---|---|
title | ❌ | string | "" |
separator | ❌ | string (character that separates title and author) | `" |
author | ❌ | string | "" |
background | ❌ | hex or file path | "#000000" |
fontColor | ❌ | hex | "#ffffff" |
titleFontSize | ❌ | int | 96 |
subtitleFontSize | ❌ | int | 60 |
fontStyle | ❌ | "monospace" or "sans-serif" | monospace |
fontFile | ❌ | path to TTF font file | ❌ |
The images will be saved in your site's /public
folder, and the link to your twitter:image
should be an absolute URL (something like ${siteUrl}${blogPostSlug}twitter-card.jpg
) E.g. for this blog post the generated image can be found at the link https://aless.co/how-to-build-a-keyboard/twitter-card.jpg.
Further instructions on how to include open graph images in the metadata of your Gatsby blog can be found in the excellent documentation of the plugin that inspired this one, gatsby-remark-social-cards
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
36 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More