Skip to content

Releases

Metaplate v0.9.2

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:52
00c8002

Metaplate v0.9.2

Metaplate 0.9.2 is a documentation release. Apart from the version number, the library is unchanged from 0.9.1, but the docs now answer the questions a new user hits first: what a plate is, where its files go, whether to draw cards at build time or per request, and how to wire a card into a specific framework. A new Getting started guide walks through a first card from install to the post-deploy check, and new integration guides cover Astro, SvelteKit, React Router, Express, Hono, Fastify, Bun.serve, and Deno.serve.

Upgrade recommendation: Optional. Apart from its version number, the published code is the same as 0.9.1, so upgrading changes nothing at run time. Read the new guides from the links below whichever version you are on.

Why upgrade

  • A starting point that explains the pieces. The old quick start said to write a component without saying where it lives, why the card is split into files, or when the image is drawn. Getting started defines copy, components, plates, contracts, and routes, lays out each file with the reason it exists, and compares build-time and per-request rendering before the first card.
  • One guide per framework. Integrations indexes a guide for each supported framework and host, and each guide follows the same four steps: define the plate, serve the image, point the page at its card, deploy and check.
  • An honest support level on every guide. Each guide states whether it is hosted-certified, locally certified, runtime-certified, or a recipe that nothing in the release gate runs, as defined in the support matrix.

Highlights

Getting started

  • The guide's code is the type-checked examples/getting-started project, and the repository tests fail if the two drift apart. The README quick start follows the same steps.

Integration guides

Keeping the renderer out of browser bundles

  • The guides now have pages import a renderer-free contract made with definePlate from the root metaplate entry, and only image routes import the plate. Framework pages that also run in the browser, such as a SvelteKit +page.svelte or a React Router meta export, no longer pull Satori or Resvg toward the client bundle. card.metadata returns the same metadata as the plate's.

Breaking changes

None.

Install or upgrade

npm install metaplate@0.9.2

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required. Peer ranges are unchanged.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, the full test suite, the build, and the package dry run. npm run check:package installs the packed tarball into fresh consumers and builds and serves the Next.js, Astro, React Router, SvelteKit, Express, and edge fixtures from it.
  • The Getting started example is type-checked and its two cards were rendered and verified at 1200x630. The repository tests check that every integration guide follows the template, states a support level, and is listed in the integrations index. The framework-specific snippets in the integration guides are not compiled or run; the support level on each guide says what the release gate does cover.
  • Socket baseline. Unchanged from 0.9.1: the Socket CLI deep score of the published metaplate@0.9.0, captured 2026-12-02, with the same two time-bounded high dispositions (expiry 2027-04-30) and no critical alerts. No dependency changed in this release.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact.

Documentation and support

Full changelog

Metaplate v0.9.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:42
03f0ef3

Metaplate v0.9.1

Metaplate 0.9.1 makes metaplate render --incremental safe for cards that draw image files. Until now, a card whose artwork or product photo changed under the same path was reused with the old image, because only the copy, the plate's code, and its fonts were part of the cache key. Each card now records the files it read and their contents, and renders again when one changes, and metaplate preview reloads when one of them is edited. The audited Satori release also moves to 0.64.3, which includes a security fix in a Satori dependency.

Upgrade recommendation: Recommended for everyone who uses metaplate render --incremental, and for anyone who wants the patched Satori. There is no migration. The first --incremental build after upgrading renders every image once, and Satori 0.64 can move a card by about a pixel, so compare your cards as the upgrade guide describes.

Why upgrade

  • No more stale cards from changed image files. Re-exporting an SVG or re-cutting a product photo kept its path, so --incremental reported every card unchanged and shipped the old picture. Cards that draw files through readImageAsset or fileImageLoader now render again when those files change, with no new configuration.
  • A way to declare files read with plain fs. A plate that reads a file itself can list it in the new inputs option, and --incremental watches it the same way.
  • A preview that sees image edits. metaplate preview reloaded only when code changed, so a re-exported logo or a new product photo stayed stale in the gallery until you saved a source file. It now reloads when any file a card read changes.
  • Patched Satori. A fresh install now selects Satori 0.64.3, which moves to a patched fflate. The satori peer range is unchanged.

Highlights

Incremental builds that see image files

  • Each manifest entry gains inputs: the files the card read while it rendered, with the SHA-256 of their contents. --incremental reuses a card only while every one of those files still has that hash; a changed or deleted file renders the card again. See Files a card reads.
  • readImageAsset and fileImageLoader from metaplate/assets record each file for the card being rendered, including a fileImageLoader call answered from memory. A file read while the render module loads, such as a logo read at its top level, counts for every card, and a card is not reused when this run's top-level reads differ from the ones it recorded. Renders running at once in one process, through runCli from metaplate/cli, keep each card's files apart, and a later render in the same process still counts the module's top-level reads.
  • createNodeOg, createEdgeOg, and createTakumiOg take inputs: (copy) => paths for files the plate reads with fs. A listed file that cannot be read fails that card, with the reason and where relative paths resolve. Plates gain a matching inputs(copy) member, and RenderInputsOption is exported from metaplate/node, metaplate/edge, and metaplate/takumi.
  • Paths are written relative to the directory the command runs in, with ../ for a file outside it, so cards are reused across checkouts; only a file on another Windows drive or a UNC path keeps its absolute path. The manifest is published with your site unless --manifest points outside --out, so keep it there if image file names are private.
  • Upgrading takumi-js now renders metaplate/takumi plates again. Before, --incremental hashed the Satori and Resvg versions but not Takumi's, and reused every card.
  • Still outside the cache key, as the guide explains: remote images, files read with fs that inputs does not list, and a promise the plate caches itself, which records its file only for the first card. Raise the plate's revision for those. A render repeated in one process draws the bytes its loaders already hold; the next build in a fresh process renders the changed card again.

A preview that reloads on image edits

  • metaplate preview watches the files a card reads through readImageAsset and fileImageLoader, and the files the plate's inputs option names, the same files --incremental records. A file the module reads at its top level is watched as soon as it loads; a card's files join the watch once it renders. A file inputs names is watched even before it exists, so creating it reloads the gallery. See Reloading.
  • The reload imports the module afresh, so a fileImageLoader it creates draws the new bytes. A directory keeps one file watch however many cards read from it, and an inputs that returns something other than file paths fails that card with the message metaplate render gives.

Satori 0.64.3

  • Satori 0.64 lays out at 1/64 px and snaps box edges and text baselines to device pixels, as Chrome does, so a card can differ from its 0.63 rendering by about a pixel. Satori 0.64.1 moves to fflate 0.7.5 (GHSA-px8p-9vwx-vf98).
  • The tests that pin each render guard to Satori's real behavior, and the parity budget that holds metaplate/takumi to metaplate/node, pass on it. Run npm install satori@0.64 to move an existing project.

Breaking changes

