# @escape.tech/graphql-armor

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

Latest version **3.2.1** (published 2026-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @escape.tech/graphql-armor
pnpm add @escape.tech/graphql-armor
yarn add @escape.tech/graphql-armor
bun add @escape.tech/graphql-armor
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.2.1 |
| Published | 2026-11-27 |
| First published | 2022-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 7 |
| Unpacked size | 41.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 589 |
| Author | Escape Technologies SAS |
| Maintainers | icarossio, steffthestunt, gby56, m0ngi, mathieu.rousse |
| Keywords | apollo, graphql, shield, security, middleware |

## Links

- npm: https://www.npmjs.com/package/@escape.tech/graphql-armor
- Repository: https://github.com/Escape-Technologies/graphql-armor
- Issues: https://github.com/Escape-Technologies/graphql-armor/issues
- npm.io page: https://npm.io/package/@escape.tech/graphql-armor

## Dependencies (7)

- [graphql](https://npm.io/package/graphql.md) ^16.10.0
- [@escape.tech/graphql-armor-max-depth](https://npm.io/package/@escape.tech/graphql-armor-max-depth.md) 2.4.3
- [@escape.tech/graphql-armor-cost-limit](https://npm.io/package/@escape.tech/graphql-armor-cost-limit.md) 2.4.4
- [@escape.tech/graphql-armor-max-tokens](https://npm.io/package/@escape.tech/graphql-armor-max-tokens.md) 2.5.2
- [@escape.tech/graphql-armor-max-aliases](https://npm.io/package/@escape.tech/graphql-armor-max-aliases.md) 2.6.3
- [@escape.tech/graphql-armor-max-directives](https://npm.io/package/@escape.tech/graphql-armor-max-directives.md) 2.3.2
- [@escape.tech/graphql-armor-block-field-suggestions](https://npm.io/package/@escape.tech/graphql-armor-block-field-suggestions.md) 3.0.2

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 3.2.1 (latest) — 2026-11-27
- 3.2.0 — 2025-12-29
- 3.1.7 — 2025-08-22
- 3.1.6 — 2025-06-16
- 3.1.5 — 2025-04-29
- 3.1.4 — 2025-04-29
- 3.1.3 — 2025-04-16
- 3.1.2 — 2024-11-27
- 3.1.1 — 2024-10-25
- 3.1.0 — 2024-10-11
- 3.0.1 — 2024-07-04
- 3.0.0 — 2024-05-23
- 2.4.0 — 2023-12-20
- 2.3.2 — 2023-10-26
- 2.3.1 — 2023-09-01
- … 37 more at https://npm.io/package/@escape.tech/graphql-armor/versions

## README

# GraphQL Armor 🛡️

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

![GraphQL-Armor banner](https://raw.githubusercontent.com/Escape-Technologies/graphql-armor/main/services/docs/static/img/banner.png)

[![CI](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/ci.yaml/badge.svg)](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/ci.yaml) [![release](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/release.yaml/badge.svg)](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/release.yaml) [![e2e](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/e2e.yaml/badge.svg)](https://github.com/Escape-Technologies/graphql-armor/actions/workflows/e2e.yaml) ![npm](https://img.shields.io/npm/v/@escape.tech/graphql-armor) [![codecov](https://codecov.io/gh/Escape-Technologies/graphql-armor/branch/main/graph/badge.svg)](https://codecov.io/gh/Escape-Technologies/graphql-armor)

## Installation

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

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

## Documentation

[https://escape.tech/graphql-armor/docs/getting-started](https://escape.tech/graphql-armor/docs/getting-started)

## Supported GraphQL Engines

We support the following engines :

- [Apollo Server](https://www.apollographql.com/)
- [GraphQL Yoga](https://www.graphql-yoga.com/)

We additionally support the following engines through the [Envelop](https://www.envelop.dev/) 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](https://www.envelop.dev/docs/integrations) for more information about Envelop compatibility.

## GraphQL security for Enterprise

Interested in securing GraphQL APIs on the enterprise level? Visit [Escape’s website](https://escape.tech) to learn more.

## Contributing

Ensure you have read the [Contributing Guide](https://github.com/Escape-Technologies/graphql-armor/blob/main/CONTRIBUTING.md) before contributing.

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

```bash
git clone git@github.com: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](https://classic.yarnpkg.com/lang/en/docs/workspaces/). 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**](https://jobs.escape.tech) page!

---
_Source: https://npm.io/package/@escape.tech/graphql-armor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
