Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

metaplate

Latest version: v0.9.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: lnorton89
1 Stars
0 Forks
16 Versions
682 Downloads
TypeScript Repo language

Scan summary

metaplate was last scanned on 26 Nov 2026 at version 0.9.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 0.9.0.
  • Downloads: 682 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.0 LATEST 26 Nov 2026 No rules fired
0.8.4 10 Nov 2026 1 rule fired
0.8.3 10 Nov 2026 1 rule fired
0.8.2 4 Nov 2026 Not shown
0.8.1 4 Nov 2026 Not shown

No rules fired in 0.9.0

Findings

Findings for v0.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.9.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Metaplate

CI CodeQL npm License: MIT

Composable, framework-neutral Open Graph image tooling for TypeScript.

Define your social images once. Render, serve, and publish them consistently across your TypeScript app.

Metaplate turns a single branded JSX plate into the complete Open Graph image pipeline. Use the same definition to render SVG or raster images in several sizes, serve them from Node-compatible or edge routes, generate matching Open Graph and X metadata, emit the <meta> tags, manage fonts, produce predictable image URLs, and verify the files you ship, locally or at a deployed URL.

The same metadata also produces Open Graph video and audio tags, X player and app cards, Schema.org ImageObject JSON-LD, and Adaptive Cards for Teams, Slack, and Discord previews.

It works with plain Node, static build scripts, Next.js, Astro, React Router, SvelteKit, Express, Bun, and Deno, and on Deno-based edges such as Netlify Edge Functions and Deno Deploy, without tying your image design to a single framework.

Contents

  • Install
    • Dependency behavior
  • Quick start
  • Where to go next
  • Guides
    • Rendering and routes
    • Static files with metaplate render
    • Live preview with metaplate preview
    • Signed image routes
    • Framework and runtime support
    • Edge runtimes
    • Next.js
    • Square and landscape variants
    • Metadata and meta tags
    • X player and app cards
    • Social compatibility profiles
    • Teams, Slack, and Discord previews
    • Schema.org image metadata
    • Fonts
    • Emoji
    • Verifying images
    • Deployment routes
  • Entry points
  • License

Install

One command installs Metaplate's complete framework-neutral renderer stack:

npm install metaplate

Metaplate needs Node.js 20 or newer. With npm 7+ (and pnpm 8+), that also installs compatible versions of satori, @resvg/resvg-js, and react automatically, deduplicated against compatible versions already in the application. Package managers that do not install peers, such as Yarn, need them added explicitly:

yarn add metaplate satori @resvg/resvg-js react
Dependency behavior

next and @resvg/resvg-wasm are the optional peers: Next applications already own their framework version, non-Next applications should not download it, and only metaplate/edge needs the WebAssembly renderer. The renderer peers are bounded to the release-tested major/minor lines instead of silently accepting unknown breaking releases.

Dependencies load only when their entry point renders, so importing metadata helpers does not initialize Satori or Resvg's native binding. Plain { type, props } authoring also remains independent of React APIs and React types; the React runtime is included by the install so JSX works immediately.

metaplate/next no longer re-exports ImageResponse. Import it from next/og directly if a plate needs it:

import { ImageResponse } from "next/og";

Quick start

Define the design once with createNodeOg. The component is Satori-compatible JSX, not browser DOM: containers with more than one child use flex, and a root that fills the card with padding needs boxSizing: "border-box" (see plate constraints). The font comes from Fontsource, so install it too: npm install @fontsource/inter (see the fonts guide).

// src/lib/og.tsx
import { fontsourceFontLoader } from "metaplate/fonts";
import { createNodeOg } from "metaplate/node";

