Repository navigation
Releases
Metaplate v0.9.2
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-startedproject, and the repository tests fail if the two drift apart. The README quick start follows the same steps.
Integration guides
- Astro endpoints (Astro endpoints), locally certified on Astro 7 with
@astrojs/node11. - SvelteKit
+serverroutes (SvelteKit routing), locally certified on SvelteKit 3 withadapter-node6. - React Router resource routes (resource routes), locally certified on React Router 8 framework mode.
- Express (Express 5 response API), locally certified on Express 5.
- Other servers: Hono and Fastify as recipes, and
Bun.serveandDeno.serveon the runtime-certifiedmetaplate/node.
Keeping the renderer out of browser bundles
- The guides now have pages import a renderer-free contract made with
definePlatefrom the rootmetaplateentry, and only image routes import the plate. Framework pages that also run in the browser, such as a SvelteKit+page.svelteor a React Routermetaexport, no longer pull Satori or Resvg toward the client bundle.card.metadatareturns the same metadata as the plate's.
Breaking changes
None.
Install or upgrade
npm install metaplate@0.9.2That 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 checkpasses: 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:packageinstalls 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
- README, Getting started, and Integrations
- Framework and runtime support
- Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.9.1
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--incrementalbuild 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
--incrementalreported every card unchanged and shipped the old picture. Cards that draw files throughreadImageAssetorfileImageLoadernow 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 newinputsoption, and--incrementalwatches it the same way. - A preview that sees image edits.
metaplate previewreloaded 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. Thesatoripeer 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.--incrementalreuses 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. readImageAssetandfileImageLoaderfrommetaplate/assetsrecord each file for the card being rendered, including afileImageLoadercall 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, throughrunClifrommetaplate/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, andcreateTakumiOgtakeinputs: (copy) => pathsfor files the plate reads withfs. A listed file that cannot be read fails that card, with the reason and where relative paths resolve. Plates gain a matchinginputs(copy)member, andRenderInputsOptionis exported frommetaplate/node,metaplate/edge, andmetaplate/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--manifestpoints outside--out, so keep it there if image file names are private. - Upgrading
takumi-jsnow rendersmetaplate/takumiplates again. Before,--incrementalhashed 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
fsthatinputsdoes not list, and a promise the plate caches itself, which records its file only for the first card. Raise the plate'srevisionfor 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 previewwatches the files a card reads throughreadImageAssetandfileImageLoader, and the files the plate'sinputsoption names, the same files--incrementalrecords. 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 fileinputsnames is watched even before it exists, so creating it reloads the gallery. See Reloading.- The reload imports the module afresh, so a
fileImageLoaderit creates draws the new bytes. A directory keeps one file watch however many cards read from it, and aninputsthat returns something other than file paths fails that card with the messagemetaplate rendergives.
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
fflate0.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/takumitometaplate/node, pass on it. Runnpm install satori@0.64to 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.1That 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 checkpasses: 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:packageinstalls 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
createNodeOgplate 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 makingmetaplate previewreload 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=highreports 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 areunpopularPackage(medium) andurlStrings(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.obfuscatedFilenow namescaniuse-lite@1.0.30001829, reached only through the optionalnextpeer 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 optionaltakumi-jspeer, 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
- README and Upgrading
- Incremental builds, Previewing plates, and Project files with
metaplate/assets - Satori releases
- Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.9.0
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 ofverify-pagefor robots lines should read its--jsonoutput instead.
Why upgrade
- Cards on Cloudflare Workers.
metaplate/edgecannot start on Workers. Satori's bundled HarfBuzz compiles its WebAssembly at run time, which Workers forbid.metaplate/takumirenders there through a precompiled module, with the same plate surface ascreateEdgeOg. - Safe remote images on edge runtimes.
remoteImageLoaderneeds Node's DNS and sockets, so edge plates had to hand-write their ownfetch.fetchImageLoaderbrings 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.definePlateis 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 alineClampon a flex column used to render with no error. ThefontFallbackandlineClampguards report them.
Highlights
Rendering on Cloudflare Workers (experimental)
createTakumiOgfrommetaplate/takumirenders 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 exceptavoid. Emoji come from the plate's own emoji loader and never from a CDN. Takumi itself fetches nothing: an imagesrcor CSSurl()that is not adata:URI fails the render before any request, so remote images go throughfetchImageLoaderwith 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 withcompareImagesbefore 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-Controland 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'sworkerdconditions and checks that it carries Takumi's WebAssembly module and no Node built-ins. - A new parity suite renders 16 plates through both
metaplate/nodeandmetaplate/takumiand holds each to its own pixel budget. Atakumi-jsorsatoriupdate that moves layout fails before it merges.
Next.js on Cloudflare Workers, and static pages
definePlatein the rootmetaplateentry returns a plate's URL and metadata contract (alt,size,variants,imagePath,basePath,origin,version,revision,contentType) with the plate'smetadata,signedMetadata,image,sitePath, andvariantmembers. It imports no renderer. Spread it intocreateNodeOg,createEdgeOg,createTakumiOg,createSvgOg, orcreateNextOgand addfontsandcomponent. Both sides run the same metadata code, and a test compares them across 288 option combinations. A factory throws when the contract'scontentTypeis 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 intopublic/before the build and served as Workers static assets. Pages import only the contract, andverify-pagechecks the result after deploying. - A
metaplate renderpage can name anhtmlfile 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:imagecarries 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-writtenog:imageoutside the block fail the run before anything renders. See Writing tags into static HTML.
Staging checks with verify-page
metaplate verify-pageprints 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(expectRobotsBlockinverifyRemotePage) 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.--jsonadds acrawlerfield to robots issues, a per-crawlerexpectation, and arobots-not-blockedissue code; no field is removed. See Sites that block crawlers on purpose.
Remote images on Fetch runtimes
fetchImageLoaderinmetaplate/imageisremoteImageLoaderbuilt on the Fetch API, for Cloudflare Workers (withmetaplate/takumi), Netlify Edge, Deno, and Vercel Edge. It keeps the requiredoriginsallowlist, the URL, scheme, credential, and port checks, redirects re-checked on every hop, a byte cap enforced fromContent-Lengthand while streaming, one time budget, and the bounded cache. It reports the sameRemoteImageErrorcodes, whichmetaplate/imagenow also exports. Fetch runtimes hide DNS, so it refuses only hosts written as non-public IP addresses orlocalhostnames, and the allowlist is the boundary. See Edge runtimes.
Reliability
- The
fontFallbackguard, forcreateSvgOg,createNodeOg,createEdgeOg, andcreateTakumiOg, reports each font request that no loaded face satisfies, asmissing: "family"ormissing: "face", with the loaded faces listed. It follows inline styles down the tree, calls nested function components, and counts faces fromlanguageFontsas loaded. Like every guard, it is off by default. See Render guards. - The
lineClampguard reports a clamp or ellipsis that Satori ignores and draws in full:lineClampon an element whose display is notblock,WebkitLineClampwithout-webkit-box,textOverflow: "ellipsis"withoutoverflow: "hidden"and a non-wrappingwhiteSpace, 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 increateSvgOg,createNodeOg, andcreateEdgeOgon Satori 0.51.0 or later. Only the site's own CSS is out of reach.createNextOgis the exception, and tests now pin each behavior.
Breaking changes
None at run time. Two changes may need attention:
RenderGuardNamegains"fontFallback"and"lineClamp", andRenderGuardIssuegains a member for each. TypeScript code with an exhaustiveness check overissue.guardneeds a case for each. Both guards are off by default.- The text output of
metaplate verify-pageshows each robots.txt block once per crawler, with only the deciding rule. Scripts that parse those lines should read--json, which only gains fields. ItsRobotsIssueCodetype 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.0That 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 checkpasses: lint, ...
Metaplate v0.8.4
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--incrementalbuild, 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 renderused to write each image before checking it, so a card that failed its format, size, or--targetcheck had already overwritten the last good one.
Highlights
Security
- A cached view's
handlerFromandfetchableFromtake the same{ signed }option as the plate's, onmetaplate/nodeandmetaplate/edge. A missing or invalid signature gets the configured 403 or 404 withCache-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 aTypeErrornaming it, and makes--incrementalalways 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 renderruns 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
HEADresponse has theGETresponse's headers,ETagandContent-Lengthincluded, and no body. - Image versions. Array holes serialize as
null, asJSON.stringifywrites them, soArray(1)no longer versions like[]. AtoJSONthat returns its own object now throws the usual circular-reference error instead of overflowing the stack. - One URL rule.
verifySocialImageacceptscheckUrlandcheckAlt.metaplate render --targetandmetaplate preview --targetcheck the image URL only when it is absolute HTTPS, so a plate with anhttp://localhostorigin or root-relative URLs no longer fails every card. - Preview and the export audit.
metaplate previewwithout 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 noog:image:alt, and reports instead of crashing on a relativeog:imageor 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.4That 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 checkpasses: 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:packageinstalls 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 arerecentlyPublishedandunpopularPackage(medium) andurlStrings(low). The same two high dependency alerts carry time-bounded dispositions that expire 2027-04-30:string.prototype.codepointat, under the Satori peer, andtslib@2.9.1's ownership change, reached only through optional and development dependencies.tslibwas 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
- README and Upgrading
- Signed image routes and Caching renders
- Testing your cards
- RFC 9110 HEAD
- Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.8.3
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 renderpassed a 916 KB card with a tick, and only a secondmetaplate verify --targetstep, repeating every size, caught it. Now--target whatsappon 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
boxSizingthe root already has, andmetaplate verifywithout--sizesays 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 BYTESapply the checksmetaplate verify --targetmakes 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 withmetadataBase. - An image reused by
--incrementalis checked again, because targets are not part of its input hash.
Clearer errors
- The
overflowrender guard advisesboxSizing: "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, orlineClamp. metaplate verifyandverify-urlgiven a file or URL before any--sizenow fail with--size WIDTHxHEIGHT is required before the first file (...), naming it.metaplate render's error for a.tsxmodule now names the route that works on every platform:runClifrommetaplate/cliundertsx.
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
verifySocialImagefails 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 throughcreateNextOg. They now add that an<img>stretches withoutobjectFit, 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.3That 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 checkpasses: 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:packageinstalls 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 arerecentlyPublishedandunpopularPackage(medium) andurlStrings(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, andtslib@2.9.1's ownership change, reached only through optional and development dependencies.tslibwas 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
- README and API reference
- Rendering static files with
metaplate render - Next.js static exports and
generateMetadata - Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.8.2
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/edgeerror 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/edgeerror message for runtimes that forbid run-time Wasm compilation now link tofreeknet/metaplatedirectly. The oldlnorton89/metaplatelinks still redirect. - Provenance that matches the repository. The npm provenance attestation and
package.json'srepository.urlboth namefreeknet/metaplate, so a check that compares them passes.
Highlights
Repository move
- The repository moved from
lnorton89/metaplatetofreeknet/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.2That 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 checkpasses: 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 areunpopularPackage(medium) andurlStrings(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, andtslib@2.9.1's ownership change, reached only through optional and development dependencies.tslibwas 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
- README and API reference
- Edge runtimes
- Security policy
- npm trusted publishing
- Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.8.1
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
satoripeer 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.
overflowonly sees text that leaves the image. The newsafeArea,textOverlap, andavoidguards 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-contentnow 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 --baselinecompares 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/ogandmetaplate verify "out/og/*/og-image.jpg"work in npm scripts on Windows, wherecmd.exeexpands nothing.runClifrommetaplate/cliruns the same commands in-process.
Highlights
Render guards
safeAreareports text outside the area that the centered 2:1 crop (Xsummary_large_image) and the 1.91:1 crop (Open Graph) both keep. For 1200x630 that removes 15px from the top and bottom, the same cropsmetaplate previewoverlays.{ level, inset }sets your own margin instead.textOverlapreports two text elements whose boxes intersect.avoid: { level, keys, gap }reports text withingappixels of an element whose Reactkeyis listed, such askey="photo"on an<img>.- All three run in
createSvgOg,createNodeOg, andcreateEdgeOg, and each issue lists the text and its box. See Render guards. metaplate/nodeandmetaplate/edgenow export theSatoriOptionsandSatoriLayoutNodetypes, sosatori: { onNodeDetected }no longer needs a cast to Satori's ownSatoriOptions, which requireswidth,height, andfonts.
Image and page checks
verify --baseline DIRcompares cards with a baseline. Each PNG or JPEG is matched with the file at the same relative path inDIR. A card fails when more of its pixels changed than--max-diffallows (default 0), when it has no baseline, or when a baseline file has no card.--thresholdsets 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 DIRwrites the baseline, the current card, and the changed pixels in red side by side, and--update-baselinerewrites the baseline after review.compareImagesfrommetaplate/noderuns 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-contentdecodes 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'sguards: { blank: "error" }. See Require visible content.verifytakes directories and globs. A directory stands for every image file below it (limited to--formatwhen given). Globs support*,?,**,[...], and{a,b}. Files are checked in sorted order, once each. See Directories and globs.metaplate/cli(new entry) exportsrunCli(args, { stdout, stderr }). It resolves to the exit code, leavesprocess.exitCodealone, and keeps concurrent calls apart. See Run the CLI from a script.verify-pagereadstwitter:image:type,:width, and:height. Next.js metadata emits them for a JPEG plate, and they are now checked against the fetched bytes like theog: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
satoripeer 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,
insetis ignored, so aninset: 0overlay collapses to 0x0; - through 0.35.1,
color: "transparent"text, the usual way to draw outline type withWebkitTextStroke, 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
ERESOLVEerror under strict peers) until it upgrades. - before 0.38.2,
-
verify-pagetarget format results change for undeclared types. A page with noog:image:typenow passesuniversalwhen the fetched image is PNG or JPEG (it was an error), andxnow fails an undeclared SVG (it was a warning).socialImageCompatibilityandverifySocialImageare 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.1That 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 checkpasses: 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:packageinstalls the exact local tarball into clean consumers and builds, serves, and fetches images from every framework fixture.- The full JPEG decode behind
--baselinewas 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 arerecentlyPublished(medium) andurlStrings(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, andtslib@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
Metaplate v0.8.0
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
socialImageCompatibilityresults fordiscordorx, on font loaders accepting unusual bytes, or on raw characters in relative image paths.
Why upgrade
- Run where your site runs.
metaplate/edgerenders through@resvg/resvg-wasmon Deno-based edges (hosted-certified on Netlify Edge Functions and Deno Deploy). Thesatoripeer range widens from>=0.33.3 <0.34to>=0.33.3 <1, so a current Satori no longer conflicts. - Ship static cards safely.
metaplate renderwrites 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-pageaudits 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.
- page-level Open Graph and
Highlights
Rendering
- Edge runtimes.
metaplate/edge(new entry) renders PNG through@resvg/resvg-wasmand 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.RenderGuardErrornames 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 --incrementalreuses files whose inputs and bytes are unchanged.
- Images and assets.
- Plate components may be
async. imageAssetandimageAssetLoaderembed checked image bytes.- The new
metaplate/assetsentry reads project files and allowlisted remote images.
- Plate components may be
- Emoji render as images from an installed set (
packageEmojiLoader) or from bytes you serve (metaplate/emoji, a new entry). - Other scripts.
languageFontsrenders 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 writesmetaplate-manifest.jsonatomically.- 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.
socialMetaTagsandsocialMetaHtmlserialize validated page-level fields (title, description, URL, locale,article:times and tags,theme-color).metaplate/nextmaps them to Next'sMetadataandViewport. - 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.revisioncovers changes the copy can't show. - Signed image routes.
signImagePathandverifyImageSignature(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-urlfetches a deployed image through a hardened fetcher and runs the same checks asverify. The fetcher:- blocks private addresses and pins DNS;
- checks redirects, byte limits, and timeouts;
- decodes gzip, deflate, and br bodies.
metaplate verify-pageaudits 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, andpinterest. discordandxnow check those platforms' documented image rules.--require-contentfails a blank PNG.
- New targets:
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/nodeserver; - React Router 8 resource routes;
- SvelteKit 3
+serverroutes; - Express;
- an edge consumer.
- Next.js static export and
- See Framework and runtime support and Deployment.
Fixes
metaplate/nextnow importsnext/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
verifySocialImageandverify-page. - A trailing
--sizeor--formatthat no file follows is an error instead of being ignored. metaplate <command> --helpsucceeds.
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
TypeErrorfor 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. discordchecks formats. It now requires PNG, GIF, JPEG, WebP, or AVIF instead of reporting an unknown contract.xchecks 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.
socialImagePathwithout anoriginnow encodes spaces, control characters, and non-ASCII, exactly as the absolute URL always did. A route such as/a bnow 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.0That 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:
satoriwidens to>=0.33.3 <1. The audited release is 0.63.2;metaplate/edgeneeds 0.35.2 or newer. To move an existing project to the audited line, runnpm install satori@0.63.@resvg/resvg-wasm(>=2.6.2 <3) is a new optional peer, needed only bymetaplate/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 checkpasses:- 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:packageinstalls the exact local tarball into clean consumers. It then builds, serves, and fetches images from every fixture listed above, and runsmetaplate/nextin plain Node. -
npm run release:evidencere-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...
Metaplate v0.7.0
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, orETagthroughheadersoncreateNodeOg, or who pass a customoutput.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 verifygains--jsonfor one stable report per file, repeatable--targetprofiles,--urland--altdescriptor 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.
socialImageCompatibilityaccepts descriptors without a URL or alt text throughcheckUrl/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)andfetchableFrom(resolve)on bothcreateNodeOgandcreateNextOgreturn 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
Requestper the Vercel Node.js runtime reference; the Netlify example readsparamsfrom the secondcontextargument 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 setContent-Encoding, and withetag: "sha256"(oretag: 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, andContent-Encodingcan no longer be configured throughheaders; previously a callerContent-Typewas silently overwritten.- The CLI usage line, README, and CHANGELOG document every new flag and export.
Supply-chain and release evidence
npm run check:dependenciesderives a reachability inventory frompackage-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 takeshasInstallScriptonly 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.0is 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:workflowsrequires every GitHub Actions reference to be pinned to a full commit SHA, and CI runsnpm audit signaturesso every installed package carries a valid registry signature and, where published with provenance, a verifiable attestation.npm run release:evidencere-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
createNodeOgthrows aTypeErrorat definition time whenheaderscontainsContent-Type,Content-Length, orContent-Encoding, or containsETagwhile automaticetaggeneration is enabled. Remove those headers; Metaplate sets the first two itself and never sets encoding. A callerETagstill passes through whenetagis off.- A custom
output.contentTypemust be a syntactically valid media type. socialImageCompatibilitythrows aTypeErrorwhen the descriptor lackswidthorheight.
Install or upgrade
npm install metaplate@0.7.0That single command includes the framework-neutral SVG and PNG renderer. Next
applications continue to supply their own compatible next dependency.
Verification
npm run checkpasses 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:packagepasses against the exact local tarball: lean and standalone consumers, offline Next static export, Astro static build, Express service, React Router resource route, and the VercelhandlerFrom, Vercel Fetchable, and Netlifycontext.paramsdeployment fixtures with image and response-header evidence.npm run release:evidencerecords six passed release checks and a verified evidence bundle; CI uploads the bundle on every run.- The Socket score artifact is historical
0.6.0evidence 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
- README
- Deployment routes guide
- Vercel Node.js runtime
- Netlify Functions configuration
- Release process
- npm package
- Report a problem
Full changelog
Metaplate v0.6.0
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
cropor dimension-changingfitTosettings 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 verifyandmetaplate/imagenow 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 svglets SVG-onlycreateSvgOgbuilds 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 metaplatenow 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
langtag 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 --helpandmetaplate --versionare 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
summaryandsummary_large_image, plus site/creator names and IDs. - X-first
XCardandXImageOptionstypes 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.
socialImageCompatibilityreports universal and platform-specific URL, format, dimension, and file-size problems without inventing Discord or Instagram metadata contracts.
Framework and runtime confidence
handlerFromderives copy from sync or async Astro, SvelteKit, React Router/Remix-style, and Next route arguments while preserving the fixed-copyhandlerAPI.- 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
deprecatedenvFilewarning 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/nextnow supports the audited and release-tested Next>=16.3.2 <17line. Next 15 is no longer claimed because its remaining transitive advisories fail the release security gate.- Resvg
cropand dimension-changingfitTosettings now fail at plate creation. Define the intended output through the plate'ssizeso rendered bytes and metadata cannot disagree.
Install or upgrade
npm install metaplate@0.6.0That single command includes the framework-neutral SVG and PNG renderer. Next
applications continue to supply their own compatible next dependency.
Verification
npm run checkpasses lint, a zero-tolerance duplication scan, source and
example type checks, 240 tests, build, and a 33-file package dry run.npm run check:packagepasses 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.