{"id":20461165,"url":"https://github.com/moroboxai/moroboxai-player-sdk","last_synced_at":"2026-04-29T12:39:17.532Z","repository":{"id":37239300,"uuid":"479294570","full_name":"moroboxai/moroboxai-player-sdk","owner":"moroboxai","description":"Core functionalities for running MoroboxAI games on various platforms","archived":false,"fork":false,"pushed_at":"2023-11-02T07:30:29.000Z","size":2921,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-19T06:01:59.719Z","etag":null,"topics":["ai","artificial-intelligence","game","javascript","library","moroboxai","npm","sandbox-playground","sdk","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moroboxai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-08T07:45:35.000Z","updated_at":"2023-11-01T17:18:59.000Z","dependencies_parsed_at":"2023-10-05T02:15:23.879Z","dependency_job_id":"d47e6760-4f67-4271-972f-6775ffc65f3b","html_url":"https://github.com/moroboxai/moroboxai-player-sdk","commit_stats":{"total_commits":94,"total_committers":2,"mean_commits":47.0,"dds":"0.12765957446808507","last_synced_commit":"7032ee19f400343213655ba98b67890165308376"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-player-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-player-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-player-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moroboxai%2Fmoroboxai-player-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moroboxai","download_url":"https://codeload.github.com/moroboxai/moroboxai-player-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439718,"owners_count":19963100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","game","javascript","library","moroboxai","npm","sandbox-playground","sdk","typescript"],"created_at":"2024-11-15T12:23:52.326Z","updated_at":"2026-04-29T12:39:12.506Z","avatar_url":"https://github.com/moroboxai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moroboxai-player-sdk\n\n[![NPM version](https://img.shields.io/npm/v/moroboxai-player-sdk.svg)](https://www.npmjs.com/package/moroboxai-player-sdk)\n![Node.js CI](https://github.com/moroboxai/moroboxai-player-sdk/workflows/Node.js%20CI/badge.svg)\n[![gitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/moroboxai/moroboxai-player-sdk/blob/master/LICENSE)\n[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/moroboxai/moroboxai-player-sdk.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/moroboxai/moroboxai-player-sdk/context:javascript)\n[![Total Alerts](https://img.shields.io/lgtm/alerts/g/moroboxai/moroboxai-player-sdk.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/moroboxai/moroboxai-player-sdk/alerts)\n\nThis package provides the core functionalities for running [MoroboxAI](https://github.com/moroboxai) games on various platforms, but lacks the gutter that is required for some platform-specific functionalities.\n\nSee:\n\n-   [moroboxai](https://github.com/moroboxai/moroboxai): for running games on the desktop with [Electron](https://www.electronjs.org/)\n-   [moroboxai-player-web](https://github.com/moroboxai/moroboxai-player-web): for embedding games on the web\n-   [moroboxai-player-react](https://github.com/moroboxai/moroboxai-player-react): for embedding games in [React](https://en.reactjs.org/) apps\n\n## Install\n\nUsing npm:\n\n```bash\nnpm install moroboxai-player-sdk --save\n```\n\n## Implementation\n\nThis package is meant to be extended by implementing the missing gutter for the desired platform:\n\n```ts\nimport * as MoroboxAIPlayerSDK from 'moroboxai-player-sdk';\n\n// The gutter added by our implementation\nconst sdkConfig: MoroboxAIPlayerSDK.ISDKConfig = {\n // Define how we create a file server on this platform\n fileServer: (baseUrl: string) =\u003e ...,\n // Define how we create a zip server on this platform\n zipServer: (baseUrl: string) =\u003e ...\n};\n\n// Retrieve the HTMLElement we want to attach the player to\nconst element: Element = ...;\n\n// The generic options for the player\nconst options: MoroboxAIPlayerSDK.IPlayerOptions = ...;\n\n// Entrypoint of moroboxai-player-sdk with our gutter\nMoroboxAIPlayerSDK.init(sdkConfig, element, options);\n```\n\n## License\n\nThis content is released under the [MIT](http://opensource.org/licenses/MIT) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroboxai%2Fmoroboxai-player-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoroboxai%2Fmoroboxai-player-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoroboxai%2Fmoroboxai-player-sdk/lists"}