None.

Manifests written by earlier versions have no inputs, so the first --incremental build after upgrading renders every image once. See Upgrading.

Install or upgrade

npm install metaplate@0.9.1

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required. Peer ranges are unchanged.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, the full test suite, the build, and the package dry run. npm run check:package installs the packed tarball into fresh consumers, with Satori 0.64.3 selected, and builds and serves the Next.js, Astro, React Router, SvelteKit, Express, and edge fixtures from it.
  • The incremental fix is covered end to end through the spawned CLI, including files read at module load, renders running at once and one after another in one process, a deleted input, manifest paths on Windows, and a real createNodeOg plate drawing a changed SVG. The reproduction from issue #229 was confirmed against the built package, and an independent pre-release review of everything since 0.9.0 found no release blocker. Its findings are fixed or documented in this release, including making metaplate preview reload when an image file changes. The preview change is tested against a spawned CLI whose card shows the bytes of the file it reads.
  • npm audit --audit-level=high reports no vulnerabilities.
  • Socket baseline. It is the Socket CLI deep score of the published metaplate@0.9.0, captured 2026-12-02. The package scores 79 overall, and its own alerts are unpopularPackage (medium) and urlStrings (low). Two high dependency alerts carry time-bounded dispositions that expire 2027-04-30. string.prototype.codepointat, under the Satori peer, carries over: Satori 0.64.3 still reaches it through @shuding/opentype.js. obfuscatedFile now names caniuse-lite@1.0.30001829, reached only through the optional next peer and development tooling. A tarball diff against the reviewed 1.0.30001828 shows only its version and ten packed data files changed, with every decoder byte-identical, and it was published through npm trusted publishing with SLSA provenance. There are no critical alerts. The deep score raises no alert on the optional takumi-js peer, but Socket's export does not list the packages it resolved, so it does not show whether that peer was scored.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact.

Documentation and support

Full changelog

Metaplate v0.9.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 08:39
d55f450

Metaplate v0.9.0

Metaplate 0.9.0 is the Cloudflare Workers release. The experimental metaplate/takumi entry renders cards on a Worker with Takumi's precompiled WebAssembly. For Next.js on Workers through OpenNext, the new definePlate lets pages import a plate's URL contract without its renderer, while the build prerenders the cards. metaplate render can now write the social tags into static HTML pages. metaplate verify-page can treat a staging site's robots block as expected. fetchImageLoader loads per-page images safely on any Fetch runtime. Two new render guards, fontFallback and lineClamp, catch text Satori draws in the wrong font or without the clamp you asked for.

Upgrade recommendation: Recommended for everyone, and worth a look if you deploy to Cloudflare Workers or an edge runtime. There is no runtime migration. TypeScript code that switches exhaustively over RenderGuardIssue["guard"] needs "fontFallback" and "lineClamp" cases. Scripts that parse the text output of verify-page for robots lines should read its --json output instead.

Why upgrade

  • Cards on Cloudflare Workers. metaplate/edge cannot start on Workers. Satori's bundled HarfBuzz compiles its WebAssembly at run time, which Workers forbid. metaplate/takumi renders there through a precompiled module, with the same plate surface as createEdgeOg.
  • Safe remote images on edge runtimes. remoteImageLoader needs Node's DNS and sockets, so edge plates had to hand-write their own fetch. fetchImageLoader brings the same allowlist, redirect, byte, and time limits to the Fetch API.
  • Next.js on Workers without drift. Pages on a Worker must not import the renderer, so they rebuilt image metadata by hand and restated the plate's imagePath, version, and revision. definePlate is the plate's contract with no renderer attached. Pages and the build share it, so their URLs cannot drift apart.
  • Silent rendering mistakes are caught. A typo in fontFamily, a weight the family lacks, or a lineClamp on a flex column used to render with no error. The fontFallback and lineClamp guards report them.

Highlights

Rendering on Cloudflare Workers (experimental)

  • createTakumiOg from metaplate/takumi renders plates with Takumi (takumi-js, a new optional peer, >=2.22.1 <3). It supports variants, handlers, fetchableFrom, ETags, output encoders, languageFonts, and every render guard except avoid. Emoji come from the plate's own emoji loader and never from a CDN. Takumi itself fetches nothing: an image src or CSS url() that is not a data: URI fails the render before any request, so remote images go through fetchImageLoader with its allowlist. Fonts must be TrueType, OpenType, or WOFF2. See Takumi.
  • Takumi lays out like a browser in a few places where Satori does not. It defaults to box-sizing: border-box, keeps an image's width in a flex row, and fails on a truncated image instead of drawing part of it. The guide lists every difference and shows how to compare a plate with compareImages before switching.
  • On the Workers Free plan, a warm render measured about 13 ms of CPU, against the documented 10 ms limit. Serve cards with long-lived Cache-Control and an ETag, put them behind the Cache API, or render at build time. The Paid plan fits uncached rendering easily. The entry is not hosted-certified: the evidence is a spike Worker in production and a test that bundles the entry with Wrangler's workerd conditions and checks that it carries Takumi's WebAssembly module and no Node built-ins.
  • A new parity suite renders 16 plates through both metaplate/node and metaplate/takumi and holds each to its own pixel budget. A takumi-js or satori update that moves layout fails before it merges.

Next.js on Cloudflare Workers, and static pages

  • definePlate in the root metaplate entry returns a plate's URL and metadata contract (alt, size, variants, imagePath, basePath, origin, version, revision, contentType) with the plate's metadata, signedMetadata, image, sitePath, and variant members. It imports no renderer. Spread it into createNodeOg, createEdgeOg, createTakumiOg, createSvgOg, or createNextOg and add fonts and component. Both sides run the same metadata code, and a test compares them across 288 option combinations. A factory throws when the contract's contentType is not what it serves. See A contract without a renderer.
  • A new guide, Next.js on Cloudflare Workers, covers the hybrid setup for @opennextjs/cloudflare. Cards are rendered into public/ before the build and served as Workers static assets. Pages import only the contract, and verify-page checks the result after deploying.
  • A metaplate render page can name an html file and its page-level tags. The command then writes the plate's social <meta> tags between <!-- metaplate:social --> markers, or before </head> the first time. og:image carries the same ?v= URL the render recorded. Re-running writes the same bytes, and a page is written atomically and only after all of its images succeed. Malformed markers, a missing </head>, or a hand-written og:image outside the block fail the run before anything renders. See Writing tags into static HTML.

Staging checks with verify-page

  • metaplate verify-page prints one robots.txt line per crawler, listing the page and image URLs it blocks. It used to print the same block up to once per target and image.
  • --expect-robots-block (expectRobotsBlock in verifyRemotePage) is for sites that block crawlers on purpose. A block is reported as expected, and the run fails when a crawler can fetch the page. --json adds a crawler field to robots issues, a per-crawler expectation, and a robots-not-blocked issue code; no field is removed. See Sites that block crawlers on purpose.

