@atcute/mst

中文文档
1.1.1发布于 2026/09/240BSDES Module近 30 天下载 30.8万

atproto MST manipulation utilities

原始使用文档

@atcute/mst

Merkle Search Tree (MST) manipulation utilities for AT Protocol.

npm install @atcute/mst

MST is a key-value tree structure used in atproto repositories to store collections of records. keys are sorted lexicographically and organized into nodes based on the leading zero bits in their SHA-256 hash. each node uses prefix compression for efficient storage and has a CID (content identifier) for content-addressable access.

this is a low-level utility for building tools that need to work directly with repository structures. for reading repository exports, see @atcute/repo instead.

see the atproto repository specification for more details.

版本与发布记录

@atcute/mst 共发布 9 个版本,首次发布于 2025/10/20;过去 12 个月发布了 8 个版本。

版本发布日期距今
1.1.1latest2026/09/241 个月前
1.1.02026/09/121 个月前
1.0.32026/07/163 个月前
1.0.22026/06/294 个月前
1.0.12026/05/086 个月前
1.0.02026/03/038 个月前

关于 @atcute/mst 的常见问题

@atcute/mst 是什么?

atproto MST manipulation utilities

如何安装 @atcute/mst?

在项目目录运行 npm install @atcute/mst,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@atcute/cid(^2.5.0)、@atcute/cbor(^2.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atcute/mst 支持 TypeScript 吗?

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

@atcute/mst 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@atcute/mst 可以商用吗?

@atcute/mst 使用 0BSD 许可。几乎没有限制:可自由使用、修改和分发,连保留版权声明也不要求。以上为概括,不构成法律意见,请以许可原文为准。

@atcute/mst 的下载量有多少?

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

@atcute/mst 还在维护吗?

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