{"_id":"live2d-widgets","_rev":"11-840b7b8ec3076789800bb9c993d5f58f","name":"live2d-widgets","dist-tags":{"latest":"1.0.1"},"versions":{"0.9.0":{"name":"live2d-widgets","version":"0.9.0","keywords":["Live2d"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@0.9.0","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"5ed6ce93a124b27de1989706c4e242529f5c2543","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-0.9.0.tgz","fileCount":25,"integrity":"sha512-3bvw3z/8Nyt/EGuwvTC3qW1nKMomxOjkqEWOo60DzKWcxrVskDdkPAUKRCXYhmSw+rdI9VQgmPoP7D8XP47ECw==","signatures":[{"sig":"MEQCIFDUlkSzA9yzhVBtbNHLpTdSs772BF6Bb7gCzYcLS8hwAiAEt8MQmFCH0VWXj+NbPR0ni/RqJfIs91EdknKS8p6Jgg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":886377},"main":"autoload.js","type":"module","gitHead":"ff687ea3de32320fc0f19d0f0f6706a8446a4d60","scripts":{"build":"rollup -c rollup.config.js -f iife | terser -c -m > waifu-tips.js","build-dev":"rollup -c rollup.config.js -f iife -o waifu-tips.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"10.9.0","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"23.2.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^3.2.3","terser":"^5.15.1","@rollup/pluginutils":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.0","@fortawesome/fontawesome-free":"^6.2.0"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_0.9.0_1735227342474_0.7420878093842611","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.1":{"name":"live2d-widgets","version":"1.0.0-rc.1","keywords":["Live2d"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.1","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"0e497a88688ff20089700b2eafa402724c97083d","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.1.tgz","fileCount":64,"integrity":"sha512-krMIa7gpVSCpSFW+suSPA4XCfGJNsGjmTIZSHAB3WgOaxakj+OqASoPKtspBFrdGU7olM5+9GGKS+U2OOF9YEA==","signatures":[{"sig":"MEUCIAhJPck81EGAoO+bhRj1KH6OsrskV/K0EOvWkRI0SJC+AiEA6lbB9vo/lYyH3jlHCGuKDlVw3Kx1xRVZGcppKUml2w0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":517507},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"a8ce50339e49d091775ca759bccc98f386481424","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"10.9.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"23.11.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.26.0","rollup":"4.40.2","@eslint/js":"9.26.0","typescript":"5.8.3","@types/node":"22.15.14","typescript-eslint":"8.32.0","@rollup/pluginutils":"5.1.4","@rollup/plugin-terser":"0.4.4","@rollup/plugin-node-resolve":"16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.1_1747471067640_0.8266641925175111","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"live2d-widgets","version":"0.9.1","keywords":["Live2d"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@0.9.1","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"de8cfa73a328af30bbc15d2d72610a588a542569","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-0.9.1.tgz","fileCount":21,"integrity":"sha512-uzAhXJ0tmmb9EAfA/obUSSNX/QRq9DGxLLvkb2RKPf3FU2NSchAfYlzfGaqrK2tqI0zGuPQuzUGFthUhyYoY7A==","signatures":[{"sig":"MEUCIADYwjtxXNElZplYWgmlJ5yarn5YGqcEPqewMH0UIW3EAiEA29kSBwPSpPczirvz7vbHpA2xtkm2XOByv1/Awf2jyYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":886859},"main":"autoload.js","type":"module","gitHead":"44475ebb1e0ed64cce47a6569307682264d88ef0","scripts":{"build":"rollup -c rollup.config.js -f iife | terser -c -m > waifu-tips.js","build-dev":"rollup -c rollup.config.js -f iife -o waifu-tips.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"10.9.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"23.11.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^3.2.3","terser":"^5.15.1","@rollup/pluginutils":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.0","@fortawesome/fontawesome-free":"^6.2.0"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_0.9.1_1747492988544_0.862392507009506","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.2":{"name":"live2d-widgets","version":"1.0.0-rc.2","keywords":["Live2d","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.2","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"6ff6a44ffe1b45deed8ee84d666caac20e3063b2","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.2.tgz","fileCount":72,"integrity":"sha512-ohgIsodaKijucFs4HeIh3P/9kN9NKhDMMUCGtH2Km7OfTaUqir5pMl/SZSvGnliGL+mtelXvKm+tpahISbRNDQ==","signatures":[{"sig":"MEYCIQC1TxlIXMnsDWadoMZK+Q+BflcKhPXCM8X1bTQf/9hS3AIhAI5UMsT44T9YzcC8hoZ++6mGQ3dGVqeNtDF21Qs0RkD2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1119225},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"cf333ed9be57a9214e78e61385dd9b28fbba27a3","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"10.9.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"23.11.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.26.0","rollup":"4.40.2","@eslint/js":"9.26.0","typescript":"5.8.3","@types/node":"22.15.14","typescript-eslint":"8.32.0","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.2_1747548287468_0.3010968867316799","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.3":{"name":"live2d-widgets","version":"1.0.0-rc.3","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.3","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"fa315259fdf2b542de361e3deca28f02a1c6905b","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.3.tgz","fileCount":79,"integrity":"sha512-hvMNRuZId6RPSQ1EKY1/3wrFgVkHYyKlOPW6LJGDREzPTzxrpuagcVFvKwEBAetIbv1F7cUIMiPXL6ILUNxt0g==","signatures":[{"sig":"MEUCIBR0UmoekANxnUiyZ/e/tHNRGo4rEmQrsExZ9kSJM5LIAiEAjcwu9tpCfsIDcdaas6yQDZyMZl1Low8UjD6ybvlqNh8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2258456},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"529225ccfc356c5df1c1b49cc85cf1d53b6e002c","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"10.9.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"23.11.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.27.0","rollup":"4.41.1","@eslint/js":"9.27.0","typescript":"5.8.3","@types/node":"22.15.21","typescript-eslint":"8.32.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.3_1748182606695_0.4003356756269938","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.4":{"name":"live2d-widgets","version":"1.0.0-rc.4","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.4","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"b0a8baae51bdba027839c15b0ecc39fb8b4a4042","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.4.tgz","fileCount":79,"integrity":"sha512-Mi8rspNhs9lM3uatkRfltp8W49ufqRUPORh028mZ+IQfv5KuZGawIvw+tqCSjGQppzkNDMXFUwKAVYEv+20uDQ==","signatures":[{"sig":"MEUCICC7L+nNgdR3uP60dfZ59tIOD0xzSRsSB8MTUxIfOShGAiEAyjQ9M25i/q0Zoc5KkFxur1R1c2O26iq72xEZAgxZ3HI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2270502},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"8883dabea775cfebbefe94f0dee14620982d8933","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"11.4.1","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.27.0","rollup":"4.41.1","@eslint/js":"9.27.0","typescript":"5.8.3","@types/node":"22.15.21","typescript-eslint":"8.32.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.4_1749149168803_0.04269257645327462","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.5":{"name":"live2d-widgets","version":"1.0.0-rc.5","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.5","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"5bdaf980a1afddf30709bd655449e8f495ebde46","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.5.tgz","fileCount":79,"integrity":"sha512-GS9RhsvTehDJu4W85UE8UWEE9KQceqAyx0HubNCS0dsnAdHQPUHFeg/SPH7ElxIobbj3GwWwoqD7ijuGqX0/pw==","signatures":[{"sig":"MEUCIBVW8Nt5WoYZZjz+meeuTcbs2FcaQEMUqRFG2TbkmYIGAiEA8/QxynZUQVLEHZXkDE9XYO5RVHt/X3C9uWuKNSTRR2c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2248651},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"2e5999ca2b881be4372b1f1410b5b9c26345a128","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","actor":{"name":"stevenjoezhang","type":"user","email":"stevenjoezhang@gmail.com"},"email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"11.4.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.27.0","rollup":"4.41.1","@eslint/js":"9.27.0","typescript":"5.8.3","@types/node":"22.15.21","typescript-eslint":"8.32.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.5_1751858650873_0.5840745035112758","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.6":{"name":"live2d-widgets","version":"1.0.0-rc.6","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.6","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"defc3f85c06bb109c92eb7691715c3af571f4b5c","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.6.tgz","fileCount":79,"integrity":"sha512-0hqTeBPKiJ/3lO02QLgASOZx+NHshqpRCWY4pEzYZB5Cgvh1dMrjkX9W/odLYiu2A28jk9Cb1sOMIqyC9Fy3Bg==","signatures":[{"sig":"MEYCIQDTYn+F8brh5k48BlU32FDQTLvdvNzB22SnaKNAMKcTAQIhAOM8IhMORT+ZuOBCn/cWnEEnc5hBPEaIEKRT7JN3MjL1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2248183},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"6bc8e7fc12aa9165af1453d557430893563733c1","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w"},"_npmUser":{"name":"stevenjoezhang","actor":{"name":"stevenjoezhang","type":"user","email":"stevenjoezhang@gmail.com"},"email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"11.4.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.27.0","rollup":"4.41.1","@eslint/js":"9.27.0","typescript":"5.8.3","@types/node":"22.15.21","typescript-eslint":"8.32.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.6_1751886314788_0.1722230923120629","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-rc.7":{"name":"live2d-widgets","version":"1.0.0-rc.7","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0-rc.7","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"c66700a58385a9632c460e087e862d750388e334","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0-rc.7.tgz","fileCount":79,"integrity":"sha512-mxzlWkGJx790sH2CcsuVfwE81zOfhZtRGu70MwtSOZ/2kmw+uuxm3JW9NpN4y38WucOsL9+8x9FrPiODU56n/g==","signatures":[{"sig":"MEUCIEBxt62MRRnQXfOKg7romsQYyc9FPnmRY+DXfgQopYYlAiEA1PkSvOWysdWbtIL3hIEriOCpPmKWoQLZQ6Oi8LOIRwg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2248230},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"c2a06ae5ebb463df83afa855ccc18e2d493943bf","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"11.4.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.27.0","rollup":"4.41.1","@eslint/js":"9.27.0","typescript":"5.8.3","@types/node":"22.15.21","typescript-eslint":"8.32.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0-rc.7_1755078552743_0.39851977045694675","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"live2d-widgets","version":"1.0.0","keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","_id":"live2d-widgets@1.0.0","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"dist":{"shasum":"6f5a68daf3e913d234a5e3ab97e80da4f2716403","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.0.tgz","fileCount":80,"integrity":"sha512-T6Dun2E98rcDh5o1ZHy5t+BSf8tqGOSTsJjTPgQIMb/BFcDBB2DQJtKKHFocSAiUPOPtaYJUp/gbli5X/F1acQ==","signatures":[{"sig":"MEUCIDW4c+MzpFO76uidkuN2aJgBho9DHQbcE/ecaxatx1v1AiEA4afV9Euq/a2LXEZRURdhY/F90n/PpS1eXX66VHFOpog=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2254498},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"fa963c6313774603c7a07b57f3dc9f2cebdd9590","scripts":{"build":"tsc && rollup -c rollup.config.js","eslint":"eslint src/","build-dev":"rollup -c rollup.config.js -w","prepublishOnly":"npm run build"},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"repository":{"url":"git+https://github.com/stevenjoezhang/live2d-widget.git","type":"git"},"_npmVersion":"11.6.2","description":"Live2D widget for web pages","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@fortawesome/fontawesome-free":"6.7.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.38.0","rollup":"4.52.5","@eslint/js":"9.38.0","typescript":"5.9.3","@types/node":"22.18.11","typescript-eslint":"8.46.1","@rollup/plugin-alias":"5.1.1","@rollup/plugin-terser":"0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/live2d-widgets_1.0.0_1764507766158_0.22153944171058604","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"live2d-widgets","version":"1.0.1","description":"Live2D widget for web pages","main":"build/index.js","types":"build/index.d.ts","type":"module","scripts":{"build":"tsc && rollup -c rollup.config.js","build-dev":"rollup -c rollup.config.js -w","eslint":"eslint src/","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/stevenjoezhang/live2d-widget.git"},"keywords":["Live2D","WebGL"],"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","dependencies":{"@fortawesome/fontawesome-free":"7.2.0"},"devDependencies":{"@eslint/js":"9.38.0","@rollup/plugin-alias":"6.0.0","@rollup/plugin-terser":"1.0.0","@types/node":"24.12.4","eslint":"9.38.0","rollup":"4.60.4","typescript":"5.9.3","typescript-eslint":"8.59.4"},"gitHead":"4a9b54109066ef7bc50e8b34e72a3c5e5098d0e7","_id":"live2d-widgets@1.0.1","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-1F45YXjROjHohc0WhQsJZjRSASm2SeF+S1ou+YZzMVAf8xRqn8hlkAnY4T/eNJyUnn9AS7DJnYdIrr8cXwwBGA==","shasum":"772037a2468697be054eb9563364aa8ac726cd7b","tarball":"https://registry.npmjs.org/live2d-widgets/-/live2d-widgets-1.0.1.tgz","fileCount":80,"unpackedSize":2259114,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDE5KUsgCK7VtJnM/EUxfLHEDWne0XgoVW/ODUAX97JFgIhAMmjSL6YFOKOEwhfUO66qKUdbNroDMi+L41drAjkHd2k"}]},"_npmUser":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"directories":{},"maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/live2d-widgets_1.0.1_1779423052331_0.23623521853143048"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-26T15:35:42.473Z","modified":"2026-05-22T04:10:52.629Z","0.9.0":"2024-12-26T15:35:42.784Z","1.0.0-rc.1":"2025-05-17T08:37:47.833Z","0.9.1":"2025-05-17T14:43:08.783Z","1.0.0-rc.2":"2025-05-18T06:04:47.702Z","1.0.0-rc.3":"2025-05-25T14:16:47.004Z","1.0.0-rc.4":"2025-06-05T18:46:09.158Z","1.0.0-rc.5":"2025-07-07T03:24:11.120Z","1.0.0-rc.6":"2025-07-07T11:05:15.040Z","1.0.0-rc.7":"2025-08-13T09:49:12.990Z","1.0.0":"2025-11-30T13:02:46.424Z","1.0.1":"2026-05-22T04:10:52.529Z"},"bugs":{"url":"https://github.com/stevenjoezhang/live2d-widget/issues"},"author":{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"},"license":"GPL-3.0-or-later","homepage":"https://github.com/stevenjoezhang/live2d-widget#readme","keywords":["Live2D","WebGL"],"repository":{"type":"git","url":"git+https://github.com/stevenjoezhang/live2d-widget.git"},"description":"Live2D widget for web pages","maintainers":[{"name":"stevenjoezhang","email":"stevenjoezhang@gmail.com"}],"readme":"# Live2D Widget\n\n![](https://forthebadge.com/images/badges/built-with-love.svg)\n![](https://forthebadge.com/images/badges/made-with-typescript.svg)\n![](https://forthebadge.com/images/badges/uses-css.svg)\n![](https://forthebadge.com/images/badges/contains-cat-gifs.svg)\n![](https://forthebadge.com/images/badges/powered-by-electricity.svg)\n![](https://forthebadge.com/images/badges/makes-people-smile.svg)\n\n[English](README.en.md)\n\n## 特性\n\n- 在网页中添加 Live2D 看板娘\n- 轻量级，除 Live2D Cubism Core 外无其他运行时依赖\n- 核心代码由 TypeScript 编写，易于集成\n\n<img src=\"demo/screenshots/screenshot-2.png\" width=\"280\"><img src=\"demo/screenshots/screenshot-3.png\" width=\"280\"><img src=\"demo/screenshots/screenshot-1.png\" width=\"270\">\n\n*注：以上人物模型仅供展示之用，本仓库并不包含任何模型。*\n\n你也可以查看示例网页：\n\n- 在 [米米的博客](https://zhangshuqiao.org) 的左下角可查看效果\n- [demo/demo.html](https://live2d-widget.pages.dev/demo/demo)，展现基础功能\n- [demo/login.html](https://live2d-widget.pages.dev/demo/login)，仿 NPM 的登陆界面\n\n## 使用\n\n如果你是小白，或者只需要最基础的功能，那么只用将这一行代码加入 html 页面的 `head` 或 `body` 中，即可加载看板娘：\n\n```html\n<script src=\"https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.1/dist/autoload.js\"></script>\n```\n\n添加代码的位置取决于你的网站的构建方式。例如，如果你使用的是 [Hexo](https://hexo.io)，那么需要在主题的模版文件中添加以上代码。对于用各种模版引擎生成的页面，修改方法类似。  \n如果网站启用了 PJAX，由于看板娘不必每页刷新，需要注意将该脚本放到 PJAX 刷新区域之外。\n\n**但是！我们强烈推荐自己进行配置，让看板娘更加适合你的网站！**  \n如果你有兴趣自己折腾的话，请看下面的详细说明。\n\n## 配置\n\n你可以对照 `dist/autoload.js` 的源码查看可选的配置项目。`autoload.js` 会自动加载两个文件：`waifu.css` 和 `waifu-tips.js`。`waifu-tips.js` 会创建 `initWidget` 函数，这就是加载看板娘的主函数。`initWidget` 函数接收一个 Object 类型的参数，作为看板娘的配置。以下是配置选项：\n\n| 选项 | 类型 | 默认值 | 说明 |\n| - | - | - | - |\n| `waifuPath` | `string` | `https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.1/dist/waifu-tips.json` | 看板娘资源路径，可自行修改 |\n| `cdnPath` | `string` | `https://fastly.jsdelivr.net/gh/fghrsh/live2d_api/` | CDN 路径 |\n| `cubism2Path` | `string` | `https://fastly.jsdelivr.net/npm/live2d-widgets@1.0.1/dist/live2d.min.js` | Cubism 2 Core 路径 |\n| `cubism5Path` | `string` | `https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js` | Cubism 5 Core 路径 |\n| `modelId` | `number` | `0` | 默认模型 id |\n| `tools` | `string[]` | 见 `autoload.js` | 加载的小工具按钮 |\n| `drag` | `boolean` | `false` | 支持拖动看板娘 |\n| `showToggleAfterQuit` | `boolean` | `true` | 点击关闭后是否显示重新唤起按钮；若设为 `false`，则会永久关闭，直到清除本地存储 |\n| `logLevel` | `string` | `error` | 日志等级，支持 `error`，`warn`，`info`，`trace` |\n\n## 模型仓库\n\n本仓库中并不包含任何模型，需要单独配置模型仓库，并通过 `cdnPath` 选项进行设置。  \n旧版本的 `initWidget` 函数支持 `apiPath` 参数，这要求用户自行搭建后端，可以参考 [live2d_api](https://github.com/fghrsh/live2d_api)。后端接口会对模型资源进行整合并动态生成 JSON 描述文件。自 1.0 版本起，相关功能已通过前端实现，因此不再需要专门的 `apiPath`，所有模型资源都可通过静态方式提供。只要存在 `model_list.json` 和模型对应的 `textures.cache`，即可支持换装等功能。\n\n## 开发\n\n如果以上「配置」部分提供的选项还不足以满足你的需求，那么你可以自己进行修改。本仓库的目录结构如下：\n\n- `src` 目录下包含了各个组件的 TypeScript 源代码，例如按钮和对话框等；\n- `build` 目录下包含了基于 `src` 中源代码构建后的文件（请不要直接修改！）；\n- `dist` 目录下包含了进一步打包后网页直接可用的文件，其中：\n  - `autoload.js` 用于自动加载其它资源，例如样式表等；\n  - `waifu-tips.js` 是由 `build/waifu-tips.js` 自动打包生成的，不建议直接修改；\n  - `waifu.css` 是看板娘的样式表；\n  - `waifu-tips.json` 中定义了触发条件（`selector`，CSS 选择器）和触发时显示的文字（`text`）。  \n    `waifu-tips.json` 中默认的 CSS 选择器规则是对 Hexo 的 [NexT 主题](https://github.com/next-theme/hexo-theme-next) 有效的，为了适用于你自己的网页，可能需要自行修改，或增加新内容。  \n    **警告：`waifu-tips.json` 中的内容可能不适合所有年龄段，或不宜在工作期间访问。在使用时，请自行确保它们是合适的。**\n\n要在本地部署本项目的开发测试环境，你需要安装 Node.js 和 npm，然后执行以下命令：\n\n```bash\ngit clone https://github.com/stevenjoezhang/live2d-widget.git\nnpm install\n```\n\n如果需要使用 Cubism 3 及更新的模型，请单独下载并解压 Cubism SDK for Web 到 `src` 目录下，例如 `src/CubismSdkForWeb-5-r.4`。受 Live2D 许可协议（包括 Live2D Proprietary Software License Agreement 和 Live2D Open Software License Agreement）限制，本项目无法包含 Cubism SDK for Web 的源码。  \n如果只需要使用 Cubism 2 版本的模型，可以跳过此步骤。本仓库使用的代码满足 Live2D 许可协议中 Redistributable Code 相关条款。  \n完成后，使用以下命令进行编译和打包。\n\n```bash\nnpm run build\n```\n\n`src` 目录中的 TypeScript 代码会被编译到 `build` 目录中，`build` 目录中的代码会被进一步打包到 `dist` 目录中。  \n为了能够兼容 Cubism 2 和 Cubism 3 及更新的模型，并减小代码体积，Cubism Core 及相关的代码会根据检测到的模型版本动态加载。\n\n## 部署\n\n在本地完成了修改后，你可以将修改后的项目部署在自己的服务器上，或者通过 CDN 加载。为了方便自定义有关内容，可以把这个仓库 Fork 一份，然后把修改后的内容通过 git push 到你的仓库中。\n\n### 使用 jsDelivr CDN\n\n如果要通过 jsDelivr 加载 Fork 后的仓库，使用方法对应地变为\n\n```html\n<script src=\"https://fastly.jsdelivr.net/gh/username/live2d-widget@latest/autoload.js\"></script>\n```\n\n将此处的 `username` 替换为你的 GitHub 用户名。为了使 CDN 的内容正常刷新，需要创建新的 git tag 并推送至 GitHub 仓库中，否则此处的 `@latest` 仍然指向更新前的文件。此外 CDN 本身存在缓存，因此改动可能需要一定的时间生效。\n\n### 使用 Cloudflare Pages\n\n也可以使用 Cloudflare Pages 来部署。在 Cloudflare Pages 中创建一个新的项目，选择你 Fork 的仓库。接下来，设置构建命令为 `npm run build`。完成后，Cloudflare Pages 会自动构建并部署你的项目。\n\n### Self-host\n\n你也可以直接把这些文件放到服务器上，而不是通过 CDN 加载。\n\n- 可以把修改后的代码仓库克隆到服务器上，或者通过 `ftp` 等方式将本地文件上传到服务器的网站的目录下；\n- 如果你是通过 Hexo 等工具部署的静态博客，请把本项目的代码放在博客源文件目录下（例如 `source` 目录）。重新部署博客时，相关文件就会自动上传到对应的路径下。为了避免这些文件被 Hexo 插件错误地修改，可能需要设置 `skip_render`。\n\n这样，整个项目就可以通过你的域名访问了。不妨试试能否正常地通过浏览器打开 `autoload.js` 和 `live2d.min.js` 等文件，并确认这些文件的内容是完整和正确的。  \n一切正常的话，接下来修改 `autoload.js` 中的常量 `live2d_path` 为 `dist` 目录的 URL 即可。比如说，如果你能够通过\n\n```\nhttps://example.com/path/to/live2d-widget/dist/live2d.min.js\n```\n\n访问到 `live2d.min.js`，那么就把 `live2d_path` 的值修改为\n\n```\nhttps://example.com/path/to/live2d-widget/dist/\n```\n\n路径末尾的 `/` 一定要加上。  \n完成后，在你要添加看板娘的界面加入\n\n```html\n<script src=\"https://example.com/path/to/live2d-widget/dist/autoload.js\"></script>\n```\n\n就可以加载了。\n\n## 鸣谢\n\n<a href=\"https://www.browserstack.com/\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" height=\"80\" srcset=\"https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780\">\n    <source media=\"(prefers-color-scheme: light)\" height=\"80\" srcset=\"https://live.browserstack.com/images/opensource/browserstack-logo.svg\">\n    <img alt=\"BrowserStack Logo\" height=\"80\" src=\"https://live.browserstack.com/images/opensource/browserstack-logo.svg\">\n  </picture>\n</a>\n\n> 感谢 BrowserStack 容许我们在真实的浏览器中测试此项目。  \n> Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers!\n\n<a href=\"https://www.jsdelivr.com\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" height=\"80\" srcset=\"https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/white/svg/jsdelivr-logo-horizontal.svg\">\n    <source media=\"(prefers-color-scheme: light)\" height=\"80\" srcset=\"https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg\">\n    <img alt=\"jsDelivr Logo\" height=\"80\" src=\"https://raw.githubusercontent.com/jsdelivr/jsdelivr-media/master/default/svg/jsdelivr-logo-horizontal.svg\">\n  </picture>\n</a>\n\n> 感谢 jsDelivr 提供的 CDN 服务。  \n> Thanks jsDelivr for providing public CDN service.\n\n感谢 fghrsh 提供的 API 服务。\n\n感谢 [一言](https://hitokoto.cn) 提供的语句接口。\n\n点击看板娘的纸飞机按钮时，会出现一个彩蛋，这来自于 [WebsiteAsteroids](http://www.websiteasteroids.com)。\n\n## 更多\n\n代码自这篇博文魔改而来：  \nhttps://www.fghrsh.net/post/123.html\n\n更多内容可以参考：  \nhttps://nocilol.me/archives/lab/add-dynamic-poster-girl-with-live2d-to-your-blog-02  \nhttps://github.com/guansss/pixi-live2d-display\n\n更多模型仓库：  \nhttps://github.com/zenghongtu/live2d-model-assets\n\n除此之外，还有桌面版本：  \nhttps://github.com/TSKI433/hime-display  \nhttps://github.com/amorist/platelet  \nhttps://github.com/akiroz/Live2D-Widget  \nhttps://github.com/zenghongtu/PPet  \nhttps://github.com/LikeNeko/L2dPetForMac\n\n以及 Wallpaper Engine：  \nhttps://github.com/guansss/nep-live2d\n\nLive2D 官方网站：  \nhttps://www.live2d.com/en/\n\n## 许可证\n\n本仓库并不包含任何模型，用作展示的所有 Live2D 模型、图片、动作数据等版权均属于其原作者，仅供研究学习，不得用于商业用途。\n\n本仓库的代码（不包括受 Live2D Proprietary Software License 和 Live2D Open Software License 约束的部分）基于 GNU General Public License v3 协议开源  \nhttp://www.gnu.org/licenses/gpl-3.0.html\n\nLive2D 相关代码的使用请遵守对应的许可：\n\nLive2D Cubism SDK 2.1 的许可证：  \n[Live2D SDK License Agreement (Public)](https://docs.google.com/document/d/10tz1WrycskzGGBOhrAfGiTSsgmyFy8D9yHx9r_PsN8I/)\n\nLive2D Cubism SDK 5 的许可证：  \nLive2D Cubism Core は Live2D Proprietary Software License で提供しています。  \nhttps://www.live2d.com/eula/live2d-proprietary-software-license-agreement_cn.html  \nLive2D Cubism Components は Live2D Open Software License で提供しています。  \nhttps://www.live2d.com/eula/live2d-open-software-license-agreement_cn.html\n\n## 更新日志\n\n2020年1月1日起，本项目不再依赖于 jQuery。\n\n2022年11月1日起，本项目不再需要用户单独加载 Font Awesome。\n","readmeFilename":"README.md"}