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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ai-zen/live2d-framework

v1.0.2

Published

Cubism Web Framework

Downloads

15

Readme

This NPM package is only for easy download and the copyright belongs to the original author

English / 日本語


Cubism Web Framework

This is a framework for using models output by Live2D Cubism Editor in applications.

It provides various functions for displaying and manipulating the model. It is used in conjunction with the Live2D Cubism Core library to load the model.

You can use it as a JavaScript library that can be used in the browser by building.

License

Please check the license before using this SDK.

Compatibility with Cubism 5 new features and previous Cubism SDK versions

This SDK is compatible with Cubism 5.

For SDK compatibility with new features in Cubism 5 Editor, please refer to here.

For compatibility with previous versions of Cubism SDK, please refer to here.

Development environment

Node.js

  • 20.5.1
  • 18.17.1
  • 16.20.2

TypeScript

5.1.6

Development environment construction

  1. Install [Node.js] and [Visual Studio Code]
  2. Open this project in Visual Studio Code and install the recommended extensions
    • You can check them by typing @recommended from the Extensions tab
  3. Enter >Tasks: Run Task in the command palette (View > Command Palette...) to display the task list
  4. Select npm: install to download the dependent packages

You can execute various commands from the task list on the command palette.

NOTE: Settings for debugging are described in .vscode/tasks.json.

Task list

npm: build

Builds the source file and outputs to the dist directory.

You can change the settings by editing tsconfig.json.

npm: test

Performs a TypeScript type check test.

You can change the settings by editing tsconfig.json.

npm: lint

Performs static analysis of TypeScript files in the src directory.

You can change the settings by editing .eslintrc.yml.

npm: lint:fix

Performs static analysis and automatic modification of TypeScript files in the src directory.

You can change the settings by editing .eslintrc.yml.

npm: clean

Deletes the build deliverable directory (dist).

Components

effect

Provides functions such as automatic blinking and lip sync to add motion information as an effect to the model.

id

Provides functions to manage the parameter name, part name, and Drawable name set in the model with unique types.

math

Provides arithmetic functions required for manipulating and drawing the model, such as matrix and vector calculations.

model

Provides various functions (generate, update, destroy) for handling the model.

motion

Provides various functions (motion playback, parameter blending) for applying motion data to the model.

physics

Provides functions for applying transformation manipulations due to physics to the model.

rendering

Provides a renderer that implements graphics instructions for drawing the model.

type

Provides type definitions for use within the framework.

utils

Provides utility functions such as JSON parser and log output.

Live2D Cubism Core for Web

Cubism Core for Web is not included in this repository.

Please download it from the Cubism SDK for Web.

Samples

Please refer to CubismWebSamples for implementation examples of standard applications.

Manual

Cubism SDK Manual

Changelog

Please refer to CHANGELOG.md for the changelog of this repository.

Contributing

There are many ways to contribute to the project: logging bugs, submitting pull requests on this GitHub, and reporting issues and making suggestions in Live2D Community.

Forking And Pull Requests

We very much appreciate your pull requests, whether they bring fixes, improvements, or even new features. Note, however, that the wrapper is designed to be as lightweight and shallow as possible and should therefore only be subject to bug fixes and memory/performance improvements. To keep the main repository as clean as possible, create a personal fork and feature branches there as needed.

Bugs

We are regularly checking issue-reports and feature requests at Live2D Community. Before filing a bug report, please do a search in Live2D Community to see if the issue-report or feature request has already been posted. If you find your issue already exists, make relevant comments and add your reaction.

Suggestions

We're also interested in your feedback for the future of the SDK. You can submit a suggestion or feature request at Live2D Community. To make this process more effective, we're asking that you include more information to help define them more clearly.

Community

If you want to suggest or ask questions about how to use the Cubism SDK between users, please use the community.