
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
mightyshare
Advanced tools
Generate social share images for your blog posts, articles, and more with MightyShare. Our easy to use API allows you to generate images with text, colors, and images. Perfect for setting your open graph tags on your website.
Sign up for an API key and secret at MightyShare.io.
npm install mightyshare
import MightyShare from 'mightyshare';
// API key from MightyShare.io
const mightyshare = MightyShare(API_KEY);
const options = {
height: 630,
width: 1200,
template: 'standard-1',
template_values: [
{
"name": "primary_color",
"color": "#C18651"
},
{
"name": "title",
"text": "8 Stunning Beaches to Visit this Summer"
},
{
"name": "background",
"image_url": "https://images.unsplash.com/photo-1652953552047-d8fe57042a3a?crop=entropy&cs=tinysrgb&fm=jpg&ixlib=rb-1.2.1&q=80&raw_url=true&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1800"
},
{
"name": "logo",
"image_url": "https://mightyshare.io/wp-content/uploads/2022/05/your-logo-mightyshare-1.png"
}
]
}
const imageUrl = mightyshare.generateUrl(options);
console.log(imageUrl);
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.