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

@dts-cn/three

v0.185.0

Published

three.js 类型定义的中文注释版(翻译自 DefinitelyTyped 的 @types/three)

Readme

@dts-cn/three

three.js 类型定义的中文注释版,翻译自 DefinitelyTyped 的 @types/three。只改注释、不改类型结构,与英文版结构同构。

使用方式

npm alias 顶替官方类型包,VSCode 零配置生效:

pnpm add -D "@types/three@npm:@dts-cn/three"

翻译规范与同步

  • 规范与术语表:GLOSSARY.md(翻译前必读)
  • 上游同步点:UPSTREAM(记录本包翻译基线对应的上游 commit)
  • 上游变更链:three-types/three-ts-types → DefinitelyTyped types/three → 本包

同步流程见 dts-cn/README.md

发布流程

前置(仅首次):在 npmjs.com 创建名为 dts-cn 的免费组织,本地 npm login

cd dts-cn/three
# devDependencies 的 three: link:. 是本地回归自链接,npm publish 拒绝 link: 协议,
# 且消费方不安装 devDependencies,发布前临时移除、发布后恢复
npm pkg delete devDependencies
npm publish --access public          # scoped 包首发必须 --access public
git checkout package.json            # 恢复 link:. 自链接
pnpm install --filter @dts-cn/three  # 恢复 node_modules/three 符号链接

版本规则:对齐 @types/threemajor.minor(= three 库版本),patch 自增,如 0.185.00.185.1

发布前检查:

# 全量回归
node_modules/.bin/tsc --noEmit -p dts-cn/three/tsconfig.json
# 打包预演(约 413KB,仅含 .d.ts/.d.cts,tests 由 .npmignore 排除)
cd dts-cn/three && npm pack --dry-run