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

@fab-orbita/cli

v3.4.9

Published

Fab Orbita CLI — клиент российского реестра пакетов FAB Registry (единственная зависимость — своя @fab-orbita/qr)

Readme

FAB CLI

English: README.en.md · 中文: README.zh.md · Русский: README.md

npm version License: MIT Node.js Version Downloads

俄罗斯软件包注册表 FAB Registry 的官方命令行工具。支持 Linux、Windows 和 macOS,并提供俄语命令别名。

贡献指南:CONTRIBUTING.md

功能特性

  • 极少的依赖 — 唯一的运行时依赖是 @fab-orbita/qr(二维码登录),其余均为 Node.js 标准库
  • 已通过外部安全审计 — 全部 32 项发现已在 3.4.2–3.4.8 版本中修复(2026-11-22)
  • 完整的俄语支持 — 命令及别名为俄语(войти、опубликовать、установить 等)
  • 硬件安全密钥 — 支持 YubiKey、Rutoken 等 FIDO2 密钥
  • 二维码登录 — 通过 FAB 手机应用授权
  • AI 安全审计 — 智能检测依赖漏洞
  • 通过 Sberbank 支付 — 用于商业包与订阅
  • 组织与团队管理 — 完整的访问控制生命周期
  • 私有包 — 安全存储与分发专有代码
  • 完整的包管理器 — 安装、更新、删除、搜索

安装

需要 Node.js 18 或更高版本。

npm install --global @fab-orbita/cli
fab --version
fab doctor

升级 CLI:

npm install --global @fab-orbita/cli@latest

备选:安装脚本

从仓库 / 网站安装(脚本下载二进制文件并在安装前校验 SHA256 —— Linux/macOS 与 Windows 均如此):

# Linux / macOS
curl -fsSL https://fab.devorbit.ru/install.sh | bash

# Windows (PowerShell)
iwr https://fab.devorbit.ru/install.ps1 -UseBasicParsing | iex

脚本源码:本仓库中的 scripts/install.sh、scripts/install.ps1。

系统要求

FAB CLI 需要:

  • Node.js 18.0.0 或更高版本
  • 系统中的 tar 工具

检查 tar 是否可用:

tar --version

若缺少 tar,请安装:

| 操作系统 | 命令 | |---|---| | Linux (Ubuntu/Debian) | sudo apt install tar | | Linux (RHEL/CentOS) | sudo yum install tar | | macOS | 已预装 | | Windows | Windows 10+ 已预装,或通过 Git Bash / WSL |

提示:运行 fab doctor 可进行完整的系统诊断。

快速开始

公开包无需注册或登录即可搜索与安装:

fab search shield
fab list
fab info fab-orbita/shield
fab install fab-orbita/shield

私有包、发布与组织管理需要登录:

fab login          # 邮箱/密码
fab login --qr     # 二维码:在 fab.devorbit.ru/login/qr 确认
fab qr --login     # 同一 QR 流程的别名命令
fab whoami

fab login --qr 与 fab qr --login 是同一个二维码登录(一条命令的两个名字)。

二维码输出(fab qr)

| 格式 | 说明 | |--------|------| | 终端 | half-block Unicode(紧凑渲染) | | PNG | 真正的 image/png(qrToPNG)—— 非终端字符画 | | SVG | viewBox + margin |

⚠️ 3.4.0 破坏性变更: PNG 为真正的 image/png,QR 登录负载改为纯 URL(不再使用 JSON)。公开 API src/utils/qrcode.ts 保持不变。详见 CHANGELOG → [3.4.0]。

创建并发布包:

fab init --from package.json
fab validate
fab pack
fab publish --access public

正式发布前可先预览:

fab publish --dry-run

项目依赖

FAB 将依赖保存在 fab.json 中,并把已安装的版本与校验和(sha256)记录到 fab-lock.json。

