# Install cayley with Homebrew, Nix

Graph database inspired by Freebase and Knowledge Graph. Version 0.7.7 via Homebrew; verified 2026-07-31. Also installable with nix: nix profile install nixpkgs#cayley.

## 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
- **Version:** 0.7.7
- **Source summary:** Graph database inspired by Freebase and Knowledge Graph
- **Homepage:** <https://cayley.io>
- **Repository:** <https://github.com/cayleygraph/cayley>
- **Last updated:** 2026-07-31T08:47:01+01:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cayley (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.7.7
## 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
## 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


## Combined YAML source

View the package source record on GitHub. [combined/cayley.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cayley.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
