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

astro-utils-workspace

v1.0.0

Published

+ packages/`@astro/yyapi` 平台API `pc`、`mobile` + packages/`@astro/ui-components` ui库 + packages/`@astro/utils` 工具类 + packages/`@astro/pbproto` 交友服务器协议 + packages/`@astro/bytearray` 二进制读写库 + docs 用 `typedoc` 和 `rspress` 文档生成 + packages/`plugin-typedoc` typ

Readme

Astro 基础库

  • packages/@astro/yyapi 平台API pcmobile
  • packages/@astro/ui-components ui库
  • packages/@astro/utils 工具类
  • packages/@astro/pbproto 交友服务器协议
  • packages/@astro/bytearray 二进制读写库
  • docs 用 typedocrspress 文档生成
  • packages/plugin-typedoc typedoc 插件
  • projects/demo 示例

调试

projects/demo 调试

package.json 中添加包的workspace,并执行 pnpm i

{
  "@astro/utils": "workspace:^",
}

实际项目中调试

package.json 中添加包的本地地址,并执行 pnpm i

{
  "@friend/act-utils": "link:[ local path to act-utils]"
}

发布

库之间依赖是通过 workspace:^, 用pnpm publish发布时,才能解析出正确的版本号;另外,需要加--no-git-checks参数, 否则会提示 git 仓库未提交, 导致发布失败。

pnpm publish --no-git-checks

单元测试

pnpm test

test后面可以测试用例名字,如:pnpm test abc, 那么只会跑单元测试文件名包含test关键字,如:abc.test.ts 的用例 node 版本要求 >= 20

文档编写

  1. 在模块目录下创建 README.md ,编写使用说明
  2. 使用 typedoc 风格为导出的函数、类、public 方法等添加注释
  3. docs/rspress.config.ts 中配置文档生成路径
  4. 将代码合并的 master 会自动生成文档,发布上线

在线文档

访问在线文档获取详细的 API 文档和使用示例。

代码规范

  • 保持代码风格一致
  • 编写完整的类型声明
  • 添加必要的单元测试
  • 及时更新文档