Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/og

Package Overview
Dependencies
Maintainers
217
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/og - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

package.json
{
"name": "@vercel/og",
"version": "0.5.0",
"version": "0.5.1",
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser",

@@ -62,3 +62,3 @@ "type": "module",

"@resvg/resvg-wasm": "2.4.1",
"satori": "0.4.4",
"satori": "0.4.7",
"yoga-wasm-web": "0.3.3"

@@ -65,0 +65,0 @@ },

# Open Graph Image Generation
Generate Open Graph images with Vercel’s [Edge Function](https://vercel.com/docs/concepts/functions/edge-functions).
Generate Open Graph images with Vercel’s API route functions
## Quick Start
Install `@vercel/og`, then use it inside an API route with **Edge Runtime** configured in your Next.js project:
Install `@vercel/og`, then use it inside an API route in your Next.js project:

@@ -13,6 +13,2 @@ ```jsx

export const config = {
runtime: 'experimental-edge',
}
export default function () {

@@ -47,3 +43,3 @@ return new ImageResponse(

`@vercel/og` only supports the [Edge Runtime](https://vercel.com/docs/concepts/functions/edge-functions/quickstart). The Node.js runtime will not work.
`@vercel/og` supports both [Node.js Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/node-js) and [Edge Runtime](https://vercel.com/docs/concepts/functions/edge-functions/edge-runtime).

@@ -50,0 +46,0 @@ The package exposes an `ImageResponse` constructor, with the following options available:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc