# 使用 Homebrew 安装 nef

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

## 安装

```sh
sudo av install brew:nef
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nef
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:nef
- **软件包管理器:** Homebrew
- **版本:** 0.7.1
- **来源摘要:** Steroids for Xcode Playgrounds
- **主页:** <https://nef.bow-swift.io>
- **仓库:** <https://github.com/bow-swift/nef>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nef (别名)
- nef-carbon (别名)
- nef-carbon-page (别名)
- nef-clean (别名)
- nef-jekyll (别名)
- nef-jekyll-page (别名)
- nef-markdown (别名)
- nef-markdown-page (别名)
- nef-playground (别名)
- nef-playground-book (别名)
- nefc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.1
## 项目历史与用法

nef is a Bow Swift project that turns Xcode Playgrounds into a documentation and teaching workflow. It compiles playgrounds with third-party dependencies, exports Markdown or Jekyll content, builds iPad Playground Books, and can export Carbon code snippets.

### 项目历史

The public GitHub repository was created on 2018-12-19. The README says `nef` is short for Nefertiti and was inspired by ΛNK for Kotlin and tut for Scala, placing it in the tradition of executable documentation tools for language ecosystems.

The project documentation presents Homebrew as the preferred CLI installation route, while also allowing consumption as a Swift Package Manager library for macOS tooling. That dual shape matches its role: a developer can use `nef` directly, integrate pieces into an app, use an Xcode extension, or create iPad-friendly Swift Playgrounds.

### 采用历史

nef's adoption appears niche and tightly coupled to Bow, Swift Playgrounds, and documentation workflows rather than broad Swift development. The GitHub API showed 268 stars and 6 forks on 2026-07-01, and Homebrew showed only 7 installs over 365 days, 1 over 90 days, and 0 over 30 days when checked the same day.

Those numbers suggest that nef is historically interesting as a specialized executable-documentation tool, but not a widely adopted package. Its value is clearest for teams or educators who want Swift examples that can be compiled and transformed into docs or playground books.

### 使用方式

Package users install `nef`, then create a playground with `nef playground`, compile playground-backed docs, generate Markdown or Jekyll output, produce a Playground Book from a Swift Package specification, or export code snippets. The common package-nerd use case is making examples more reproducible by compiling the documentation source instead of treating snippets as inert text.

The Homebrew formula requiring macOS and Xcode >= 13.1 reflects the real constraint: nef is not a general cross-platform documentation generator, it is Apple-toolchain-centered Swift playground tooling.

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

nef is a small but instructive package because it packages documentation as a build artifact. It belongs with literate-programming and executable-snippet tools more than with ordinary static-site generators.

### 时间线

- 2018-12-19: Public GitHub repository created.
- 2026-07-01: GitHub API reported 2022-01-19 as the repository last-push timestamp.
- 2026-07-01: Homebrew formula stable version observed as 0.7.1 with very low install counts.

### Related projects

- Bow
- Xcode Playgrounds
- Swift Package Manager
- Jekyll
- Carbon
- ΛNK
- tut

### 来源

- <https://api.github.com/repos/bow-swift/nef>
- <https://formulae.brew.sh/formula/nef>
- <https://github.com/bow-swift/nef>
- <https://nef.bow-swift.io/docs/quick-start/getting-started>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/nef.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nef.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