Remote images on Fetch runtimes

  • fetchImageLoader in metaplate/image is remoteImageLoader built on the Fetch API, for Cloudflare Workers (with metaplate/takumi), Netlify Edge, Deno, and Vercel Edge. It keeps the required origins allowlist, the URL, scheme, credential, and port checks, redirects re-checked on every hop, a byte cap enforced from Content-Length and while streaming, one time budget, and the bounded cache. It reports the same RemoteImageError codes, which metaplate/image now also exports. Fetch runtimes hide DNS, so it refuses only hosts written as non-public IP addresses or localhost names, and the allowlist is the boundary. See Edge runtimes.

Reliability

  • The fontFallback guard, for createSvgOg, createNodeOg, createEdgeOg, and createTakumiOg, reports each font request that no loaded face satisfies, as missing: "family" or missing: "face", with the loaded faces listed. It follows inline styles down the tree, calls nested function components, and counts faces from languageFonts as loaded. Like every guard, it is off by default. See Render guards.
  • The lineClamp guard reports a clamp or ellipsis that Satori ignores and draws in full: lineClamp on an element whose display is not block, WebkitLineClamp without -webkit-box, textOverflow: "ellipsis" without overflow: "hidden" and a non-wrapping whiteSpace, and a clamp whose text sits inside a child element. A test renders every case through Satori, so a Satori update that changes these rules fails it. On Takumi, which clamps more cases, the guard applies Satori's rules so a plate stays portable.
  • The rendering guide said plates have no stylesheet. Custom properties declared in the plate resolve in every adapter, and <style> elements apply in createSvgOg, createNodeOg, and createEdgeOg on Satori 0.51.0 or later. Only the site's own CSS is out of reach. createNextOg is the exception, and tests now pin each behavior.

Breaking changes

None at run time. Two changes may need attention:

  • RenderGuardName gains "fontFallback" and "lineClamp", and RenderGuardIssue gains a member for each. TypeScript code with an exhaustiveness check over issue.guard needs a case for each. Both guards are off by default.
  • The text output of metaplate verify-page shows each robots.txt block once per crawler, with only the deciding rule. Scripts that parse those lines should read --json, which only gains fields. Its RobotsIssueCode type gains "robots-not-blocked", so an exhaustive switch over issue codes needs a case for it.

The existing peer ranges are unchanged. See Upgrading.

Install or upgrade

npm install metaplate@0.9.0

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required. takumi-js is optional and is only needed for metaplate/takumi. Add it with npm install takumi-js when you use that entry.

Verification

  • npm run check passes: lint, ...
Read more

Metaplate v0.8.4

Choose a tag to compare

@github-actions github-actions released this 10 Nov 04:19

Metaplate v0.8.4

Metaplate 0.8.4 is a security and correctness release. A signed image route no longer becomes unsigned when you add .cached() to it. The render cache and metaplate render --incremental no longer serve one copy's image for another, and metaplate render no longer replaces a good card with one that fails its checks. It also adds checkUrl to verifySocialImage, so render, preview, and your own tests handle local and relative image URLs the same way.

Upgrade recommendation: Recommended for everyone, and urgent if you use signed image routes with plate.cached(). One behavior change: cached() now throws for copy that holds a function. Expect one round of cache misses, and a full first --incremental build, after upgrading.

Why upgrade

  • Signed routes stay signed. From JavaScript, plate.cached().handlerFrom(resolve, { signed }) silently dropped { signed } and served unsigned requests. The cached routes now check the signature before resolving copy or reading the cache.
  • The right image for each copy. Copies that differed only in key order shared a cache entry and an incremental hash. A component that reads that order could be served, or left with, the other copy's image.
  • A failed render keeps the previous card. metaplate render used to write each image before checking it, so a card that failed its format, size, or --target check had already overwritten the last good one.

Highlights

Security

  • A cached view's handlerFrom and fetchableFrom take the same { signed } option as the plate's, on metaplate/node and metaplate/edge. A missing or invalid signature gets the configured 403 or 404 with Cache-Control: no-store, and neither the resolver nor the cache runs. Secret rotation and a custom URL extractor work as before. See Signed image routes.

Correctness

  • Cache and incremental identity. Both key copy by its object keys in insertion order, at every depth, instead of sorting them. A function in copy, whose captured values its source cannot show, makes cached() throw a TypeError naming it, and makes --incremental always render that page. Copy-derived URL versions (version: "copy") still sort keys, so published ?v= tokens are unchanged. See Caching renders.
  • Atomic image writes. metaplate render runs every check on the bytes first, then writes to a temporary file beside the target, reads it back, checks it again, and renames it into place. A failed image keeps its previous file. Each image is atomic; a run of many is not, and the render guide explains how to publish all or nothing.
  • HEAD requests. A cached HEAD response has the GET response's headers, ETag and Content-Length included, and no body.
  • Image versions. Array holes serialize as null, as JSON.stringify writes them, so Array(1) no longer versions like []. A toJSON that returns its own object now throws the usual circular-reference error instead of overflowing the stack.
  • One URL rule. verifySocialImage accepts checkUrl and checkAlt. metaplate render --target and metaplate preview --target check the image URL only when it is absolute HTTPS, so a plate with an http://localhost origin or root-relative URLs no longer fails every card.
  • Preview and the export audit. metaplate preview without a JSX loader tells you to restart under one instead of to save. The testing guide's export audit passes non-HTTPS builds, checks that each page names its own card, fails a page with no og:image:alt, and reports instead of crashing on a relative og:image or a missing width.

Breaking changes

One behavior change: plate.cached() throws a TypeError for copy that holds a function, where it used to cache it under the function's source text and could serve the wrong image. Pass the data the function uses instead. No other API changes, and peer ranges are unchanged.

Upgrading changes every render-cache key and --incremental input hash once, so a shared cache store misses once and the first incremental build renders everything. See Upgrading.

Install or upgrade

npm install metaplate@0.8.4

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, 1,369 tests, the build, and the package dry run. npm run check:package installs the packed tarball into fresh consumers and builds and serves the Next.js, Astro, React Router, SvelteKit, Express, and edge fixtures from it.
  • Each fix has a regression test that fails on 0.8.3. The signed-route and HEAD fixes were also reproduced and confirmed from plain JavaScript against the built package.
  • Socket baseline. It is the Socket CLI deep score of the published metaplate@0.8.3, captured 2026-11-09. The package scores 80 overall; its own alerts are recentlyPublished and unpopularPackage (medium) and urlStrings (low). The same two high dependency alerts carry time-bounded dispositions that expire 2027-04-30: string.prototype.codepointat, under the Satori peer, and tslib@2.9.1's ownership change, reached only through optional and development dependencies. tslib was re-checked against current registry metadata, and nothing has changed. There are no critical alerts.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact.

