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

gamegold

v6.7.10

Published

Vallnet Core for Wallet

Readme

百谷王链

百谷王链是一个通用区块链引擎,可作为公链/许可链应用的底层引擎技术,原生支持跨链,内置二十余种托管合约,覆盖验签、资产发行、ABS等业务场景,开箱即用。支持多语言SDK、Restful RPC、消息队列插件等多样化集成/交互模式。

本项目可以直接启动并成为百谷王生态系统中的一个全节点,承担全局信息交换、记账等工作,可通过丰富的配置参数进行个性化定制。也可以将本项目作为依赖项引入第三方工程,以实现更大自由度的定制化开发。

安装指南

一、克隆项目

1、安装 nodejs 12.x 版本

2、克隆代码仓库

git clone https://github.com/bookmansoft/gamegold

3、安装依赖库

cd gamegold
npm i
npm link

4、运行项目

npm start

5、新开一个命令窗口,执行一条控制台命令

vc help
vc block.info.byheight 0

二、npm安装模式

1、在现有nodejs项目根目录下,执行如下命令:

npm i gamegold

2、将 node_modules/gamegold/.gamegold 目录,完整拷贝到主项目根目录下,根据需要进行个性化配置

3、在现有项目的js文件中,引用核心库:

const gamegold = require('gamegold');

标准程序应用范例,详见 ./bin/node 控制台应用范例,详见 ./bin/cli

关联项目

全节点示范项目,依赖包引入模式 https://github.com/bookmansoft/gamegoldnode

中台管理系统 https://github.com/bookmansoft/gamegoldmanager

API说明文档 https://github.com/bookmansoft/gamegoldapi

NPM 两阶段验证对 publish 的影响

你踩的是"包级 2FA 死锁"

npm 现在对所有包(尤其是有一定下载量的旧包)会自动 enroll 进包级 2FA 政策。规则是 :

All packages now require two-factor authentication or a granular access token with bypass 2FA enabled​ for creating and publishing packages.

也就是说链路是这样的:

你账号层关了 2FA → npm profile get应该显示 "twoFactorAuth": false

但 gamegold这个包被 npm 强制开了包级 2FA​ → 包设置里默认是 "Require 2FA or granular token with bypass 2FA"

你本地 .npmrc里的 _authToken是老 token(要么是 classic 要么是没勾 bypass 2FA 的 granular),它既过不了账号 2FA 检查(你关了),也过不了包级 2FA 检查(token 没 bypass)→ 死锁 403​

所以"关 2FA"这一步反而把你往坑里推了一把——账号关了,包级还在要 2FA,老 token 又没 bypass,三面夹击。

(推荐):网页生成 Granular Token,勾 Bypass 2FA

这是 npm 现在给的"合法免 OTP"出口,也顺便解决你上一轮问的跨机共享——token 字符串拷过去就能用:

去 npmjs.com → 头像 → Access Tokens​ → Generate New Token

选 Granular Access Token

权限勾 Read and Write(或只 Publish)

关键:勾选 Bypass two-factor authentication for this token​ ☑️

Expiration 最长 90 天(2025/11 之后硬性限制 )

生成后复制 npm_……那段,只显示一次

本地写进 .npmrc(可能的路径 C:\Users\yourname.npmrc), 或者行命令执行:

npm config set //registry.npmjs.org/:_authToken=你刚拷的npm_开头那串
npm whoami     # 能打出用户名就 OK
npm publish --access public

⚠️ 2026 年 5 月那次 npm 把所有 bypass-2FA 的 write token 一刀切作废过一次,所以这个 token 90 天后必过期,CI 里用的记得日历提醒轮换,别哪天突然 403 懵掉。