Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix 安装 nb

查看 nb 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nb

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nb

MacPorts ports tree · office/nb/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nb

Alpine Linux edge package indexes · nb · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#nb

nixpkgs package indexes · pkgs/by-name/nb/nb/package.nix · 来源: api.github.com

概览

软件包摘要

Command-line and local web note-taking, bookmarking, and archiving

命令和别名

  • bookmark
  • nb

历史

项目历史与用法

nb is a shell-script personal knowledge tool: notes, bookmarks, archives, todos, wiki-style links, search, encryption, Git-backed version history, and sync wrapped in one command-line and local-web interface.

项目历史

The GitHub repository was created on 2016-01-12. The project presents itself as a portable, vendor-independent Unix tool rather than a hosted notes service: data lives in plain text formats such as Markdown, Org, LaTeX, and AsciiDoc, and the implementation is deliberately packaged as a single portable script with optional enhancements.

Its design grew around composability with existing command-line habits. The README emphasizes use with Vim, Emacs, VS Code, Sublime Text, Helix, micro, terminal browsers, GUI browsers, Git, Pandoc, OpenSSL/GPG encryption, and standard Unix environments including macOS and Windows via WSL, MSYS, and Cygwin.

采用历史

GitHub API data retrieved on 2026-07-01 showed 8,266 stars and 252 forks. Homebrew Formulae data for the same retrieval showed version 7.25.4 and 2,815 installs over the prior 365 days. The npm package nb.sh was created on 2020-06-17 and the npm downloads API reported 1,450 downloads for 2026-05-30 through 2026-06-28.

The package sits in the command-line PKM and plain-text productivity niche: large enough to be packaged by common package managers and discussed by terminal-tool users, but still most useful to people who already want their notes and bookmarks as files rather than SaaS records.

使用方式

Package nerds use nb as a local-first notebook and bookmark database: add notes from the terminal, save URLs as cleaned Markdown, search cached page text with regular expressions, tag and pin items, and let Git record revisions and synchronize notebooks.

A typical setup is intentionally boring: install nb, keep ~/.nbrc for preferences, point it at an editor, and optionally add Pandoc, ripgrep/ag/grep, browser helpers, GPG/OpenSSL, and remote Git sync as the workflow grows.

为什么软件包爱好者会关心

nb is interesting because it is not a new storage backend. It packages a familiar Unix stack into a cohesive notes/bookmarks/archive workflow while keeping the escape hatch obvious: the data remains ordinary files under Git.

时间线

  • 2016-01-12: xwmx/nb repository created on GitHub.
  • 2020-06-17: nb.sh package created on npm.
  • 2026-04-28: nb 7.25.4 release published on GitHub.
  • 2026-07-01: Homebrew Formulae reported stable version 7.25.4.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 6 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.nbrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bookmarkcli全局可执行文件
nbcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本7.25.4
管理器更新时间2026-06-14
本地数据OK
上游当前
检测到的最新版本7.25.4

https://github.com/xwmx/nb

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:nb
版本7.25.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nb
主页https://xwmx.github.io/nb
仓库https://github.com/xwmx/nb
上游文档https://github.com/xwmx/nb#readme
许可证AGPL-3.0-or-later
源码归档https://github.com/xwmx/nb/archive/refs/tags/7.25.4.tar.gz
最后更新2026-06-14T05:08:25Z
Pulseupdated
依赖bat, nmap, pandoc, ripgrep, tig, w3m
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenb
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

nb

nix profile install nixpkgs#nb
  • normalized package name match
  • 匹配方式:Nb
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/nb/nb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

nb 7.24.1-r0

Command line note-taking, bookmarking, archiving, and knowledge base application

https://github.com/xwmx/nb

sudo apk add nb
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nb-bash-completion 7.24.1-r0

Bash completions for nb

https://github.com/xwmx/nb

sudo apk add nb-bash-completion
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nb-doc 7.24.1-r0

Command line note-taking, bookmarking, archiving, and knowledge base application (documentation)

https://github.com/xwmx/nb

sudo apk add nb-doc
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nb-fish-completion 7.24.1-r0

Fish completions for nb

https://github.com/xwmx/nb

sudo apk add nb-fish-completion
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nb-full 7.24.1-r0

More utilities that integrate with nb

https://github.com/xwmx/nb

sudo apk add nb-full
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb-full from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

nb-zsh-completion 7.24.1-r0

Zsh completions for nb

https://github.com/xwmx/nb

sudo apk add nb-zsh-completion
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nb
  • normalized package name match
  • 匹配方式:Nb
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nb-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
MacPorts95%

nb

sudo port install nb
  • normalized package name match
  • 匹配方式:Nb
MacPorts ports tree · api.github.com · MacPorts ports tree: office/nb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/nb.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment