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

thinking-orbs-vue3

v0.1.1

Published

Vue 3 port of the dotted thought-orb loading indicators for AI and agent UIs

Readme

thinking-orbs-vue3

原 thinking-orbs React 组件的 Vue 3 + TypeScript 转写版本。核心 Canvas 动画算法保持一致,并提供 Vue 单文件组件与完整演示站。

原项目地址:https://github.com/Jakubantalik/thinking-orbs

功能

  • 六种动画状态:working、searching、solving、listening、composing、shaping
  • size 支持任意数值,并自动同步设置 Canvas 宽度和高度
  • 在 20px 与 64px 的原始调优参数之间自动插值,兼顾不同尺寸下的粒子密度与清晰度
  • 支持通过 color 设置粒子主颜色,并保留远近明暗层次
  • auto / dark / light 主题模式
  • 自动跟随祖先节点的 data-theme、.dark、.light 和系统主题
  • speed 动画速度控制
  • paused 暂停控制
  • 支持 prefers-reduced-motion
  • 离屏或标签页隐藏时自动暂停
  • Canvas 属性和事件可直接透传
  • Vue 3 演示页:基于 Reka UI 的状态切换、颜色选择、尺寸/速度滑杆、播放暂停和代码复制

本地运行

npm install
npm run dev

演示站默认运行在 http://localhost:5178。

构建

npm run typecheck
npm run build
npm run build:demo

使用

npm install thinking-orbs-vue3
<script setup lang="ts">
import { ThinkingOrb } from 'thinking-orbs-vue3';
</script>

<template>
  <ThinkingOrb
    state="searching"
    :size="96"
    color="#7c3aed"
    :speed="1.2"
  />
</template>

Props

| 属性 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | state | OrbState | working | 动画状态 | | size | number | 64 | Canvas 的宽度和高度(CSS 像素),支持任意非负数值 | | color | string | - | 粒子主颜色,支持浏览器可识别的 CSS 颜色;未设置时使用主题灰阶 | | theme | auto \| dark \| light | auto | 颜色主题 | | speed | number | 1 | 速度倍率 | | paused | boolean | false | 是否暂停 | | style | CSSProperties | - | Canvas 样式 |

其他属性(如 class、data-*、事件和 aria-label)会传递给内部 <canvas>。设置 size 后,组件会同步更新 Canvas 的 CSS 宽高与高清 backing store。