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

live2dapi-noa

v1.0.8

Published

nova1751自建的live-2d api

Downloads

806

Readme

Live2D_API

个人自建的live2d API,用于网页端引入看板娘。

前言 To start with

特性 Feature

  1. 将 Live2D API 完全 cdn 化,目录结构简单,便于编辑、添加和删除模型。

  2. 为以 CDN 方式加载的 Live2D 模型,添加模型皮肤顺序切换的功能。

  3. 将项目配置文件拆分成<script><link>标签的形式便于网站引入。

使用 How to use

你可以使用jsdelivrnpm镜像节点来为你的网站引入相关文件,根据引入文件的不同决定你的看板娘的位置与模型材质切换方式。

  1. 使用jsdelivr引入。

    <!-- 顺序切换模型材质 -->
    <script src="https://cdn.jsdelivr.net/gh/nova1751/live2d-api@latest/jsdelivr/sequential/autoload.min.js"></script>
    <!-- 随机切换模型材质 -->
    <script src="https://cdn.jsdelivr.net/gh/nova1751/live2d-api@latest/jsdelivr/random/autoload.min.js"></script>
    
    <!-- 看板娘位置靠左 -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/nova1751/live2d-api@latest/css/left.min.css"
    />
    <!-- 看板娘位置靠右 -->
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/gh/nova1751/live2d-api@latest/css/right.min.css"
    />
  2. 使用国内npm镜像节点引入。

    <!-- 顺序切换模型材质 -->
    <script src="https://unpkg.com/live2dapi-noa@latest/npm/sequential/autoload.js"></script>
    <!-- 随机切换模型材质 -->
    <script src="https://unpkg.com/live2dapi-noa@latest/npm/random/autoload.js"></script>
    
    <!-- 看板娘位置靠左 -->
    <link
      rel="stylesheet"
      href="https://unpkg.com/live2dapi-noa@latest/css/left.css"
    />
    <!-- 看板娘位置靠右 -->
    <link
      rel="stylesheet"
      href="https://unpkg.com/live2dapi-noa@latest/css/right.css"
    />

你可以下载下来jscss文件来进行自定义配置,详细请参考 live2d-widget 配置

成果 Achievement

  1. 修正了少女前线(Girls Frontline)等 live2d 模型的文件路径错误以及文件名称错误,对模型的展示视口进行了相关的适配并修复了切换模型报错的问题。

~~这环节究极折磨,打死不做第二遍。~~

  1. 修正了部分模型语音与互动动作配置错误。
  2. 将左右的css文件分别配置,添加顺序切换模型材质的js文件,并将随机切换与顺序切换的js文件分别配置。