@tpgames/core-manifest
v0.3.0
Published
Strict manifest and bundle preflight for Toilet Paper Games.
Readme
@tpgames/core-manifest
Strict manifest and bundle preflight for Toilet Paper Games.
Install it from npm, then validate either an extracted bundle directory or its registry-ready zip:
npx tpg validate ./dist
npx tpg validate ./dist/my-game-1.0.0.zipThe validator rejects unknown manifest fields, unsupported capabilities and permissions, contradictory topology, malformed or repeated portable-display primitive requirements, unsafe paths, missing surfaces and artwork, surface HTML without an entry script, and broken bundle-relative HTML asset URLs.
Library consumers can import gameManifestSchema, validateManifest,
validateBundleContents, and deriveGameFramePolicy from the package root.
The frame policy maps published manifest declarations to exact iframe
sandbox, Permissions Policy, and fullscreen values while returning
actionable diagnostics for denied or future browser features. Node tooling can
import validateBundlePath from @tpgames/core-manifest/node.
For editor completion, point JSON tooling at the versioned schema export:
node_modules/@tpgames/core-manifest/schema/game-manifest.v1.schema.json