# Install cayley with Homebrew, Nix

Graph database inspired by Freebase and Knowledge Graph. Version 0.7.7 via Homebrew; verified 2026-06-15.

## Install

```sh
sudo av install brew:cayley
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cayley
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cayley
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ca/cayley/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:cayley
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cayley>
- **Version:** 0.7.7
- **Source summary:** Graph database inspired by Freebase and Knowledge Graph
- **Homepage:** <https://cayley.io>
- **Repository:** <https://github.com/cayleygraph/cayley>
- **Upstream docs:** <https://cayley.gitbook.io/cayley>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/cayleygraph/cayley.git>
- **Last updated:** 2026-06-15T10:20:11-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cayley (cli)
- cayley (alias)

## Build dependencies

- breezy
- go
- mercurial

## Install behavior

- Post-install hook: defined
- Service: declared
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.7.7
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/cayleygraph/cayley
- info: No cached GitHub release or tag data was available.
## Project history and usage

Cayley is an open-source linked-data graph database and CLI that presents graph storage, query, REPL, HTTP server, and visualization workflows in a Go package.

### Project history

The project describes itself as inspired by the graph database behind Google's Knowledge Graph, formerly Freebase. Its public GitHub repository was created in 2014 and the README frames Cayley around linked data, multiple query languages, and application-oriented graph workloads.

### Adoption history

Cayley's README says it is production-ready and used by various companies for production workloads. In package-manager terms it has also been carried by Homebrew and Nix, giving Unix users a one-command install path for a standalone graph database.

### How it is used

Users typically run `cayley http` for the web interface/API, load RDF-like quad data, and query it with Gizmo, an MQL-style language for Freebase users, or GraphQL-inspired queries. The official configuration docs describe YAML/JSON config files plus command-line and environment-variable overrides.

### Why package nerds care

Cayley is interesting as a self-contained Go graph database package: one formula installs a graph server, REPL, query tooling, and multiple storage backends without deploying a larger database stack. Its Freebase/Knowledge Graph lineage gives it a distinct niche among RDF and linked-data tools.

### Timeline

- 2014: Public GitHub repository created.
- 2018: v0.7.5 release published on GitHub.
- 2019: v0.7.7 release published on GitHub.

### Related projects

- Cayley documents query-language connections to Gremlin, GraphQL-style queries, and MQL, and supports storage backends including LevelDB, Bolt, MongoDB, Elasticsearch, PostgreSQL, MySQL, and SQLite.

### Sources

- <https://api.github.com/repos/cayleygraph/cayley>
- <https://github.com/cayleygraph/cayley>
- <https://cayley.io>
- <https://cayley.gitbook.io/cayley>
- <https://github.com/cayleygraph/cayley#readme>
- <https://formulae.brew.sh/api/formula/cayley.json>


## Security Notes

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: --config/-c path, $CAYLEY_CFG, ./cayley.yml, ./cayley.json, ~/.cayley/cayley.yml, ~/.cayley/cayley.json, /etc/cayley.yml, /etc/cayley.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cayley
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - cayley: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cayley/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [breezy](https://www.automicvault.com/pkg/brew/breezy/) - Build dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [mercurial](https://www.automicvault.com/pkg/brew/mercurial/) - Build dependency declared by Homebrew.
- [ladybug](https://www.automicvault.com/pkg/brew/ladybug/) - Shares av.db curated category or tags: cli, data, database, graph, graph-database.
- [cypher-shell](https://www.automicvault.com/pkg/brew/cypher-shell/) - Shares av.db curated category or tags: cli, data, database, graph-database.
- [helix-db](https://www.automicvault.com/pkg/brew/helix-db/) - Shares av.db curated category or tags: cli, data, database, graph-database.
- [kuzu](https://www.automicvault.com/pkg/brew/kuzu/) - Shares av.db curated category or tags: cli, data, database, graph-database.
- [lazysql](https://www.automicvault.com/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, database, go.
- [orientdb](https://www.automicvault.com/pkg/brew/orientdb/) - Shares av.db curated category or tags: cli, data, database, graph-database.
- [redstore](https://www.automicvault.com/pkg/brew/redstore/) - Shares av.db curated category or tags: cli, data, database, rdf.
- [tinysparql](https://www.automicvault.com/pkg/brew/tinysparql/) - Shares av.db curated category or tags: cli, data, database, rdf.
- [virtuoso](https://www.automicvault.com/pkg/brew/virtuoso/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, graph, knowledge.

## Combined YAML source

View the package source record on GitHub. [combined/cayley.yml](https://github.com/automic-vault/db/blob/main/combined/cayley.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
