Skip to content

dgraph

Distributed GraphQL graph database for teams running connected data on Linux clusters

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

81

Health

Thriving

Overview

Stars

21,837

Last commit

4 days ago

Nov 2026

Repository age

11 years

since Aug 2015

Latest version

v25.5.1

Oct 2026

Contributors

–

11 active in 90 days

Releases

20

last 12 months

Language

Go

Dgraph is a distributed graph database written in Go. It speaks GraphQL query syntax and returns results as JSON or Protocol Buffers over gRPC and HTTP. It offers ACID transactions, consistent replication and linearizable reads.

The database scales horizontally across a cluster. It controls how data is laid out on disk to cut disk seeks and network calls during queries. It supports joins, traversals and aggregation, so you can model connected data without forcing it into many SQL tables.

Official support covers Linux on amd64 and arm64. Docker is the recommended way to test and deploy it, and a standalone image gets a single node running quickly. Docker Compose and Kubernetes are also covered. You can build from source with Go and make. It is licensed under Apache-2.0 and is under active development, with 20 releases in the last year.

It is a self-hosted alternative to managed graph database services, and it is a direct open source option next to Neo4j and JanusGraph.

Who it's for

Backend teams building apps on highly connected data

Graph traversals and GraphQL queries fit data that would need many foreign-key joins in SQL.

Skip if: Your data fits a few simple tables and a relational database already works.

Platform teams that run clusters on Linux and Kubernetes

It is distributed, replicates consistently and ships as a Docker image with Kubernetes guidance.

Skip if: You need official support for running on Windows or macOS servers.

Teams that want a permissively licensed graph database

Apache-2.0 licensing places few obligations on how you use or embed it.

Skip if: You need the Cypher query language, which Dgraph does not use.

The problem it solves

Highly connected data turns into slow, tangled joins in a relational database. You need a store built for traversals that still gives you transactions and can grow across machines.

Strengths

  • ACID transactions with consistent replication and linearizable reads
  • Horizontal scaling across a distributed cluster
  • Native GraphQL query syntax with JSON and Protocol Buffers responses
  • Apache-2.0 license with 20 releases in the last year
  • Official Docker image and a one-command standalone cluster

Trade-offs

  • Official support only for Linux on amd64 and arm64
  • GraphQL-style querying means a learning curve if you know Cypher or SQL
  • Running a distributed cluster takes more operational work than a single-node database

dgraph replaces

Self-host dgraph

Self-hostable
Yes

Quick start

docker run -it -p 8080:8080 -p 9080:9080 -v ~/dgraph:/dgraph dgraph/standalone:latest

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Dgraph free and open source?

Yes. It is released under the Apache-2.0 license and you can self-host it.

Which platforms does it support?

Linux on amd64 and arm64 are officially supported. Mac and Windows support was dropped in 2021, though you can still build it elsewhere for tasks like data loading.

How do I run it quickly?

Use the standalone Docker image. One docker run command starts a single node with ports 8080 and 9080 exposed.

What query language does it use?

It supports GraphQL query syntax. Responses come back as JSON or Protocol Buffers over gRPC and HTTP.

Other Neo4J alternatives

Compare all 5 Neo4J alternatives →

Similar tools in NoSQL databases

Garnet

NoSQL databases

RESP-compatible cache-store in C# for teams that want Redis clients with

12k 725 today Thriving MIT

Replaces Redis

KeyDB

NoSQL databases

Multithreaded Redis fork for teams wanting higher throughput on the same hardware

13k 677 3 years ago Dormant BSD-3-Clause

kapacitor

NoSQL databases

Stream and batch processing and alerting engine for InfluxDB time series data

2.4k 475 7 days ago Thriving MIT

OpenTSDB

NoSQL databases

Time series database on HBase for storing large volumes of system metrics

5.1k 1.2k 2 years ago Dormant LGPL-2.1

HelixDB

NoSQL databases

Graph database with built-in vector and keyword search for AI app developers

6.3k 402 yesterday Thriving Apache-2.0

Dragonfly

NoSQL databases

Multi-threaded in-memory data store with Redis and Memcached APIs for high-throughput

32k 1.3k today Thriving BUSL-1.1

Replaces Redis