export const og = createNodeOg<{ title: string; alt: string }>({
  alt: (copy) => copy.alt,
  fonts: fontsourceFontLoader([{ font: "inter", weight: 700 }]),
  headers: { "Cache-Control": "public, max-age=86400" },
  component: (copy) => (
    <div
      style={{
        boxSizing: "border-box",
        width: "100%",
        height: "100%",
        display: "flex",
        alignItems: "center",
        background: "#111",
        color: "#fff",
        fontFamily: "Inter",
        fontSize: 72,
        padding: 72,
      }}
    >
      {copy.title}
    </div>
  ),
});

The same plate renders bytes, a complete artifact with its metadata, and Fetch API responses for any framework route:

const png: Uint8Array = await og.render(copy);
const svg: string = await og.renderSvg(copy);
const artifact = await og.artifact("/posts/hello", copy);
const response: Response = await og.response(copy);
const fetchable = og.fetchableFrom((request: Request) => ({
  title: new URL(request.url).pathname,
  alt: "Social card",
}));

Where to go next

  • A static Next.js site? Static Next.js sites takes you from the first file to the post-deploy check, with a complete, type-checked example.
  • Next.js on Cloudflare Workers? Next.js on Cloudflare Workers renders the cards before an OpenNext build and keeps the renderer out of the Worker with a definePlate contract.
  • A particular design? Card recipes covers text beside a photograph, long titles, several fonts, one card per record, and more.
  • Making sure a card never ships broken? Testing your cards shows which check catches what, including an offline audit of a whole export.
  • On an older version? Upgrading lists each breaking change and how to compare your cards before and after.
  • Looking up an option or method? The plate reference lists them all, and the API reference lists every export.

Guides

Each guide below is a summary; the linked page has the full reference.

Rendering and routes

render returns PNG by default, and an output encoder produces JPEG, WebP, or anything else from the same raw pixels. handler and handlerFrom plug into Fetch-based routes in Next.js, Astro, React Router, and SvelteKit, and render feeds Express or a build script. plate.cached() renders each distinct copy once, keyed by the plate's design and the copy, answers If-None-Match with 304 Not Modified, and keeps a signed route signed. Plates are Satori layouts, not DOM, so read the plate constraints before designing one. Opt-in render guards fail or report a card with text no font covers, text in a font family, weight, or style that was never loaded, text laid out off the canvas or outside the crop-safe area, overlapping text, or (Node and edge) a single-color image, instead of shipping it; they are off by default and unavailable through metaplate/next. Rendering guide

Static files with metaplate render

metaplate render renders a whole site's cards for static hosting. It loads a module whose default export is { plate, pages: [{ route, copy }] }, writes every page at every size to the path its metadata URL names, verifies each file, and records them in a checksummed manifest. --target also fails a card that breaks a platform's rules, such as WhatsApp's 600 KB limit. --incremental re-renders only the pages whose copy, plate, or installed renderer changed.

npx metaplate render og.render.mjs --out public

Render CLI guide

Live preview with metaplate preview

metaplate preview serves a local gallery of the same render module: every page at every size with its metadata and --target checks, a switch for Satori's layout debug boxes, and 1.91:1, 2:1, and 1:1 crop overlays. Saving the module or a local file it imports reloads every open gallery.

npx metaplate preview og.render.mjs

Preview guide

Signed image routes

A dynamic image route can refuse every URL your pages did not emit. plate.signedMetadata(route, copy, { secret }) signs each image URL with HMAC-SHA-256 as an extra path segment, and plate.handlerFrom(resolve, { signed: { secret } }) answers an unsigned or tampered path with 403 before resolving copy or rendering. It runs on Web Crypto in Node and on the edge, supports secret rotation, and is opt-in; static files need none of it. Signed routes guide

Framework and runtime support

Every supported framework and runtime is listed with the official reference it follows and the release evidence behind it, from packed-tarball fixtures to dated hosted deployments. Support matrix

Edge runtimes

metaplate/edge renders the same plates through @resvg/resvg-wasm with no Node built-ins. It runs on Deno-based edges such as Netlify Edge Functions and Deno Deploy, and not on Cloudflare Workers or Vercel Edge, which forbid the run-time WebAssembly compilation Satori needs. Edge guide

