@yunlefun/play-competition
v0.1.2
Published
Portable result, leaderboard, and trusted submission contracts for YunLeFun Play games
Downloads
449
Readme
@yunlefun/play-competition
Cross-repository contracts for YunLeFun Play game results and public leaderboards.
The package is contract-first:
- JSON Schema Draft 2020-12 files are the protocol source.
- The root exports derived TypeScript types and runtime validators.
@yunlefun/play-competition/servercontains private-key signing and trusted submission helpers and must not be imported by browser code.@yunlefun/play-competition/testingcontains valid mutable fixtures for first-party adapters.
The package is not a replacement for SSO, wallet, entitlement, rendering, or gameplay SDKs.
Install
pnpm add @yunlefun/play-competitionImport @yunlefun/play-competition/server only from a trusted Node.js runtime.
Play-hosted rooms use Play's transactional competition outbox instead of signing
an HTTP request back into the same process.
Releases are published from the YunLeFun/play GitHub repository by the
publish-competition.yml trusted publisher workflow. A
competition-v<package version> tag must match package.json; the workflow
uses npm OIDC and does not require a long-lived publish token.
