Dgraph is a horizontally scalable and distributed graph database built with a native GraphQL backend, designed to handle real-time queries over large datasets. Written in Go, it provides ACID transactions, consistent replication, and linearizable reads while optimizing query performance through careful control of data arrangement on disk to minimize seeks and network calls. The database supports GraphQL query syntax and responds in JSON and Protocol Buffers over GRPC and HTTP protocols.
The project has reached version 25 and is production-ready, with deployment across multiple Fortune 500 companies alongside its open source community. Dgraph officially supports Linux/amd64 and Linux/arm64 architectures, with Docker deployment recommended as the primary testing and deployment method. The codebase dropped official support for Mac and Windows in 2021 to focus on Linux-specific performance optimizations, though building from source remains possible on other platforms for specific use cases like live loading or bulk operations.
Dgraph targets applications with complex relational data structures that don't fit elegantly into traditional SQL schemas. It positions itself as a solution for scenarios with more than ten SQL tables connected via foreign keys or sparse data requiring flexible schemas. The database combines NoSQL scalability with SQL-like transactions and the ability to perform distributed joins, traversals, and graph operations. Compared to alternatives like Neo4j and JanusGraph, Dgraph distinguishes itself through its sharded and distributed architecture with automatic data movement for shard rebalancing, consistent replication across the cluster, and native support for full-text search, regular expressions, and geo search capabilities.
The repository shows active maintenance and community engagement. GitGenius tracking data reveals a median issue and pull request response latency of zero hours with a mean of 3974 hours across 94 tracked items, indicating variable response times. The most active labels tracked are bug with 42 occurrences, Stale with 37, and kind/bug with 21, reflecting ongoing quality assurance efforts. Key contributors include matthewmcneely with 55 tracked events, MichelDiz with 22 events, and mangalaman93 with 21 events. The repository shares overlapping contributors with major projects including microsoft/vscode, microsoft/typescript, and rust-lang/rust, suggesting cross-pollination with significant open source ecosystems.
Installation options include Docker images from the official Dgraph registry or building from source with Go 1.24 or later. The project maintains officially supported client libraries across multiple programming languages and documents community-contributed unofficial clients. Documentation is comprehensive at docs.dgraph.io, with quick-start guides available in four steps and tutorial videos on the project's YouTube channel. The Apache 2.0 license permits broad usage and modification, and the project encourages community contributions through established guidelines while using GitHub discussions for general questions and GitHub Issues for bug reports and feature requests.