The experimental metaplate/takumi renders the same plates with Takumi instead of Satori and Resvg. Takumi's precompiled Wasm runs on Cloudflare Workers. Takumi guide

Next.js

metaplate/next renders through Next's own next/og pipeline and keeps the same route and metadata pattern. The guide also covers static export with basePath and JPEG or WebP cards through the Node renderer. Next.js guide

Square and landscape variants

One plate can declare variants such as a 1080x1080 square beside the 1200x630 card. The component receives { variant, size } and lays out each size itself, and plate.variant(name) gives the full plate API for one size. Variants guide

Metadata and meta tags

The root metaplate entry builds Open Graph and X metadata with no renderer or framework, including per-channel images and Open Graph video and audio. socialMetaTags and socialMetaHtml emit the <meta> tags for pages that write their own <head>, including validated og:locale, article:, and Discord accent-color and timestamp tags. An opt-in version, or a plate's version: "copy", adds a ?v= token to published image URLs so crawlers that cache images by URL fetch a changed card, while file paths stay unchanged. Metadata guide

X player and app cards

twitter.card can be "player" or "app", with the payload each one requires checked against X's published rules. nextTwitterMetadata maps them to Next.js metadata. X cards guide

Social compatibility profiles

socialImageCompatibility checks an image descriptor against each platform's published preview rules, such as LinkedIn's minimum size, Discord's accepted formats, or WhatsApp's 600 KB limit, without network requests. Platforms that publish no rules, such as Instagram and Telegram, are reported as unknown. Profiles guide

Teams, Slack, and Discord previews

Chat clients build link previews from the same meta tags, so no app is needed. For bots and webhooks, socialImageAdaptiveCard builds an Adaptive Card from the same metadata. Chat previews guide

Schema.org image metadata

socialImageJsonLd describes the same images as a schema.org ImageObject in JSON-LD, and socialImageJsonLdScript serializes it safely for a <script> tag. JSON-LD guide

Fonts

Satori needs the bytes of every face it renders. Loaders read them from project files, Fontsource, other npm packages, or bytes you supply, and memoize one copy for every render. The languageFonts plate option draws Japanese, Arabic, Hebrew, and other scripts the plate's fonts lack, offline: fontsourceLanguageFontLoader reads only the Noto subset files the copy needs from installed Fontsource packages. Fonts guide

Emoji

The emoji plate option draws emoji as images instead of missing-glyph boxes. packageEmojiLoader from metaplate/fonts reads them offline from a set the application installs, such as @twemoji/svg, and emojiLoader from metaplate/emoji takes any source, including your own origin on an edge runtime. Metaplate bundles no artwork; the guide covers each set's license. Emoji guide

Verifying images

metaplate verify checks generated files for dimensions, format, structure, and platform rules, and metaplate verify-url runs the same checks on a deployed URL under a hardened fetch policy. metaplate verify-page audits a whole page: it reads the page's og:image, twitter:card, twitter:image, and JSON-LD images and verifies every image they name. verify takes files, directories, and globs, and --require-content decodes PNG and JPEG and fails an image whose every pixel is the same color. --baseline DIR compares each card with a saved copy and fails one that changed, with a side-by-side diff image, so a Satori or font upgrade cannot change cards unnoticed. runCli from metaplate/cli runs any command from a script without a shell. In code, verifySocialImage checks bytes against their published descriptor, and its checkUrl: false skips the HTTPS rule for a local or CI build that is never crawled. Verification guide and page audit guide

Deployment routes

Use a real .png or .jpg file on static hosts, the provider's Node runtime for metaplate/node, and metaplate/edge on Deno-based edges. Hosted certifications cover Vercel Functions, Next.js on Vercel, Netlify Functions, Netlify Edge Functions, and Deno Deploy, each from a dated deployment whose sources are in examples/hosted. The current status of every route is in deployment-evidence.json. Deployment guide

Entry points

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm metaplate

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229