Skip to content

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