What Is easy-live2d
easy-live2d is a Live2D Web library built around Live2DSprite, compressing the common Live2D integration path into a concise user-facing API.
Public entry points for application code:
Live2DSprite: Load models, attach to a Pixi stage, handle hit and drag interaction, control motions, expressions, and voice.Config: Global runtime configuration — mouse follow, idle motion group, logging level, view bounds.CubismSetting: Use when you want to providemodel3.jsoncontent manually or rewrite asset URLs.
What It Solves
Using the official Cubism Web SDK directly means handling resource organization, render initialization, coordinate transforms, hit testing, motion management, and Pixi integration yourself. easy-live2d reduces that work by:
- Wrapping the model as a Pixi
Spritethat fits into existing Pixi render pipelines. - Exposing a small set of APIs for common interactions.
- Preserving control over model paths, asset redirection, and global behavior.
Usage Model
- You create the Pixi
Applicationandcanvas. - You load the official
live2dcubismcore.jsscript in your entry HTML. - You create
Live2DSpritewith eithermodelPathormodelSetting. - You add it to
app.stageand listen foronLive2D('ready')to know when the model is usable.
It behaves as a Live2D component hosted by Pixi, not a framework that owns the entire render lifecycle.
Good Fit Scenarios
- Pixi.js projects that need quick Live2D integration.
- Apps requiring hit-area clicks, dragging, motion switching, expression switching, and voice playback.
- CSR projects in Vue, React, or similar stacks reusing the same runtime wrapper.
Runtime Requirements
- Browser environment (depends on
document,fetch,Image,ResizeObserver,AudioContext). - Pixi.js + WebGL.
- Official Live2D Core script.
Not intended for SSR. Initialize on the client side.
Licensing
- This repository is licensed under
MPL-2.0. - Live2D Cubism Core and model assets follow their own official licensing and distribution requirements.
Next: Installation → Getting Started.