Documentation and support

Full changelog

Metaplate v0.8.3

Choose a tag to compare

@github-actions github-actions released this 10 Nov 02:46

Metaplate v0.8.3

Metaplate 0.8.3 catches more broken cards in the build step and says clearly what is wrong. metaplate render can now fail a card that breaks a platform's published rules, such as WhatsApp's 600 KB limit, in the same step that writes it. Two error messages that sent people to the wrong fix now name the real problem. The release also adds five guides drawn from how real projects use Metaplate, each checked against a packed tarball.

Upgrade recommendation: Recommended for sites that render cards at build time with metaplate render, and for anyone setting up a static Next.js site. No migration is needed.

Why upgrade

  • A card over a platform's limit fails the build. Before, metaplate render passed a 916 KB card with a tick, and only a second metaplate verify --target step, repeating every size, caught it. Now --target whatsapp on the render does it.
  • Errors that point at the real fix. A title too long for its card no longer gets advice to add a boxSizing the root already has, and metaplate verify without --size says so instead of printing only the usage line.
  • Guides for the setup most projects use. Every project we looked at was a static Next.js export, and each had worked out its own setup. The new guides walk through that path, give a recipe for each common design, and say which check catches what.

Highlights

Platform checks in metaplate render

  • metaplate render --target TARGET (repeatable) and --max-file-size BYTES apply the checks metaplate verify --target makes to every file the render writes. A file that fails counts as a failed image: it is reported, the command exits 1, and no manifest is written. See Formats and verification.
  • The image URL is checked only when it is absolute (when the plate sets origin). A root-relative URL is resolved by the page that publishes it, as Next.js does with metadataBase.
  • An image reused by --incremental is checked again, because targets are not part of its input hash.

Clearer errors

  • The overflow render guard advises boxSizing: "border-box" only when the plate's root is larger than the canvas. Otherwise it says the text needs more room than its container has, and suggests shorter text, a smaller font size, or lineClamp.
  • metaplate verify and verify-url given a file or URL before any --size now fail with --size WIDTHxHEIGHT is required before the first file (...), naming it.
  • metaplate render's error for a .tsx module now names the route that works on every platform: runCli from metaplate/cli under tsx.

New guides

  • Static Next.js sites covers a site built with output: "export" from the first file to the post-deploy check, compares the five ways to produce cards, and ends with a troubleshooting table. Its complete example is type-checked in the repository.
  • Card recipes: text beside a photograph, photos of any shape, logos, long titles, several fonts, brand colors, one card per record, and a remote image that may be missing.
  • Testing your cards says what each check catches, with a unit test, an offline audit of a whole export, and a browser test.
  • Upgrading lists every breaking change since 0.2.0 with what to do, and shows how to compare cards before and after an upgrade.
  • The plate reference lists every option and returned member by factory.

Reliability and safety

  • The docs now say that verifySocialImage fails a plate's root-relative URLs under its crawler-ready check, and give three ways to handle it.
  • The plate constraints are corrected: an inline SVG <title> shows as text only through createNextOg. They now add that an <img> stretches without objectFit, and that CSS variables and unloaded fonts are ignored with no error.
  • Tests keep the code quoted in the guides identical to the type-checked examples, keep the plate reference in step with each factory's members, and check every link between guides.

Breaking changes

None.

Install or upgrade

npm install metaplate@0.8.3

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required.

Peer ranges and entry points are unchanged from 0.8.2.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, 1,355 tests, the build, and the package dry run. npm run check:package installs the packed tarball into fresh consumers and builds and serves the Next.js, Astro, React Router, SvelteKit, Express, and edge fixtures from it.
  • Socket baseline. It is the Socket CLI deep score of the published metaplate@0.8.2, captured 2026-11-09. The package scores 79 overall; its own alerts are recentlyPublished and unpopularPackage (medium) and urlStrings (low). The same two high dependency alerts as 0.8.2 carry time-bounded dispositions that expire 2027-04-30: string.prototype.codepointat, under the Satori peer, and tslib@2.9.1's ownership change, reached only through optional and development dependencies. tslib was re-checked against current registry metadata, and nothing has changed. There are no critical alerts. Socket scores only published packages, so 0.8.3 is scored after publication.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact.

Documentation and support

Full changelog

Metaplate v0.8.2

Choose a tag to compare

@github-actions github-actions released this 04 Nov 19:51

Metaplate v0.8.2

Metaplate 0.8.2 is the first release from the repository's new home, freeknet/metaplate. The library is unchanged from 0.8.1. The package metadata, the documentation and security reporting links, and the metaplate/edge runtime error message now point at the new repository, and the npm provenance attestation names it as the source.

Upgrade recommendation: Optional. Upgrade if you follow the links in the package page, the README, or the metaplate/edge error message, or if you check that the provenance source matches the repository. No migration is needed.

Why upgrade

  • Links that point at the current repository. npm's package page, the README, the docs, and the metaplate/edge error message for runtimes that forbid run-time Wasm compilation now link to freeknet/metaplate directly. The old lnorton89/metaplate links still redirect.
  • Provenance that matches the repository. The npm provenance attestation and package.json's repository.url both name freeknet/metaplate, so a check that compares them passes.

Highlights

Repository move

  • The repository moved from lnorton89/metaplate to freeknet/metaplate. Issues, pull requests, releases, and history moved with it, and GitHub redirects the old URLs.
  • Report vulnerabilities through private vulnerability reporting on the new repository.

Reliability and safety

  • Publishing still runs only from the release workflow, now through an npm trusted publisher bound to freeknet/metaplate, with no stored npm token.

Breaking changes

None.

Install or upgrade

npm install metaplate@0.8.2

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required.

Peer ranges and entry points are unchanged from 0.8.1.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, 1,341 tests, the build, and the package dry run.
  • Socket baseline. It is the Socket CLI deep score of the published metaplate@0.8.1, captured 2026-11-04. The package scores 79 overall; its own alerts are unpopularPackage (medium) and urlStrings (low). The same two high dependency alerts as 0.8.1 carry time-bounded dispositions that expire 2027-04-30: string.prototype.codepointat, under the Satori peer, and tslib@2.9.1's ownership change, reached only through optional and development dependencies. tslib was re-checked against current registry metadata, and nothing has changed. There are no critical alerts. Socket scores only published packages, so 0.8.2 is scored after publication.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact, which confirms that the provenance names freeknet/metaplate.

Documentation and support

Full changelog

Metaplate v0.8.1

Choose a tag to compare

@github-actions github-actions released this 04 Nov 02:09

Metaplate v0.8.1

Metaplate 0.8.1 closes the gaps found by putting 0.8.0 into production on a real Next.js static export. Three new render guards catch text that sits in a crop strip, crowds other text, or runs under a photo. --require-content now checks JPEG cards. verify takes directories and globs, so it works in npm scripts on Windows, and runCli runs any command from a script without a shell. verify-page reads the twitter:image type and size that Next.js emits, and stops warning about formats it has already measured.

