npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

expo-live2d-cubism

v1.0.2

Published

Cross-platform Live2D native module for Expo and React Native

Readme

expo-live2d-cubism

English | 中文说明

A high-performance, cross-platform Live2D native module for Expo and React Native, utilizing the official Live2D Cubism SDK. Provides seamless iOS and Android support with smooth lip-syncing, motion playback, expressions, and hardware-accelerated rendering.

Note: The official Live2D Cubism Core SDK (Live2DCubismCore) is closed-source geometry and relies on an individual licensing agreement with Live2D Inc. Therefore, this npm package does not bundle the core static libraries. You must download them from the official website and inject them into your project to compile successfully.

Features

  • 🚀 Full cross-platform support: Shared C++ architecture for iOS and Android.
  • 🎙️ Real-time Lip-sync: Advanced dual-track approach (RMS volume + FFT vowel mapping) for ultra-smooth 60fps mouth animation syncing to audio.
  • 🎬 Motions & Expressions: Full playback support for .motion3.json and .exp3.json.
  • 📱 Hardware Accelerated: Native OpenGL ES rendering.

Installation

npx expo install expo-live2d-cubism

Pre-requisite: Inject Live2D Cubism Core

  1. Download the Cubism SDK for Native from the official Live2D website.
  2. Extract the SDK.
  3. You need to copy the Core folder into your exact node_modules path or use a custom patch script (Recommended).
    • iOS: Place live2dcubismcore.framework into node_modules/expo-live2d-cubism/ios/Vendor/
    • Android: Place libLive2DCubismCore.a into node_modules/expo-live2d-cubism/android/Vendor/Core/lib/

Build

Since this module relies on native C++ code, you cannot use Expo Go. You must use custom dev clients:

npx expo run:ios
npx expo run:android

Usage

import { useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { ExpoLive2DView } from 'expo-live2d-cubism';

export default function App() {
  const [motionPlaying, setMotionPlaying] = useState(false);

  return (
    <View style={styles.container}>
      <ExpoLive2DView
        style={styles.live2d}
        // modelPath can be bundled assets or remote/local filesystem paths
        modelPath="live2d_models/kei_vowels_pro/kei_vowels_pro.model3.json"
        scale={1.5}
        gyroEnabled={true}
        onLoad={() => console.log('Model Loaded!')}
        onPress={() => {
          // Play random idle expression
          const ref = useRef<ExpoLive2DView>(null);
          ref.current?.playMotion('Idle', 0);
        }}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: { flex: 1, backgroundColor: '#000' },
  live2d: { width: '100%', height: 500 },
});

License

This project's React Native Bindings and module wrapper are licensed under the MIT License. When compiling or distributing this SDK, you must agree and follow to the official Live2D Open Software License Agreement.