dgraphvsSurrealDB
Two self-hosted Databases projects, compared on the numbers selfhost.directory tracks live: score, popularity, release cadence and setup effort.
| dgraph | SurrealDB | |
|---|---|---|
| Score | 74/100 | 77/100 |
| Rank in category | #8 of 38 in Databases | #6 of 38 in Databases |
| GitHub stars | 21 838 | 33 347 |
| Stars, last 30 days | +25 | +146 |
| Stable releases, 12 months | 16 | 24 |
| Latest release | v25.5.1 · 22 Oct 2026 | v4.0.1 · 9 Nov 2026 |
| Setup | Moderate | Easy |
| Official Docker image | No | Yes |
| License | Apache-2.0 | Other |
| Main language | Go | Rust |
Which one should you pick?
SurrealDB scores 77/100 against 74/100 for dgraph, so it is the safer default.
SurrealDB ships more often: 24 stable releases in the past year, against 16 for dgraph.
If you want the quickest setup, SurrealDB is easier to run; dgraph needs more configuration.
SurrealDB is growing faster right now (+146 stars in 30 days).
Key differences
- License: dgraph is Apache-2.0, SurrealDB is Other.
- Language: dgraph is written mainly in Go, SurrealDB in Rust.
- Only SurrealDB ships an official Docker image.
dgraph details →SurrealDB details →All Databases projects →