{"_id":"@anysync/game-sdk","name":"@anysync/game-sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anysync/game-sdk","version":"1.0.0","description":"The TinyPlay game SDK: the single import surface for game developers. Re-exports the engine + networking and adds the game contract (defineGame, validateGame) and TypeScript types.","type":"module","sideEffects":false,"types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js"},"./*":{"import":"./src/*.js"}},"keywords":["anysync","tinyplay","games","game-sdk","phone-remote","tv","webrtc","kids-games"],"dependencies":{"@anysync/game-engine":"^1.0.0","@anysync/game-net":"^1.0.0","@anysync/game-live":"^1.0.0"},"license":"MIT","author":{"name":"AnySync"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/anysync/anysync.git"},"homepage":"https://developer.anysync.net","bugs":{"url":"https://github.com/anysync/anysync/issues"},"_id":"@anysync/game-sdk@1.0.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-64aW31dYmaoDuIeK9Ifi+DV9RI7Ju+A3xNBtTbHdhzMpNJH1OW0+RKDWtDnxjU8ySPSflda2I6rAFipa4O/R3g==","shasum":"3007c541984304af5ea849dc5ffc42adfc2846bc","tarball":"https://registry.npmjs.org/@anysync/game-sdk/-/game-sdk-1.0.0.tgz","fileCount":4,"unpackedSize":13180,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCugDu9llOSqOYWJtfdAC0C35wn+RruX2u4ERgf71p90gIgTMXaF4WEtTTlLTNWQStAoNH+62sN/RcVlawpHY/norI="}]},"_npmUser":{"name":"thongsvu","email":"thongsvu@gmail.com"},"directories":{},"maintainers":[{"name":"thongsvu","email":"thongsvu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/game-sdk_1.0.0_1786429073936_0.3937647522089207"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-11T06:17:53.786Z","1.0.0":"2026-08-11T06:17:54.081Z","modified":"2026-08-11T06:17:54.321Z"},"maintainers":[{"name":"thongsvu","email":"thongsvu@gmail.com"}],"description":"The TinyPlay game SDK: the single import surface for game developers. Re-exports the engine + networking and adds the game contract (defineGame, validateGame) and TypeScript types.","homepage":"https://developer.anysync.net","keywords":["anysync","tinyplay","games","game-sdk","phone-remote","tv","webrtc","kids-games"],"repository":{"type":"git","url":"git+https://github.com/anysync/anysync.git"},"author":{"name":"AnySync"},"bugs":{"url":"https://github.com/anysync/anysync/issues"},"license":"MIT","readme":"# @anysync/game-sdk — the game developer's single import\n\nEverything a TinyPlay game needs, from one package. Re-exports the engine and\nnetworking, and adds the **contract**: `defineGame`, `validateGame`, the message\nshape, and TypeScript types (`Game`, `GameChannel`, `GameMeta`).\n\n```js\nimport { defineGame, makeCanvas, loop, addButtons } from \"@anysync/game-sdk\";\nexport default defineGame({\n  meta:    { id: \"my-game\", title: \"My Game\", emoji: \"🎮\", control: \"Buttons\", group: \"A\" },\n  present: (host, ch) => { /* TV output; ch.on(...) */  return () => {}; },\n  remote:  (host, ch) => { /* phone control; ch.send(...) */ return () => {}; },\n});\n```\n\n`validateGame(def)` returns `{ ok, errors, warnings }` so the platform can vet a\nthird-party package before accepting it. See `packages/games/DEVELOPING.md` for\nthe full guide, and the **developer portal** (apps/developer) for live examples\nand an interactive control storybook.\n","readmeFilename":"README.md","_rev":"1-2fe511c14a947107d4d869fe15e0aeba"}