# Install relay-compiler with npm

A compiler tool for building GraphQL-driven applications. Version 21.0.1 via npm; verified 2026-05-27.

## Install

```sh
sudo av install npm:relay-compiler
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g relay-compiler
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:relay-compiler
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/relay-compiler>
- **Version:** 21.0.1
- **Source summary:** A compiler tool for building GraphQL-driven applications.
- **Homepage:** <https://relay.dev>
- **Repository:** <https://github.com/facebook/relay>
- **Upstream docs:** <https://relay.dev>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/relay-compiler/-/relay-compiler-21.0.1.tgz>
- **Issue tracker:** <https://github.com/facebook/relay/issues>
- **Published:** 2026-05-27T16:56:36.861Z
- **Last updated:** 2026-05-27T16:56:36.861Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- relay-compiler (cli)
- relay-compiler (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 21.0.1
- Package-manager updated: 2026-05-27
- Local data: ok
- Upstream repository: https://github.com/facebook/relay
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for relay-compiler. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Dev: 13.0.0-rc.2, Latest: 21.0.1, Main: 0.0.0-main-4e47221b
- **Version Count:** 4,203
- **Maintainers:** fb, relay-bot
- **Publisher:** GitHub Actions
- **Integrity:** sha512-Wqlg3MtHyBlAYByVo24Wy9H3n2bAw991gPmzdo3XfNv+TzhI8zuGogtiae+7NORI7zhghgZaHC7Sp8S8ZPRYEA==
- **Shasum:** dbb4aece811a377fd08da83bd9255f0b7848251d
- **Unpacked Size:** 123,240,326
- **File Count:** 0
- **Created At:** 2017-03-24T06:09:50.375Z
- **Latest Published At:** 2026-05-27T16:56:36.861Z
- **Modified At:** 2026-08-01T05:40:30.567Z


## Related links

- [Database and data packages](https://pkg.so/database-data-tools/) - Matched curated package taxonomy and local package facts.
- [oas-resolver](https://pkg.so/npm/oas-resolver/) - Local package facts share a topical domain. Shared terms: api, api-specifications, cli, data, specifications.
- [oas-resolver-browser](https://pkg.so/npm/oas-resolver-browser/) - Local package facts share a topical domain. Shared terms: api, api-specifications, cli, data, specifications.
- [oazapfts](https://pkg.so/npm/oazapfts/) - Local package facts share a topical domain. Shared terms: api, api-specifications, cli, data, specifications.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
