npm 的完整公共数据集可通过 公共注册表 获取。使用 CouchDB 复制,你可以获得所有元数据的完整副本,并且在我们的使用条款范围内,下载 tarball 副本进行检查或实验是可以接受的。

¥npm's full public dataset is available via the public registry. Using CouchDB replication, you can get a full copy of all metadata, and it is acceptable within our terms of use to download copies of tarballs for inspection or experimentation.

npm 的 网站 也提供软件包元数据。我们允许 GoogleBot 等商业爬虫程序索引此内容。我们酌情允许实验性爬虫访问网站,前提是它们的请求速度保持在每秒 1 个请求或更少。按照这个速度,索引所有软件包需要 3 天时间,因此如果你需要我们元数据的完整副本,通过复制访问数据总是更快,只需一两个小时即可提供完整数据,之后将自动保持同步。

¥npm's website also has package metadata available. We allow this content to be indexed by commercial crawlers such as GoogleBot. At our discretion, we also allow experimental crawlers to access the site, as long as they keep their request velocity to 1 request per second or less. At that velocity, indexing all packages would take 3 days, so if you want a full copy of our metadata it is always going to be faster to access the data via replication, which takes only an hour or two to provide full data and will thereafter automatically stay in sync.

如果你不想安装 CouchDB 来管理复制,我们提供 开源软件,它可以让你轻松同步到注册表的公共 feed。

¥If you do not wish to install CouchDB to manage replication, we provide open source software that makes it easy to sync to the registry's public feed.

如果你尝试通过高速爬取 npm 网站来访问软件包元数据,我们保留限制或封禁你的 IP、用户代理或两者的权利。

¥If you attempt to access package metadata by high-velocity crawling of the npm website, we reserve the right to rate-limit or ban your IP, user-agent or both.

npm v11.4 中文网 - 粤ICP备13048890号