@escape.tech/graphql-armor

中文文档
3.2.0发布于 2025/12/29MITTypeScriptESM + CJS构建来源已验证近 30 天下载 147.7万

Dead-simple, yet highly customizable security middleware for Apollo GraphQL servers shield

原始使用文档
文档目录6 节
  1. Installation
  2. Documentation
  3. Supported GraphQL Engines
  4. GraphQL security for Enterprise
  5. Contributing
  6. 🤝 We're hiring!

GraphQL Armor 🛡️

GraphQL Armor is a dead-simple yet highly customizable security middleware for various GraphQL server engines.

GraphQL-Armor banner

CI release e2e npm codecov

Installation

# npm
npm install -S @escape.tech/graphql-armor

# yarn
yarn add @escape.tech/graphql-armor

Documentation

https://escape.tech/graphql-armor/docs/getting-started

Supported GraphQL Engines

We support the following engines :

We additionally support the following engines through the Envelop plugin system :

  • GraphQL-Helix
  • Node.js HTTP
  • GraphQL-Helix (with @defer and @stream)
  • GraphQL-WS
  • GraphQL-SSE
  • Azure Functions
  • Cloudflare Workers
  • Google Cloud Functions
  • Lambda AWS
  • type-graphql
  • nexus
  • express-graphql

See here for more information about Envelop compatibility.

GraphQL security for Enterprise

Interested in securing GraphQL APIs on the enterprise level? Visit Escape’s website to learn more.

Contributing

Ensure you have read the Contributing Guide before contributing.

To setup your project, make sure you run the install-dev.sh script.

git clone [email protected]:Escape-Technologies/graphql-armor.git
cd graphql-armor
bash ./install-dev.sh

We are using yarn as our package manager and the workspaces monorepo setup. Please read the associated documentation and feel free to open issues if you encounter problems when developing on our project!

🤝 We're hiring!

We believe it’s time to bring more AI-driven innovation to cybersecurity, and we'd love your help in building this dream! Want to join our adventure? Check out our Careers page!

版本与发布记录

@escape.tech/graphql-armor 共发布 61 个版本,首次发布于 2022/08/03;过去 12 个月发布了 1 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.2.0latest2025/12/2910 个月前
3.1.72025/08/221.2 年前
3.1.62025/06/161.4 年前
3.1.52025/04/291.5 年前
3.1.42025/04/291.5 年前
3.1.32025/04/161.6 年前

关于 @escape.tech/graphql-armor 的常见问题

@escape.tech/graphql-armor 是什么?

Dead-simple, yet highly customizable security middleware for Apollo GraphQL servers shield

如何安装 @escape.tech/graphql-armor?

在项目目录运行 npm install @escape.tech/graphql-armor,或使用 pnpm add / yarn add / bun add。

@escape.tech/graphql-armor 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@escape.tech/graphql-armor 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@escape.tech/graphql-armor 需要什么版本的 Node.js?

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

@escape.tech/graphql-armor 可以商用吗?

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

@escape.tech/graphql-armor 的下载量有多少?

根据 npm 官方下载统计,@escape.tech/graphql-armor 在 2026/10/14 – 2026/11/12 这 30 天内被下载 1,477,099 次,日均约 49,237 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@escape.tech/graphql-armor 还在维护吗?

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