# nak を Homebrew, Nix でインストール

nak のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:nak
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install nak
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nak
```

  証拠: nixpkgs package indexes: pkgs/by-name/na/nak/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:nak
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/nak>
- **バージョン:** 0.20.0
- **ソース概要:** CLI for doing all things nostr
- **ホームページ:** <https://github.com/fiatjaf/nak>
- **リポジトリ:** <https://github.com/fiatjaf/nak>
- **上流ドキュメント:** <https://github.com/fiatjaf/nak#readme>
- **ライセンス:** Unlicense
- **ソースアーカイブ:** <https://github.com/fiatjaf/nak/archive/refs/tags/v0.20.0.tar.gz>
- **最終更新:** 2026-06-21T12:35:56Z
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- nak (cli)
- nak (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 0.20.0
- マネージャ更新日: 2026-06-21
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/fiatjaf/nak
- 検出された最新: v0.20.0 (最新)
## プロジェクトの歴史と使われ方

nak is fiatjaf's "nostr army knife": a Go command-line tool for creating, signing, publishing, querying, validating, and otherwise plumbing Nostr protocol events.

### プロジェクトの歴史

The GitHub repository was created on 2022-02-09, during the early growth period of the Nostr ecosystem. Its README presents it as a general-purpose command-line tool for Nostr work, installable via a shell installer, Go, binaries, Homebrew, Arch, and Nix.

The release stream shows active maintenance through the 0.19 and 0.20 series, including v0.20.0 on 2026-06-21. That cadence fits a protocol utility that follows NIP additions and real relay/client usage rather than a one-off demo.

### 採用の歴史

nak's audience is narrower than mainstream networking tools, but it sits in an important niche for Nostr developers and power users. The repository metadata consulted on 2026-07-01 showed 389 GitHub stars and 46 forks, and the Homebrew page listed 673 installs over the prior 365 days.

Its adoption is tied to Nostr's preference for simple event and relay primitives: a CLI that can emit JSON, sign events, query relays, manage keys, and script relay operations is useful for debugging clients, writing shell workflows, and testing protocol behavior.

### 使われ方

The README examples show the core workflow: `nak event` creates a signed event; options can set secret keys, content, tags, timestamps, and relay targets; `nak req` queries relays and emits JSON that users commonly pipe to tools like `jq`.

Package nerds reach for nak when they want a reproducible Nostr command in a script: publish a test note, inspect relay responses, validate an event, talk to relay management APIs, experiment with bunker/nsec flows, or use Nostr as a transport for other artifacts.

### パッケージ好きにとっての重要性

nak is significant less as a mass-market CLI and more as a protocol workbench. It gives Nostr's event model a Unix-shaped interface, which is exactly what packagers and shell people want when a network protocol is still evolving.

### タイムライン

- 2022-02-09: GitHub repository created.
- 2026-06-21: v0.20.0 release published.
- 2026-07-01: Homebrew Formulae page listed version 0.20.0 and 673 installs over the prior 365 days.

### Related projects

- Nostr
- nostr-tools
- noscl

### ソース

- <https://api.github.com/repos/fiatjaf/nak>
- <https://api.github.com/repos/fiatjaf/nak/releases?per_page=5>
- <https://formulae.brew.sh/formula/nak>
- <https://github.com/fiatjaf/nak>
- <https://stuff.fiatjaf.com/>


## セキュリティノート

nak に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nak
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - nak: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/nak/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/ja/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/ja/pkg/brew/go/) - Build dependency declared by Homebrew.
- [goat](https://www.automicvault.com/ja/pkg/brew/goat/) - Shares av.db curated category or tags: cli, go, networking.
- [gost](https://www.automicvault.com/ja/pkg/brew/gost/) - Shares av.db curated category or tags: cli, go, networking.
- [hysteria](https://www.automicvault.com/ja/pkg/brew/hysteria/) - Shares av.db curated category or tags: cli, networking, relay.
- [mihomo](https://www.automicvault.com/ja/pkg/brew/mihomo/) - Shares av.db curated category or tags: cli, go, networking.
- [socat](https://www.automicvault.com/ja/pkg/brew/socat/) - Shares av.db curated category or tags: cli, networking, relay.
- [trojan-go](https://www.automicvault.com/ja/pkg/brew/trojan-go/) - Shares av.db curated category or tags: cli, go, networking.
- [zns](https://www.automicvault.com/ja/pkg/brew/zns/) - Shares av.db curated category or tags: cli, go, networking.
- [aerleon](https://www.automicvault.com/ja/pkg/brew/aerleon/) - Shares av.db curated category or tags: cli, networking.
- [bombardier](https://www.automicvault.com/ja/pkg/brew/bombardier/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, go, networking.

## Combined YAML source

View the package source record on GitHub. [combined/nak.yml](https://github.com/automic-vault/db/blob/main/combined/nak.yml)


## ソース

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