Pixi’VN

Live2D integration for Pixi’VN

@drincs/pixi-vn-live2d is a lightweight wrapper around untitled-pixi-live2d-engine, designed specifically to integrate Live2D models into Pixi’VN projects.

The library provides Pixi’VN-friendly abstractions for using Live2D models inside visual novels, making it easier to load, manage, and display Live2D content within the Pixi’VN ecosystem.

Example

import { canvas } from "@drincs/pixi-vn";
import { extensions } from "pixi.js";
import { Live2DPlugin } from "@drincs/pixi-vn-live2d/core";
import { Live2D } from "@drincs/pixi-vn-live2d";

// Register the Live2D render pipe before creating the Pixi'VN canvas application
extensions.add(Live2DPlugin);
Assets.add({ alias: "haru", src: "https://example.com/model/model3.json" });

const live2d = new Live2D({ source: "haru" });
await live2d.ready;
live2d.anchor.set(0.5);
live2d.x = canvas.width / 2;
live2d.y = canvas.height;

live2d.motion("Idle");

canvas.add("live2d", live2d);

Build

To build the library, run the following command:

npm run build

Agent Skills

Pixi’VN Live2D includes Agent Skills for AI coding assistants, covering the TypeScript integration and Ink commands.

Codex:

npx skills@latest add DRincs-Productions/pixi-vn-live2d@latest --skill '*' --agent codex -g -y

Claude Code:

npx skills@latest add DRincs-Productions/pixi-vn-live2d@latest --skill '*' --agent claude-code -g -y

Other agents:

npx skills@latest add DRincs-Productions/pixi-vn-live2d@latest --all -y

Available skills:

  • pixi-vn-live2d — runtime setup, model loading, positioning, expressions, motions and saved state.
  • pixi-vn-live2d-ink — registering and using Live2D Ink commands, source aliases and entrance/exit transitions.

On this page