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

@trustbaseai/node

v0.3.9

Published

TrustChain 盒子节点一键安装: trustchaind 跟随者(剪枝) + 可选 tct-p2p 数据面, state-sync 入网

Readme

@trustbaseai/node

TrustChain 盒子节点一键安装包。装出来 = trustchaind 跟随者(剪枝省盘)+ 可选 tct-p2p 数据面节点,state-sync 快速入网。

前置

  • Linux 盒子(arm64 / amd64),Node.js ≥ 18
  • sudo 权限
# Ubuntu/Debian 装 Node 18+(如已装跳过)
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo bash - && sudo apt install -y nodejs

安装

npm install -g @trustbaseai/node      # 或本地包: npm install -g ./trustbaseai-node-0.1.0.tgz
trustbase-node install                # 需 sudo, 幂等, 可重复跑
trustbase-node status                 # 看高度/peers

可选项

# 装 DHT 数据面 (拿到 bootstrap 地址后)
sudo DHT_BOOTSTRAP=/ip4/43.143.70.90/udp/50050/quic-v1/p2p/<peerID> trustbase-node install

# 自定义数据目录/节点名
sudo TB_HOME=/root/.trustchain TB_MONIKER=my-box trustbase-node install

带盒子回家/换网络

在任意网络装好同步后,直接拔电带走:新网络插上电和网线,节点会自动通过公网入口(43.143.70.90)继续跟随链。无需任何重新配置。

防火墙加固(可选,手动)

先在装好的网络里确认能 SSH,再按此配方(防自锁,含死人开关):

echo 'AddressFamily inet' | sudo tee /etc/ssh/sshd_config.d/00-lan-only.conf
sudo systemctl restart ssh
sudo ufw logging off        # ARM 定制内核缺 xt_LOG, 必须关 logging
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow from <你的内网段, 如 192.168.31.0/24> to any port 22 proto tcp
sudo ufw allow 50050/udp
(sleep 240; sudo ufw disable) &   # 死人开关
sudo ufw --force enable
# 立刻从另一台设备验证 SSH 能连 → 能就连上跑: pkill -f 'sleep 240'

注意

  • 本包是跟随者节点,永远不参与共识投票(盒子的设计定位)
  • 二进制为舰队现行生产版(trustchaind arm64=ba40c3bb / amd64=81918f58),升级随包版本发布