{"id":13529078,"url":"https://github.com/yushimatenjin/playcanvas-node","last_synced_at":"2025-04-01T14:34:06.731Z","repository":{"id":57325767,"uuid":"187965916","full_name":"yushimatenjin/playcanvas-node","owner":"yushimatenjin","description":"REST API wrapper for Node","archived":false,"fork":false,"pushed_at":"2023-04-06T05:44:15.000Z","size":399,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T11:04:57.727Z","etag":null,"topics":["javascript","nodejs","playcanvas","rest-api"],"latest_commit_sha":null,"homepage":"https://yushimatenjin.github.io/playcanvas-node/","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/yushimatenjin.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}},"created_at":"2019-05-22T05:00:14.000Z","updated_at":"2025-03-06T01:34:59.000Z","dependencies_parsed_at":"2024-01-03T03:55:08.127Z","dependency_job_id":"aba921d3-be0b-4d83-a83f-5e4a1523ec19","html_url":"https://github.com/yushimatenjin/playcanvas-node","commit_stats":{"total_commits":140,"total_committers":3,"mean_commits":"46.666666666666664","dds":"0.021428571428571463","last_synced_commit":"0a1261f9af5da4334b8314243a082c84ad9e3925"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushimatenjin%2Fplaycanvas-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushimatenjin%2Fplaycanvas-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushimatenjin%2Fplaycanvas-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yushimatenjin%2Fplaycanvas-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yushimatenjin","download_url":"https://codeload.github.com/yushimatenjin/playcanvas-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246655619,"owners_count":20812665,"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":["javascript","nodejs","playcanvas","rest-api"],"created_at":"2024-08-01T07:00:32.761Z","updated_at":"2025-04-01T14:34:01.711Z","avatar_url":"https://github.com/yushimatenjin.png","language":"TypeScript","funding_links":[],"categories":["Extensions and Utilities"],"sub_categories":[],"readme":"\n## Installation\n```bash\nnpm install --save playcanvas-node\n```\n\n## Documentation\n\n- [REST API - PLAYCANVAS MANUAL](https://developer.playcanvas.com/en/user-manual/api/)\n\n\n## Example\n\n```javascript\nimport PlayCanvas from \"playcanvas-node\";\n\nconst options = {\n  accessToken: \"xxxxxxxxxxxxxxxx\",\n  scenes: [000000,111111],\n  projectId: 000000,\n  branchId: \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\",\n  projectName: \"xxxxxx\"\n};\nconst playcanvas = new PlayCanvas(options);\n\n(async () =\u003e {\n  const res = await playcanvas.listAssets();\n  console.log(res)\n})();\n\n```\n\n### Apps\n\n- [x] Download app\n- [x] Get primary app\n- [x] Get project apps\n- [x] Get app\n\n### Assets\n\n- [x] Create asset\n\n```javascript\n  const options = {\n    name: \"index.html\",\n    path: \"./dist/index.html\"\n  };\n  await playcanvas.createNewAsset(options);\n```\n\n- [x] Delete asset\n- [x] Get Asset File\n- [x] Get Asset\n- [x] List assets\n- [x] Update asset\n\nUpload  \nThis is the supported type. \n`.js`,`.css`,`.txt`,`.json`,`.html`\n[https://developer.playcanvas.com/en/user-manual/api/asset-create/](https://developer.playcanvas.com/en/user-manual/api/asset-create/)\n\n```javascript\n  const playcanvas = new PlayCanvas(options);\n  const remotePath = process.env.NODE_ENV === 'development' ? \"dev\" : \"build\"\n  await playcanvas.updateAssets(dev,\"index.html\",\"./dist/index.html\");\n```\n\n### Branches\n\n- [x] List branches\n\n### Jobs\n\n- [x] Get job\n  \n### Projects\n\n- [x] Archive project\n\n### Scenes\n\n- [x] List scenes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushimatenjin%2Fplaycanvas-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyushimatenjin%2Fplaycanvas-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyushimatenjin%2Fplaycanvas-node/lists"}