@feds01/zenith

中文文档
0.7.0发布于 2026/11/05MIT零依赖构建来源已验证近 30 天下载 5318

An architecture linter for monorepos

原始使用文档

zenith

A language-agnostic architecture linter for monorepos. Zenith enforces contracts about which parts of a codebase may import which other parts, declared in zenith.toml, and zenith check fails when the code breaks them.

npm install --save-dev @feds01/zenith
npx zenith check

See the user guide for the contracts, the configuration and the command line.

How it is installed

Zenith is a native binary. This package has none itself, nor any install script: the binary for each platform is in a package of its own, which this one lists as an optional dependency, and the package manager installs only the one for your platform:

PackagePlatform
@feds01/zenith-darwin-arm64macOS, Apple silicon
@feds01/zenith-darwin-x64macOS, Intel
@feds01/zenith-linux-arm64Linux, ARM64 (static, any libc)
@feds01/zenith-linux-x64Linux, x86-64 (static, any libc)
@feds01/zenith-win32-x64Windows, x86-64

So it installs offline from a package manager's cache, the lockfile's integrity hashes cover the binary, and bun needs no trustedDependencies entry for it. Don't leave optional dependencies out of the install, e.g. with npm install --omit=optional, or the zenith command has no binary to run.

On another platform, build zenith from source with cargo install --locked --git https://github.com/feds01/zenith zenith, and set ZENITH_BINARY to the path of the binary.

Licence

MIT

版本与发布记录

@feds01/zenith 共发布 8 个版本,首次发布于 2026/10/13;过去 12 个月发布了 8 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.7.0latest2026/11/059 天前
0.6.02026/10/2817 天前
0.5.02026/10/2817 天前
0.4.02026/10/2421 天前
0.3.02026/10/2322 天前
0.2.02026/10/1530 天前

关于 @feds01/zenith 的常见问题

@feds01/zenith 是什么?

An architecture linter for monorepos

如何安装 @feds01/zenith?

在项目目录运行 npm install @feds01/zenith,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 zenith,可以用 npx zenith 直接运行。

@feds01/zenith 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/feds01__zenith 是否存在。

@feds01/zenith 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@feds01/zenith 可以商用吗?

@feds01/zenith 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@feds01/zenith 的下载量有多少?

根据 npm 官方下载统计,@feds01/zenith 在 2026/10/15 – 2026/11/13 这 30 天内被下载 5,318 次,日均约 177 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@feds01/zenith 还在维护吗?

最新版本 0.7.0 发布于 2026/11/05(9 天前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2026/10/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。