Repository navigation
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.