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

oh-my-live2d

v0.19.3

Published

live2d component for web. 看板娘组件, 支持 model2、model3、model4

Downloads

2,487

Readme

npm GitHub package.json version

OhMyLive2D 是一个应用于浏览器环境且开箱即用的Live2D组件, 它支持所有版本的Live2D模型, 使用方式足够简单并且高可自定义, 可以快速为您的个人网站添加Live2D看板娘, 使您的个人网站变得更具有特色.

通过 查阅文档 以了解更多详细使用教程。

[!TIP]
项目目前正处于积极维护状态, 欢迎志同道合的伙伴加入😄

先决条件

  • 支持 WebGLES6 的浏览器

特点

  • 支持 CDNES6 Module 两种导入方式。

  • 默认自动集成 Cubism 2 SDKCubism 5 SDK,您无需手动额外引入其他外部依赖。

  • 可自定义多个本地或远程 Live2D Model, 通过菜单按顺序切换模型。

  • 使用 TypeScript 开发,通过完整的类型推导享受它为您带来的语法补全。

  • 高可自定义, 完全可自定义的模块.

  • 多种支持方案

快速体验

您可以通过stackblitz在线体验

或者在您本地的任意项目中使用CDN导入方式来体验:

<script src="https://unpkg.com/oh-my-live2d@latest"></script>
<script>
  OML2D.loadOml2d({
    models: [
      {
        path: 'https://model.oml2d.com/HK416-1-normal/model.json',
        position: [0, 60],
        scale: 0.08,
        stageStyle: {
          height: 450
        }
      }
    ]
  });
</script>

之后您可以查阅文档了解更多相关内容:查阅文档

更多支持

案例

以下是一些非常优质的使用案例:

征集更多案例, 欢迎您的PR😋

如何贡献代码

本项目管理方式采用 monorepo 结构, 开始参与维护前需要您全局安装 pnpm, 并提前了解 Angular Git提交规范.

  • 首先 fork 本仓库并将项目 clone 至本地

  • cd 到项目目录之后安装依赖:

    pnpm install
  • 运行开发环境

    pnpm dev
  • 运行测试

    pnpm test
  • 运行文档

    pnpm docs:dev

核心代码存放于: packages/oh-my-live2d 中, 所有模块以命名区分分别存放于 src/modules 文件夹下

需要注意的是所有本地文件的导入语句需要以 .js 结尾, 否则会产生类型推导异常

文档中所有配置选项的描述无需您手动编辑, 它将根据 packages/oh-my-live2d/src/types 中导出的类型模块自动生成, 注释即文档

修改完代码后您只需按照 Angular 提交规范, 提交代码至您fork之后的仓库即可, 然后向本仓库提交PR

贡献者们

感谢以下所有为 oh-my-live2d 贡献过代码的 开发者们

讨论

  • 微信群:

  • QQ群: 474032914

[!TIP] 感谢您使用 oh-my-live2d, 创作不易, 您的 star 是我更新的动力.

Project Status

Alt

开源许可

免责声明

本仓库所有模型文件均来源于网络, 仅供参考和学习, 严禁用于任何商业盈利项目, 所有以盈利为目的而使用本仓库的模型资源的行为均与仓库创建者无关, 仓库中每个模型的所有权均属于这个模型的作者或创作团队, 若侵权请联系: [email protected] 及时删除