Upgrade recommendation: Recommended for every 0.8.0 user. The satori peer floor rises to 0.38.2: if your project pins an older Satori, upgrade it first (see Breaking changes).

Why upgrade

  • Catch broken cards that stay inside the canvas. overflow only sees text that leaves the image. The new safeArea, textOverlap, and avoid guards fail a footer pushed into the strip X's 2:1 crop removes, a line crowding the one below it, and a headline running under a photo.
  • Check JPEG cards after the build. The rendering guide recommends JPEG for photographic cards, and --require-content now decodes JPEG as well as PNG, so a blank JPEG card fails the build.
  • See what a dependency upgrade changed. Guards say nothing is broken, not that nothing moved. metaplate verify --baseline compares every card with a saved copy and fails the ones that changed, with a picture of each change, so a Satori, Resvg, or font upgrade cannot quietly shift every card.
  • Verify every card from any shell, or from code. metaplate verify out/og and metaplate verify "out/og/*/og-image.jpg" work in npm scripts on Windows, where cmd.exe expands nothing. runCli from metaplate/cli runs the same commands in-process.

Highlights

Render guards

  • safeArea reports text outside the area that the centered 2:1 crop (X summary_large_image) and the 1.91:1 crop (Open Graph) both keep. For 1200x630 that removes 15px from the top and bottom, the same crops metaplate preview overlays. { level, inset } sets your own margin instead.
  • textOverlap reports two text elements whose boxes intersect.
  • avoid: { level, keys, gap } reports text within gap pixels of an element whose React key is listed, such as key="photo" on an <img>.
  • All three run in createSvgOg, createNodeOg, and createEdgeOg, and each issue lists the text and its box. See Render guards.
  • metaplate/node and metaplate/edge now export the SatoriOptions and SatoriLayoutNode types, so satori: { onNodeDetected } no longer needs a cast to Satori's own SatoriOptions, which requires width, height, and fonts.

Image and page checks

  • verify --baseline DIR compares cards with a baseline. Each PNG or JPEG is matched with the file at the same relative path in DIR. A card fails when more of its pixels changed than --max-diff allows (default 0), when it has no baseline, or when a baseline file has no card. --threshold sets how far a channel may move before a pixel counts as changed: 0 for PNG by default, and 16 when either side is a JPEG, so re-encoding noise does not count. --write-diff DIR writes the baseline, the current card, and the changed pixels in red side by side, and --update-baseline rewrites the baseline after review. compareImages from metaplate/node runs the same comparison in tests. JPEGs are fully decoded with no new dependency, within a few levels of libjpeg. See Compare against a baseline.
  • --require-content decodes JPEG. Baseline and progressive Huffman JPEGs are supported, with any chroma subsampling, restart markers, grayscale, and Adobe CMYK, and no new dependency. A JPEG fails only when every 8x8 block of every channel holds the same flat value, so a card with any detail never fails. WebP and GIF still fail with the flag, and that error now points to the plate's guards: { blank: "error" }. See Require visible content.
  • verify takes directories and globs. A directory stands for every image file below it (limited to --format when given). Globs support *, ?, **, [...], and {a,b}. Files are checked in sorted order, once each. See Directories and globs.
  • metaplate/cli (new entry) exports runCli(args, { stdout, stderr }). It resolves to the exit code, leaves process.exitCode alone, and keeps concurrent calls apart. See Run the CLI from a script.
  • verify-page reads twitter:image:type, :width, and :height. Next.js metadata emits them for a JPEG plate, and they are now checked against the fetched bytes like the og:image:* properties. When a page declares no type, target format rules read the fetched bytes instead of warning that compatibility "cannot be confirmed". See Page audits.

Breaking changes

  • The satori peer range is now >=0.38.2 <1 (was >=0.33.3 <1). Releases below 0.38.2 drop content without an error, and no guard can see it:

    • before 0.38.2, inset is ignored, so an inset: 0 overlay collapses to 0x0;
    • through 0.35.1, color: "transparent" text, the usual way to draw outline type with WebkitTextStroke, draws nothing;
    • 0.35.2 to 0.37.0 fail on import under Node ESM;
    • before 0.38.2, a fragment is laid out as a box of its own.

    Each was checked on Satori 0.33.5 through 0.63.2. This is a peer contract change in a patch release; a project on an older Satori gets a peer-dependency warning (or an ERESOLVE error under strict peers) until it upgrades.

  • verify-page target format results change for undeclared types. A page with no og:image:type now passes universal when the fetched image is PNG or JPEG (it was an error), and x now fails an undeclared SVG (it was a warning). socialImageCompatibility and verifySocialImage are unchanged.

Upgrade advice: run npm install satori@0.63 if npm ls satori shows a release below 0.38.2. Then re-run your verify-page --target checks once.

Install or upgrade

npm install metaplate@0.8.1

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required.

Peer changes: satori rises to >=0.38.2 <1 (audited release 0.63.2). @resvg/resvg-wasm and next stay optional and unchanged.

New entry point: metaplate/cli.

Verification

  • npm run check passes: lint, the duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, 1,341 tests, the build, and the package dry run.
  • npm run check:package installs the exact local tarball into clean consumers and builds, serves, and fetches images from every framework fixture.
  • The full JPEG decode behind --baseline was compared with libjpeg (Pillow) on baseline 4:2:0, progressive 4:2:2, 4:4:4, and grayscale images: every channel of every pixel was within 4 levels, and the test suite checks two of those against libjpeg's own output.
  • The JPEG content check was compared with libjpeg (Pillow) on 400 random JPEGs: baseline and progressive, every chroma subsampling, grayscale, CMYK, and restart intervals, flat and with one changed pixel. It agreed on every file.
  • Socket baseline. It is the Socket CLI deep score of the published metaplate@0.8.0, captured 2026-11-03. The package scores 78 overall; its own alerts are recentlyPublished (medium) and urlStrings (low). The same two high dependency alerts as 0.8.0 carry time-bounded dispositions that expire 2027-04-30: string.prototype.codepointat, under the Satori peer, and tslib@2.9.1's ownership change, reached only through optional and development dependencies. Socket scores only published packages, so 0.8.1 is scored after publication.
  • Hosted deployments. After publication, the Vercel, Netlify, and Deno Deploy fixtures are redeployed with the published 0.8.1 and checked for status, media type, dimensions, response headers, distinct bytes per slug, and non-blank content. That evidence is recorded in .planning/hosted-evidence/.
  • npm registry signature and SLSA provenance verification run after publication, against the published artifact.

Documentation and support

Read more

Metaplate v0.8.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 06:52

Metaplate v0.8.0

