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

money-loop

v0.1.0

Published

Self-registering money loop web component.

Readme

anime-money-loop

这个仓库现在同时提供两种交付形态:

  1. 站内预览页:npm run build
  2. 外部可嵌入的 Web Component:npm run build:widget

npm install 用法

安装:

npm install money-loop

在你的前端入口里先 import 一次,导入时会自动注册 <money-loop-scene>

import 'money-loop';

然后就可以直接在页面里使用:

<money-loop-scene width="100%" max-width="960px"></money-loop-scene>

如果你的项目有 SSR,确保这段 import 只在浏览器端执行。

外部网站调用

构建 widget:

npm run build:widget

产物位于:

dist-widget/money-loop-scene.js

外部页面只需要引入这一个 module script,然后写自定义标签:

<script type="module" src="/dist-widget/money-loop-scene.js"></script>
<money-loop-scene></money-loop-scene>

可用属性

| 属性 | 说明 | 默认值 | | --- | --- | --- | | paused | 布尔属性,存在即暂停 | 播放中 | | aria-label | 可选无障碍描述 | 内置默认文案 | | width | 组件宽度,如 640px100% | 100% | | max-width | 组件最大宽度,如 1280px | 1280px |

纯 HTML 示例

<!doctype html>
<html lang="en">
  <body style="margin:0;padding:24px;background:#111;">
    <script type="module" src="/dist-widget/money-loop-scene.js"></script>

    <money-loop-scene
      width="800px"
      max-width="1000px"
      aria-label="Money loop demo"
    ></money-loop-scene>
  </body>
</html>

React 页面示例

import 'money-loop';

export function MoneyLoopEmbed() {
  return <money-loop-scene width="100%" max-width="960px" />;
}

暂停示例

<money-loop-scene paused></money-loop-scene>

本地开发

npm run dev

预览页仍走原来的 Vite SPA 入口,导出脚本 export:webm / export:webp 也继续基于 dist/ 工作。

发布到 npm

包名固定为:

money-loop

发布前会自动执行 npm run build:widget,所以直接执行:

npm publish

如果要我代发,给我以下任一种发布权限即可:

  1. 推荐:一个对 money-loop 有发布权限的 npm automation token(配置成当前环境的 NPM_TOKEN)。
  2. 或者你先在当前环境执行 npm adduser 完成登录,我再继续 npm publish