登录 注册
其他
1,151
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Zig
语言
—
创建时间
最近更新

项目能做什么

基于 Zig 编写的超快 macOS 包管理器,热安装仅需 3ms。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <img src="assets/logo.png" alt="nanobrew logo" width="200">
</p>

<p align="center">
  <a href="https://trendshift.io/repositories/25937" target="_blank"><img src="https://trendshift.io/api/badge/repositories/25937" alt="justrach%2Fnanobrew | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
</p>

# nanobrew

A fast package manager for macOS and Linux. Written in Zig. Native install pipeline for the top 100 Homebrew formulae and top 100 casks (no `brew`, no Ruby), with verified Homebrew fallback for everything else and native `.deb` support for Linux/Docker.

## Why nanobrew?

- **Fast warm installs** — already-installed no-ops return in milliseconds (5.8ms on the v0.1.192 sandboxed `yt-dlp` benchmark)
- **Parallel downloads** — all dependencies download and extract at the same time
- **No Ruby runtime** — single static binary, instant startup
- **No auto-update** — `nb install` just installs; self-update is explicit via `nb update`
- **No quarantine** — cask installs skip `com.apple.quarantine`, so apps open without Gatekeeper prompts
- **Native installs** — top 100 formulae and top 100 casks install without Homebrew, Ruby, or `brew` subprocess (v0.1.192)
- **Third-party taps** — `nb install user/tap/formula` just works. The only fast Homebrew client with tap support
- **Drop-in Homebrew replacement** — same formulas, same bottles, same casks
- **Linux + Docker** — native .deb support, **up to 13x faster** than apt-get on warm installs

## nanobrew vs Homebrew

Homebrew is great software and powers millions of dev machines. nanobrew makes different tradeoffs:

| | Homebrew | nanobrew |
|---|---------|----------|
| **Auto-update** | `brew install` runs `brew update` first (can take minutes) | `nb install` just installs. Self-update is explicit via `nb update`. |
| **Gatekeeper quarantine** | Casks get `com.apple.quarantine` — triggers "Are you sure?" dialog | No quarantine flag — apps open immediately |
| **Parallel downloads** | Concurrent by default since November 2025 (`HOMEBREW_DOWNLOAD_CONCURRENCY`) | All dependencies download simultaneously |
| **Runtime** | Ruby (~57 MB) | Single 1.2 MB static binary. Instant startup, no bootstrapping. |
| **Brewfile no-ops** | `brew bundle` rechecks everything (~10s even when satisfied) | `nb bundle install` returns instantly when nothing to do |

nanobrew does not run Homebrew's Ruby `post_install` hooks, so formulae that depend on them can be left incomplete. If you rely on `post_install` hooks, build-from-source options, or Mac App Store integration, use Homebrew. nanobrew covers the fast path: bottles, casks, and bundles.

| Package | Homebrew | zerobrew (cold) | zerobrew (warm) | nanobrew (cold) | nanobrew (warm) |
|---------|----------|-----------------|-----------------|-----------------|-----------------|
| **tree** (0 deps) | 4.070s | 1.254s | 0.242s | **0.507s** | **0.009s** |
| **ffmpeg** (11 deps) | 14.252s | 3.986s | 2.147s | **1.624s** | **0.2
阅读完整原文

项目深度分析 AI 生成

CI/CD 极速缓存与加速集成插件(GitHub Action / CI Runner 方案)

产品构想针对 GitHub Actions 等云构建平台,提供包装好 nanobrew 的一键 Action/Runner 缓存增强服务,专门优化环境搭建阶段耗时。
核心功能一键集成 Action、自动缓存命中检测、预热依赖拉取、构建时长与节省成本看板
目标用户频繁运行 macOS / Linux 测试流水线的开源维护者和商业团队
难度/周期低 · 2-4周 · 成本:极低(主要是 CI 测试基础设施与文档托管)
收费模式Freemium(基础 Action 免费,提供企业级团队控制台、指标分析与 SLA 保证的私有缓存代理收费)
竞争风险Homebrew 官方若优化自身并发与缓存机制会削弱其核心优势(AI推测)
依据 已验证事实

企业私有 Tap 与安全分发管理网关

产品构想利用 nanobrew 原生支持第三方 Tap 的特性,为企业内部自研 CLI/工具链分发搭建极速的私有部署管理服务。
核心功能内网私有 Tap 托管、高速边缘缓存、员工本地安装审计与版本控制、绕过 Gatekeeper 的统一签名验证
目标用户拥有数十/数百名工程师、需内部统一分发开发工具的中大型企业
难度/周期中等 · 2-3个月 · 成本:中(需要后端服务、对象存储与带宽成本)
收费模式按企业席位或按月/年订阅(SaaS 或私有化部署)
竞争风险跳过 quarantine 可能违反某些安全要求极严企业的合规审计(AI推测)
依据 数据支持的判断

极速 Docker/容器基础镜像与构建套件 (Debian/Ubuntu 体系)

产品构想利用其纯 Zig 实现、比 apt-get 快 7-13 倍的 --deb 模式,提供开箱即用的轻量极速 Docker 基础镜像构建体系。
核心功能极简基础镜像(内嵌 nanobrew)、多阶段构建指令集、依赖秒级解析、精简 rootfs 工具
目标用户容器化部署密集、容器启动与构建频繁的云原生研发团队
难度/周期中等 · 1-2个月 · 成本:低(基础镜像托管和测试)
收费模式商业级预优化镜像订阅、企业级依赖合规扫描扩展
竞争风险缺少 post_install 与部分复杂 deb 依赖脚本的兼容性问题(尚需验证的假设)
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
eridbardhaj/NanoBrewery 中文介绍暂未生成
Brewery App using data from Punk API
1 Swift
theimpostor/nanobrew 中文介绍暂未生成
0 Shell
nanobrew/nanobrew-dashboard 中文介绍暂未生成
Dashboard for Nanobrew
0 Vue
artistconk/nanobrew 中文介绍暂未生成
A Drupal distribution.
0 PHP
Weblinaut/nanobrewery 中文介绍暂未生成
0 CSS
x-cmd-install/nanobrew 中文介绍暂未生成
card data for nanobrew, collected by x-cmd-install-action
0 -
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 58 个 Release
社区活跃Star 1,151 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。