Metaplate 0.8 is the largest release so far. Plates now render on Deno-based edge runtimes, write and verify static files from one command, cache their renders, and guard against blank or broken cards. Metadata gains page tags, X player and app cards, Open Graph video and audio, JSON-LD, Adaptive Cards, versioned and signed image URLs, and a live preview. metaplate verify-page audits a deployed page the way crawlers read it. Hosted deployments on Vercel, Netlify, and Deno Deploy are certified for the first time.

No export is removed and every 0.7 plate keeps rendering, but a few checks are stricter (see Breaking changes).

Upgrade recommendation: Recommended for every 0.7 user. Read the behavior changes below if you rely on socialImageCompatibility results for discord or x, on font loaders accepting unusual bytes, or on raw characters in relative image paths.

Why upgrade

  • Run where your site runs. metaplate/edge renders through @resvg/resvg-wasm on Deno-based edges (hosted-certified on Netlify Edge Functions and Deno Deploy). The satori peer range widens from >=0.33.3 <0.34 to >=0.33.3 <1, so a current Satori no longer conflicts.
  • Ship static cards safely. metaplate render writes every page and size, verifies each file on disk, and records a manifest that a failed run never leaves stale.
  • Catch broken cards before crawlers do.
    • Render guards fail a card with overflowing text, missing glyphs, or a single color.
    • verify-page audits a deployed page's tags, images, and robots.txt access for each platform.
    • The compatibility profiles now encode Discord's and X's documented image rules.
  • Describe everything platforms read:
    • page-level Open Graph and article: tags;
    • X player and app cards;
    • Open Graph video and audio;
    • Schema.org JSON-LD;
    • Teams Adaptive Cards.

Highlights

Rendering

  • Edge runtimes. metaplate/edge (new entry) renders PNG through @resvg/resvg-wasm and Satori's standalone build.
    • The caller supplies both Wasm modules.
    • It is hosted-certified on Netlify Edge Functions and Deno Deploy.
    • Cloudflare Workers and Vercel Edge forbid compiling Wasm at run time and are not supported.
    • See Edge runtimes.
  • Render guards (guards: { overflow, missingGlyphs, blank }) report or fail a render whose text leaves the canvas, whose text no font covers, or whose image is a single color. RenderGuardError names the problem.
  • Render caching.
    • plate.cached() renders each distinct copy once. It serves strong ETags with 304/412 handling, through a bounded LRU or your own store.
    • metaplate render --incremental reuses files whose inputs and bytes are unchanged.
  • Images and assets.
    • Plate components may be async.
    • imageAsset and imageAssetLoader embed checked image bytes.
    • The new metaplate/assets entry reads project files and allowlisted remote images.
  • Emoji render as images from an installed set (packageEmojiLoader) or from bytes you serve (metaplate/emoji, a new entry).
  • Other scripts. languageFonts renders Japanese, Korean, Chinese, Arabic, Hebrew, Thai, Devanagari, and more from installed Fontsource packages, offline. Before, that text drew missing-glyph boxes.
  • Size variants. One plate can declare square and landscape sizes, with per-size paths, alt text, and metadata.

Static files and preview

  • metaplate render <module> renders every page and size of a render module into --out. It verifies each file's hash, format, and dimensions as read back from disk, and writes metaplate-manifest.json atomically.
    • A failing run removes the old manifest.
    • A file whose extension would make a static host serve the wrong type is refused.
    • See Render CLI.
  • metaplate preview <module> serves a live local gallery: every page and size, with its metadata, verification results, Satori debug boxes, and crop overlays. It reloads when the module changes.

Metadata and URLs

  • Page tags. socialMetaTags and socialMetaHtml serialize validated page-level fields (title, description, URL, locale, article: times and tags, theme-color). metaplate/next maps them to Next's Metadata and Viewport.
  • X player and app cards, Open Graph video and audio, Schema.org JSON-LD (socialImageJsonLd), and Teams Adaptive Cards (socialImageAdaptiveCard).
  • Versioned image URLs. version: "copy" adds a content-derived ?v= token so crawlers refetch a changed card. revision covers changes the copy can't show.
  • Signed image routes. signImagePath and verifyImageSignature (HMAC-SHA-256 via Web Crypto, with secret rotation) stop anyone else from rendering arbitrary copy on your route.

Image and page checks

  • metaplate verify-url fetches a deployed image through a hardened fetcher and runs the same checks as verify. The fetcher:
    • blocks private addresses and pins DNS;
    • checks redirects, byte limits, and timeouts;
    • decodes gzip, deflate, and br bodies.
  • metaplate verify-page audits a deployed page:
    • It reads the page's social tags with a parser that follows the HTML spec closely.
    • It verifies every image the page names.
    • It checks each platform crawler's robots.txt access (RFC 9309).
    • It warns when tags sit past a crawler's read limit.
  • Compatibility profiles.
    • New targets: teams, whatsapp, bluesky, telegram, threads, and pinterest.
    • discord and x now check those platforms' documented image rules.
    • --require-content fails a blank PNG.

Deployment evidence

  • Hosted certifications, all dated 2026-11-01:
    • Vercel Functions (Node.js runtime);
    • Next.js 16.4.3 on Vercel;
    • Netlify Functions and Netlify Edge Functions;
    • Deno Deploy (both renderers);
    • Bun and Deno runtime smokes of the packed tarball, now required CI checks.
  • Local packed-artifact fixtures:
    • Next.js static export and next start;
    • Astro static and @astrojs/node server;
    • React Router 8 resource routes;
    • SvelteKit 3 +server routes;
    • Express;
    • an edge consumer.
  • See Framework and runtime support and Deployment.

