head to head · open source

TiDB vs cayley

TiDB has 40,541 GitHub stars, 6,242 forks, 6,976 open issues and last shipped yesterday. cayley has 15,064 stars, 1,238 forks, 93 open issues and last shipped 22 days ago. TiDB leads on adoption by 169% (40,541 vs 15,064 stars). TiDB is written in Go under Apache-2.0; cayley is written in Go under Apache-2.0. TiDB has attracted 15% as many forks as stars, cayley 8%. TiDB was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 1 topic tag (go), so they are genuine substitutes rather than adjacent tools.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

TiDB ★ 41K cayley ★ 15K category Infrastructure & Operations

← all 8884 open source comparisons

Side by side

TiDB cayley
GitHub stars ★ 41K ★ 15K
License Apache-2.0 Apache-2.0
Written in Go Go
Last push 2026-09-17 2026-08-27
Forks ⑂ 6.2K ⑂ 1.2K
Self-hosting Yes Yes
Data ownership Your server Your server

pick TiDB if

  • You weight community size — 41K stars and counting
  • You want the Apache-2.0 license terms
  • Your stack matches Go
  • You value the larger contributor base for long-term maintenance

full TiDB profile →

pick cayley if

  • You want the cayley feature set and don't need the biggest community
  • You prefer the Apache-2.0 license terms
  • Your stack matches Go
  • You evaluated both and cayley fits your workflow better

full cayley profile →

About TiDB

TiDB is an open source, cloud native, distributed SQL database written in Go and licensed under Apache 2.0, aimed at teams that need ACID transactions, real time analytics, and vector search at scale without data silos.

read the full TiDB overview →

About cayley

Cayley is an open source graph database written in Go and released under the Apache 2.0 license. It stores and queries Linked Data, the graph shaped data model standardized by the W3C for the Semantic Web, and its design takes direct inspiration from the graph database that sat behind Google's Knowledge Graph, formerly known as Freebase. The project lives in the Go ecosystem and has been maintained in public for roughly twelve years, accumulating about 15,000 stars and 1,238 forks, with 93 open issues at the time of writing. Its topics — cayley, go, graph, graph database, linked data — describe both the language …

read the full cayley overview →

More in Infrastructure & Operations

Immich ★ 114K Uptime Kuma ★ 91K worldmonitor ★ 87K mall ★ 85K NetData ★ 81K Elasticsearch ★ 78K

Related comparisons

mall vs tidb mall vs prometheus mall vs nocodb mall vs etcd mall vs dbeaver mall vs orm prometheus vs nocodb mall vs milvus uptime-kuma vs worldmonitor uptime-kuma vs netdata uptime-kuma vs grafana worldmonitor vs netdata worldmonitor vs grafana netdata vs grafana uptime-kuma vs huginn worldmonitor vs huginn immich vs paperless-ngx immich vs ceph immich vs filestash immich vs garage immich vs storj immich vs alarik immich vs spinifex paperless-ngx vs ceph

More Databases projects

Compare either of these against the rest of the Databases field.

TiDB vs mall TiDB vs Prometheus TiDB vs NocoDB TiDB vs etcd TiDB vs DBeaver TiDB vs orm TiDB vs Milvus TiDB vs drawDB TiDB vs typeorm TiDB vs AnotherRedisDesktopManager TiDB vs Qdrant TiDB vs rocksdb

Frequently asked questions

Is TiDB or cayley more popular?

TiDB has 40,541 GitHub stars and cayley has 15,064. TiDB has the larger community by that measure.

Are TiDB and cayley free?

Both are open source. TiDB is licensed under Apache-2.0 and cayley under Apache-2.0. Neither carries a licence fee.

What is the difference between TiDB and cayley?

TiDB is written in Go and cayley in Go. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, TiDB or cayley?

Choose TiDB if you want the larger community (40,541 stars) or its Apache-2.0 licence terms. Choose cayley if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.