Cayley

maintenance

by Cayley community (originally Google) · since 2014

Go graph database inspired by Google's Knowledge Graph, dormant since its 2019 release.

graphrdf / triple storedatabase engineopen source (permissive)legacy

maintenance. No release since v0.7.7 (Oct 2019) and no commits since July 2024; not archived but effectively dormant.

Overview

Cayley is an open-source graph database written in Go, started at Google in 2014 and inspired by the storage behind Freebase and the Knowledge Graph. It stores RDF-style quads on pluggable backends (Bolt, LevelDB, PostgreSQL, MySQL, MongoDB, CockroachDB or memory) and queries them with Gizmo (a Gremlin-like JavaScript dialect), a GraphQL-inspired language and MQL. The last release, v0.7.7, shipped in October 2019 and the last commits date from mid-2024; the repo is not archived but effectively dormant. It remains a readable example of a quad store, but new projects should use a maintained engine.

Strengths & trade-offs

Strengths

  • +Pluggable storage backends, including SQL databases
  • +Embeddable as a Go library
  • +Simple quad model that reads RDF formats

Trade-offs

  • −No releases since 2019 and no active maintenance
  • −Non-standard query languages; no SPARQL or Cypher
  • −Performance well behind modern graph engines

Great for

  • +Learning how quad stores work
  • +Legacy Go projects already using it

Think twice for

  • −New production systems
  • −Large or high-traffic graphs
  • −Standards-based RDF work

Capabilities

Native or official first-party support · 2 of 25 tracked

✓In-memory
✓Durable persistence
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Single node, Client server, Embedded
Query languages
Gizmo, GraphQL-like, MQL

Scale depends on the chosen backend; Cayley itself is a single process.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsHTTP API, Go library
client languagesGo

Alternatives to Cayley

Compare all→
OxigraphRDF / Triple Store15.1

Small, fast SPARQL database in Rust that embeds in Rust, Python and JavaScript or runs as a server.

cayley vs oxigraph →
DgraphGraph22.4

Distributed, horizontally scalable graph database in Go with native GraphQL and DQL.

cayley vs dgraph →
Neo4jGraph61.2

The default property-graph database, with Cypher, a big ecosystem and a managed cloud.

cayley vs neo4j →
Apache Jena TDBRDF / Triple Store18.9

Apache Jena's native RDF store, embeddable in Java or served over SPARQL with Fuseki.

cayley vs apache-jena-tdb →
CozoDBGraph13.9

Embedded Datalog database blending relational, graph and vector queries; dormant since 2024.

cayley vs cozodb →
DydraRDF / Triple Store0.0

Hosted RDF triple store with SPARQL 1.1, valid-time indexing and an MCP endpoint on every repository.

cayley vs dydra →

Cayley FAQ

What is Cayley?

Cayley is a graph database by Cayley community (originally Google), first released in 2014. Cayley is an open-source graph database written in Go, started at Google in 2014 and inspired by the storage behind Freebase and the Knowledge Graph. It stores RDF-style quads on pluggable backends (Bolt, LevelDB, PostgreSQL, MySQL, MongoDB, CockroachDB or memory) and queries them with Gizmo (a Gremlin-like JavaScript dialect), a GraphQL-inspired language and MQL. The last release, v0.7.7, shipped in October 2019 and the last commits date from mid-2024; the repo is not archived but effectively dormant. It remains a readable example of a quad store, but new projects should use a maintained engine.

Is Cayley open source?

Yes. Cayley is open source. License: Apache License 2.0.

Does Cayley support ACID transactions?

Partly. Cayley offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does Cayley scale horizontally?

Cayley does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Cayley?

You can self-host it and embed it in your application.

What is Cayley best for?

Cayley is a strong fit for learning how quad stores work and legacy Go projects already using it. Think twice for new production systems.

What are the best alternatives to Cayley?

Common alternatives to Cayley include Oxigraph, Dgraph, Neo4j, Apache Jena TDB and CozoDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Cayley still maintained?

Cayley is in maintenance mode. No release since v0.7.7 (Oct 2019) and no commits since July 2024; not archived but effectively dormant.

How popular is Cayley?

Cayley ranks #311 of 844 databases on the WhichDB Score (9.4/100), and #23 among graph databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.