Fixes

  • metaplate/next now imports next/og.js, so it works in plain Node (scripts and test runners that don't bundle) and under NodeNext types.
  • An SVG with a fractional size no longer fails verifySocialImage and verify-page.
  • A trailing --size or --format that no file follows is an error instead of being ignored.
  • metaplate <command> --help succeeds.

Breaking changes

No export is removed and no signature narrows. These behavior changes can alter the results of existing calls:

  • Font loaders reject non-font bytes. Every loader throws a TypeError for bytes that are not TrueType, OpenType, WOFF, or WOFF2, where Satori used to render the text as nothing. A failed font fetch (an HTML error page, an empty body) now fails the render instead of caching a blank card.
  • discord checks formats. It now requires PNG, GIF, JPEG, WebP, or AVIF instead of reporting an unknown contract.
  • x checks X's Card image rules. It now requires JPG, PNG, WEBP, or GIF (SVG fails), under 5MB, 144x144 to 4096x4096 pixels, and alt text of at most 420 characters. Before, it checked only the URL and alt text.
  • Relative image paths are percent-encoded. socialImagePath without an origin now encodes spaces, control characters, and non-ASCII, exactly as the absolute URL always did. A route such as /a b now yields /a%20b/og-image.

Upgrade advice: run your existing socialImageCompatibility and metaplate verify --target checks once after upgrading. If x now fails an SVG card, render PNG or JPEG for it.

Install or upgrade

npm install metaplate@0.8.0

That single command still includes the framework-neutral SVG and PNG renderer: npm 7+ and pnpm 8+ install the satori, @resvg/resvg-js, and react peers. Yarn needs them added explicitly. Node.js 20 or newer is required.

Peer changes:

  • satori widens to >=0.33.3 <1. The audited release is 0.63.2; metaplate/edge needs 0.35.2 or newer. To move an existing project to the audited line, run npm install satori@0.63.
  • @resvg/resvg-wasm (>=2.6.2 <3) is a new optional peer, needed only by metaplate/edge: npm install @resvg/resvg-wasm.
  • next (>=16.3.2 <17) stays optional and is still supplied by Next applications.

New entry points: metaplate/edge, metaplate/emoji, and metaplate/assets.

Verification

  • npm run check passes:

    • lint;
    • a zero-tolerance duplication scan;
    • workflow pin policy;
    • dependency inventory and Socket disposition policy;
    • deployment evidence policy;
    • release-note validation;
    • source and example type checks;
    • 1,286 tests;
    • build;
    • the package dry run.
  • npm run check:package installs the exact local tarball into clean consumers. It then builds, serves, and fetches images from every fixture listed above, and runs metaplate/next in plain Node.

  • npm run release:evidence re-runs the build, packed-artifact, inventory, deployment, Socket, and workflow checks, records each result with its output, and binds the bundle, including every artifact's SHA-256, to the release commit.

  • Hosted certifications. These ran on 2026-11-01 from pre-release 0.8.0 tarballs, packed at commits 4135f77 (Vercel), 4b04f90 and 697f6f7 (Netlify), and 36be0e9 (Deno Deploy). Each recorded:

    • status, media type, and dimensions;
    • response headers;
    • distinct bytes per slug;
    • a decoded check that each image is not blank.

    Raw outputs are in [`.planning/hosted-eviden...

Read more

Metaplate v0.7.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 20:11

Metaplate v0.7.0

Metaplate 0.7 makes deployed social images verifiable end to end: the bytes a route serves, the metadata a page publishes, the headers a provider forwards, and the dependency tree behind the package are now checked by the same executable contracts, locally and in CI.

Upgrade recommendation: Recommended for every 0.6 user. Callers who configure Content-Type, Content-Length, Content-Encoding, or ETag through headers on createNodeOg, or who pass a custom output.contentType, must review the breaking changes below.

Why upgrade

Deploying an Open Graph route used to mean trusting that the image a function rendered matched the descriptor the page advertised and that the provider did not rewrite the response. Version 0.7 turns those assumptions into checks. verifySocialImage verifies encoded bytes against the published descriptor and the platform profiles in one report, artifact() returns bytes and metadata from the same copy so they cannot drift, and Node responses own their representation headers and can carry deterministic strong ETags.

The release also adds provider-neutral Fetchable route handlers, corrects the Vercel and Netlify examples against their documented conventions, verifies GIF files structurally, and ships an auditable supply-chain baseline: a dependency inventory derived from the lockfile, a Socket score artifact with dispositions for every high or critical alert, pinned CI actions, and release evidence bound to the commit that produced it.

Highlights

One verification contract for bytes and metadata

  • verifySocialImage(bytes, descriptor, { targets, maxFileSize }) from the root entry checks dimensions, media type, byte length, and every selected compatibility profile together. Structural image failures still throw; metadata and compatibility findings are returned for CI reporting.
  • metaplate verify gains --json for one stable report per file, repeatable --target profiles, --url and --alt descriptor fields, --max-file-size, and --format gif. File-level validity is reported separately from per-target compatibility, and metadata flags are rejected without a target rather than silently ignored.
  • GIF87a and GIF89a files are walked block by block: global and local color tables, graphic control, application, comment, and plain-text extensions, image data sub-blocks, and the trailer.
  • socialImageCompatibility accepts descriptors without a URL or alt text through checkUrl/checkAlt, and LinkedIn checks warn when an image drifts from the documented 1.91:1 aspect ratio.

Deployment contracts that match provider conventions

  • fetchable(copy) and fetchableFrom(resolve) on both createNodeOg and createNextOg return the { fetch } shape that Fetch-style providers consume directly. See the deployment routes guide, which now ships in the npm package.
  • The Vercel example consumes a Web Request per the Vercel Node.js runtime reference; the Netlify example reads params from the second context argument per the Netlify Functions configuration reference. Both forms, plus an Express service in the shape Railway documents, are exercised against the packed tarball, rendering two slugs per route to prove the request reached the copy resolver.
  • artifact(route, copy) returns bytes, byte length, format, content type, dimensions, descriptor metadata, and an optional ETag from one render.
  • Node responses now set Content-Length, never set Content-Encoding, and with etag: "sha256" (or etag: true) carry a strong ETag computed from the final encoded bytes.
  • Edge runtimes remain explicitly unsupported for the native renderer, and hosted provider certification is not claimed: the shipped evidence is local packed-contract evidence only.

Reliability and safety

  • Empty custom encoder output and syntactically invalid custom media types fail at definition or render time instead of becoming HTTP responses.
  • Content-Type, Content-Length, and Content-Encoding can no longer be configured through headers; previously a caller Content-Type was silently overwritten.
  • The CLI usage line, README, and CHANGELOG document every new flag and export.

Supply-chain and release evidence

  • npm run check:dependencies derives a reachability inventory from package-lock.json (regular, peer, optional-peer, optional, and development edges), requires every package to resolve to the npm registry with a sha512 integrity, forbids git, URL, and file dependencies, and takes hasInstallScript only from the lockfile so the inventory is identical on every platform. The published runtime dependency count is zero.
  • The official Socket baseline for metaplate@0.6.0 is committed as a hash-bound score artifact. Every high or critical alert must match exactly one disposition by type, package, version, and dependency path; critical alerts block release. The single high alert (a maintenance upgrade signal in a transitive Satori dependency) is an expiring, evidence-backed exception.
  • npm run check:workflows requires every GitHub Actions reference to be pinned to a full commit SHA, and CI runs npm audit signatures so every installed package carries a valid registry signature and, where published with provenance, a verifiable attestation.
  • npm run release:evidence re-runs the build, packed-artifact, inventory, deployment, Socket, and workflow checks, records each result with captured output, and writes a report bound to the commit and version. CI retains the bundle even when a check fails, and the bundle verifier rejects failed, foreign, or incomplete reports.

Breaking changes

  • createNodeOg throws a TypeError at definition time when headers contains Content-Type, Content-Length, or Content-Encoding, or contains ETag while automatic etag generation is enabled. Remove those headers; Metaplate sets the first two itself and never sets encoding. A caller ETag still passes through when etag is off.
  • A custom output.contentType must be a syntactically valid media type.
  • socialImageCompatibility throws a TypeError when the descriptor lacks width or height.

Install or upgrade

npm install metaplate@0.7.0

That single command includes the framework-neutral SVG and PNG renderer. Next
applications continue to supply their own compatible next dependency.

Verification

  • npm run check passes lint, a zero-tolerance duplication scan, workflow pin policy, dependency inventory and Socket disposition policy, deployment evidence policy, release-note validation, source and example type checks, 377 tests, build, and a 34-file package dry run.
  • npm run check:package passes against the exact local tarball: lean and standalone consumers, offline Next static export, Astro static build, Express service, React Router resource route, and the Vercel handlerFrom, Vercel Fetchable, and Netlify context.params deployment fixtures with image and response-header evidence.
  • npm run release:evidence records six passed release checks and a verified evidence bundle; CI uploads the bundle on every run.
  • The Socket score artifact is historical 0.6.0 evidence captured on 2026-08-25 and is not presented as a fresh scan of this release; refreshing it requires an authenticated Socket export.
  • npm registry signature and SLSA provenance verification run automatically after publication and remain the final release check because they cannot execute before the public artifact exists.

Documentation and support

Full changelog

Metaplate v0.6.0

Choose a tag to compare

@github-actions github-actions released this 25 Aug 00:41

Metaplate v0.6.0

Metaplate 0.6 turns image verification into a consistent SVG, PNG, JPEG, and WebP release gate while tightening the structural guarantees introduced in 0.5.

Upgrade recommendation: Recommended for every 0.5 user. Next 15 users and callers using Resvg crop or dimension-changing fitTo settings must review the breaking changes below.

Why upgrade

The 0.5 verifier reliably caught truncation but still accepted several specification-invalid headers and container layouts. Version 0.6 closes those false-positive build checks, adds SVG verification, improves CLI discoverability and font-language support, and promotes a real Next static export into packed-package verification.

The release also turns social metadata from a one-image shortcut into a configurable Open Graph/X model, adds honest target-aware compatibility diagnostics, and proves the packed package through real Astro and Express integrations.

Highlights

One verifier for SVG and raster output

  • metaplate verify and metaplate/image now verify SVG dimensions and root structure in addition to PNG, JPEG, and WebP.
  • SVG handling uses a conservative non-expanding parser boundary: unsafe declarations, malformed roots, and missing or non-positive pixel dimensions are rejected.
  • --format svg lets SVG-only createSvgOg builds use the same check as raster pipelines.

Stronger container guarantees

  • PNG now enforces valid IHDR color/depth combinations, compression/filter/interlace methods, palette requirements and ordering, zlib window limits, and known critical chunks.
  • WebP now enforces extended-canvas area, animation controls and frame bounds, zero RIFF padding, and VP8 first-partition bounds at the top level and inside VP8X/ANMF.
  • JPEG now rejects zero-sized frame headers.
  • The hardened replay rejects all 15 malformed containers from the 0.5 audit while preserving every real fixture and legal edge case.

Better package ergonomics

  • npm install metaplate now supplies React, Satori, and Resvg automatically;
    users no longer have to identify and install renderer packages themselves.
    Next remains application-supplied and optional.
  • Package fonts preserve the optional BCP 47 lang tag used by Satori font selection.
  • Fontsource users now provide only the font id and desired face; Metaplate
    reads the installed package metadata and WOFF path. Project files and
    framework-provided bytes have dedicated memoized loaders, including a
    runtime-neutral entry with no Node built-ins.
  • metaplate --help and metaplate --version are successful discovery commands.
  • Packed-package verification first proves the one-command npm install against
    the registry, then performs a network-free real Next static export with
    lockfile-verified local peers and checks its generated Open Graph image and metadata.
  • Framework recipes now link directly to the matching official Next.js, Astro,
    React Router, SvelteKit, and Express contracts, with Metaplate's tested
    runtime boundary alongside each link.
  • Versioned, highlights-first release notes are now validated locally and in the publish workflow, with a draft-release workflow ensuring the GitHub release is reviewable before publication.
  • Shared renderer construction, compatibility profiles, package fixture
    definitions, and image builders now have one tracked source each; the release
    gate rejects newly duplicated implementation blocks.
  • Publication now finishes with an automated clean registry install plus npm
    signature, SLSA provenance, public export, peer, and CLI verification. The
    same verifier is replayed against the local tarball in pull-request CI.

Configurable social delivery

  • Open Graph can carry ordered landscape, square, and fallback image descriptors while X uses an independent image when needed.
  • X Cards support summary and summary_large_image, plus site/creator names and IDs.
  • X-first XCard and XImageOptions types accompany the protocol-compatible
    Twitter aliases, and the README maps Open Graph/X channels to their platform
    consumers.
  • The old one-image call remains the default and source-compatible; channel overrides are copied into independent descriptors.
  • socialImageCompatibility reports universal and platform-specific URL, format, dimension, and file-size problems without inventing Discord or Instagram metadata contracts.

Framework and runtime confidence

  • handlerFrom derives copy from sync or async Astro, SvelteKit, React Router/Remix-style, and Next route arguments while preserving the fixed-copy handler API.
  • Packed-package verification now builds Astro 7 metadata and a static image endpoint, serves a real Express 5 route, and type-generates, typechecks, builds, and fetches a React Router 7 resource route.
  • The certified React Router 7 fixture now uses Vite 7.3.6 and fails if Vite's
    deprecated envFile warning returns.
  • The runtime matrix distinguishes Node-compatible adapters from edge environments where native Resvg is unsupported.
  • Dynamic-route guidance covers bounded copy, caching, concurrency/timeouts, and allowlisted remote assets.

Breaking changes

  • Satori, Resvg, and React are now required peer dependencies, so npm installs
    the complete renderer stack with Metaplate. This deliberately increases the
    footprint of metadata-only installs in exchange for a one-command setup.
  • metaplate/next now supports the audited and release-tested Next >=16.3.2 <17 line. Next 15 is no longer claimed because its remaining transitive advisories fail the release security gate.
  • Resvg crop and dimension-changing fitTo settings now fail at plate creation. Define the intended output through the plate's size so rendered bytes and metadata cannot disagree.

Install or upgrade

npm install metaplate@0.6.0

That single command includes the framework-neutral SVG and PNG renderer. Next
applications continue to supply their own compatible next dependency.

Verification

  • npm run check passes lint, a zero-tolerance duplication scan, source and
    example type checks, 240 tests, build, and a 33-file package dry run.
  • npm run check:package passes against the exact local tarball, including standalone declaration consumers, offline Next static export, Astro static build, Express HTTP route, and React Router resource route.
  • The malformed-input replay rejects 15 of 15 invalid containers and 316 of 316 truncation samples.
  • npm registry signature/provenance verification runs automatically after
    publication and remains the final release check because it cannot execute
    before the public artifact exists.

Documentation and support

Full changelog