{"id":13682534,"url":"https://github.com/avgjs/pixi-live2d","last_synced_at":"2025-04-30T09:33:10.340Z","repository":{"id":47731153,"uuid":"70814358","full_name":"avgjs/pixi-live2d","owner":"avgjs","description":"Display live2D model as a sprite in pixi.js.","archived":false,"fork":false,"pushed_at":"2017-04-12T15:06:58.000Z","size":5531,"stargazers_count":676,"open_issues_count":3,"forks_count":66,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-11-01T05:17:52.807Z","etag":null,"topics":["live2d","pixi","pixi-live2d","pixijs"],"latest_commit_sha":null,"homepage":"https://avgjs.github.io/pixi-live2d-example/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avgjs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-13T14:20:55.000Z","updated_at":"2024-10-29T06:57:25.000Z","dependencies_parsed_at":"2022-09-26T20:31:46.689Z","dependency_job_id":null,"html_url":"https://github.com/avgjs/pixi-live2d","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avgjs%2Fpixi-live2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avgjs%2Fpixi-live2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avgjs%2Fpixi-live2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avgjs%2Fpixi-live2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avgjs","download_url":"https://codeload.github.com/avgjs/pixi-live2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206098,"owners_count":17273390,"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":["live2d","pixi","pixi-live2d","pixijs"],"created_at":"2024-08-02T13:01:47.595Z","updated_at":"2024-11-12T02:31:00.588Z","avatar_url":"https://github.com/avgjs.png","language":"JavaScript","funding_links":["https://ko-fi.com/A742BTX"],"categories":["JavaScript","Web"],"sub_categories":[],"readme":"# pixi-live2d\n\nDisplay live2D model as a sprite in [pixi.js](https://github.com/pixijs/pixi.js).\n\n--------------------------------------------------------------------------------\n\n[Installation](#installation) | [Example](#example) | [API](#api) | [License](#license) | [Donation](#donation)\n\nPixi-live2d is a plugin for pixi.js for displaying live2D model as a sprite in pixi.js.\n\n- Only available in WebGL\n- ECMAScript 2015+\n- [Have a look at example!](https://avgjs.github.io/pixi-live2d-example/)\n- [Make me know](mailto:bingfeng.web@gmail.com?subject=Hey,%20I%20made%20a%20cool%20work%20with%20your%20plugin!) if you use my plugin for cool things!\n\n## Installation\n\n```bash\nnpm install pixi-live2d\n```\n\n**Attention**\n\nBecause of [the SDK policy](http://sites.cybernoids.jp/cubism-sdk2_e/policy-sdk) of Live2D Inc., SDK file has been removed from the package, so you have to [download](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1) and import it by yourself.\n\nfor example in HTML file:\n\n```html\n\u003cscript src=\"live2d.min.js\"\u003e\u003c/script\u003e\n```\n\nor just require it\n\n```javascript\nrequire('live2d.min.js');\n```\n\n## Example\n\n```javascript\nimport PIXI from 'pixi.js';\nimport 'pixi-live2d';\n\nconst renderer = new PIXI.WebGLRenderer(800, 600);\ndocument.body.appendChild(renderer.view);\nconst stage = new PIXI.Container();\n\nconst live2dSprite = new PIXI.Live2DSprite(modelHaru);\nstage.addChild(live2dSprite);\n\nlive2dSprite.startRandomMotion('idle');\nlive2dSprite.on('mousemove', (evt) =\u003e {\n  const point = evt.data.global;\n  live2dSprite.setViewPoint(point.x, point.y);\n});\n\nfunction animate() {\n    requestAnimationFrame(animate);\n    renderer.render(stage);\n}\nanimate();\n```\n\nYou can find a more complex one at [`example` folder](./example), or [visit it online](https://avgjs.github.io/pixi-live2d-example/).\n\n## API\n\n[docs/API.md](./docs/API.md)\n\n## License\n\nThis plugin is distributed under MIT license, and you should agree with the licenses of Live2D and pixi.js.\n\nFor more detail, please read [LICENSE.txt](./LICENSE.txt).\n\n## Donation\n\nThe plugin is free for charge, if you like it don't forget to buy me a coffee!\n\nko-fi:\u003cbr\u003e\n[![Buy Me a Coffee at ko-fi.com](https://az743702.vo.msecnd.net/cdn/kofi4.png?v=b)](https://ko-fi.com/A742BTX)\n\nalipay:\u003cbr\u003e\n![](https://cloud.githubusercontent.com/assets/837432/19645521/a71da460-9a27-11e6-9605-aed9e251dd7a.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favgjs%2Fpixi-live2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favgjs%2Fpixi-live2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favgjs%2Fpixi-live2d/lists"}