fab install fab-orbita/shield --save
fab install example/testing-library --save-dev
fab update
fab outdated
fab why fab-orbita/shield
fab uninstall fab-orbita/shield

同时支持 organization/package 与 @organization/package 两种名称格式。

安全

fab audit
fab audit --severity high
fab audit --fix

fab audit 可基于 fab.json、fab-lock.json 或 package.json 工作。安全修复不会强制升级不兼容的 major 版本。

主要命令

| 命令 | 用途 | | --- | --- | | fab login | 登录注册表 | | fab logout | 退出登录 | | fab whoami | 当前用户信息 | | fab profile | 管理用户资料 | | fab qr | 生成登录二维码 | | fab security-key | 管理硬件密钥 | | fab audit | 依赖安全审计 | | fab team | 管理组织团队 | | fab init | 创建 fab.json | | fab publish | 发布包 | | fab install <package> | 安装包 | | fab uninstall | 删除包 | | fab update [packages...] | 更新依赖 | | fab outdated | 显示过期包 | | fab info <package> | 包信息 | | fab versions <package> | 包版本列表 | | fab deprecate <package@version> | 标记版本为弃用 | | fab undeprecate <package@version> | 取消弃用标记 | | fab search [query] | 搜索包 | | fab org <action> | 管理组织 | | fab token <action> | 管理令牌 | | fab config <action> | CLI 设置 | | fab clean | 清理临时文件与缓存 | | fab doctor | 环境诊断 | | fab stats | 使用统计 | | fab webhook | 管理 webhook 通知 | | fab star / fab unstar | 收藏 | | fab stars | 收藏包列表 | | fab run | 运行 fab.json 中的脚本 | | fab list | 公开包列表 | | fab cache | 缓存管理 | | fab pack | 创建包归档 | | fab validate | 校验 fab.json | | fab version | 管理包版本 | | fab why | 解释依赖为何存在 | | fab completion bash\|zsh\|fish | Shell 自动补全 |

完整且最新的帮助可直接在 CLI 中查看:

fab --help
fab install --help
fab publish --help

自动化请使用全局 --json 标志;隐藏欢迎横幅请使用 --no-banner。

自定义注册表地址

单次运行可显式传入地址:

fab install organization/package --registry https://fab.example.ru
fab publish --registry https://fab.example.ru

默认地址为 https://fab.devorbit.ru,保存在 ~/.fab/config.json(字段 registry,仅字符串)。

「Реестр [object Object] недоступен」

若 fab login 输出此错误,说明 ~/.fab/config.json 中的 registry 字段已损坏(对象而非 URL;CLI 3.3.2 之前出现过)。修复方法:

# 方案1:显式指定注册表
fab login --registry=https://fab.devorbit.ru

# 方案2:重置配置(令牌会被删除,registry 回到默认值)
rm ~/.fab/config.json
fab login

自 3.3.2+ 起,getRegistrySync 会忽略非字符串值并回退到默认地址。

使用技巧

自动化

CI/脚本中使用 --json 获取机器可读输出:

fab search shield --json | jq '.items[].name'
fab info fab-orbita/shield --json

关闭横幅

集成到其他工具时:

fab install fab-orbita/shield --no-banner

使用私有包

安装私有包需要令牌:

export FAB_TOKEN=your_token_here
fab install my-org/private-package

自动补全

为你的 shell 添加补全:

# bash
fab completion bash >> ~/.bashrc

# zsh
fab completion zsh >> ~/.zshrc

# fish
fab completion fish > ~/.config/fish/completions/fab.fish

开发

npm ci
npm run build
npm test
npm pack --dry-run

常规单元测试不得访问生产 API。集成测试凭据只能通过环境变量提供,切勿写入源码或 npm 包。

统计

查看包与组织的使用统计:

# 个人面板
fab stats

# 组织统计
fab stats org --org my-company

# 热门包
fab stats top --top 20

# 下载统计
fab stats downloads --days 7

支持

许可证

MIT © ООО «ДЕВОРБИТ»