Databases · head to head
Dgraph vs GitHub Codespaces

Dgraph
Databases
Apache 2.0 distributed graph database written in Go, maintained by Hypermode, queried through GraphQL or its own DQL language.
- From
- Free
- Free plan
- Yes

GitHub Codespaces
Developer Tools
Cloud hosted development environments configured by dev container files
- From
- Free
- Free plan
- Yes
The short version
- Free plans on both; paid from $39/mo and $0.09/mo.
- Only Dgraph lists apache 2.0 licence; only GitHub Codespaces lists dev container based configuration.
- Where GitHub Codespaces falls short: cannot be self hosted, according to GitHub.
How do Dgraph and GitHub Codespaces differ?
Dgraph and GitHub Codespaces differ on pricing model (Freemium against Usage-based), platforms and category (Databases against Developer Tools). Only the attributes on which Dgraph and GitHub Codespaces actually diverge.
| Attribute | Dgraph | GitHub Codespaces |
|---|---|---|
| Pricing model | Freemium | Usage-based |
| Platforms | Linux, macOS, Self-hosted, Web | Web, Windows, macOS, Linux |
| Category | Databases | Developer Tools |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: founded for GitHub Codespaces.
Which features does each one have?
They share no listed features; 10 appear only for Dgraph and 8 only for GitHub Codespaces. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Dgraph
- Apache 2.0 licence
- Generated GraphQL API
- DQL query language
- Predicate sharding
- Raft replication
- Distributed ACID transactions
- Written in Go
- Full-text and geo indexing
Only in GitHub Codespaces
- Dev container based configuration
- Launch from repository, pull request, commit or template
- Machines from 2 to 32 cores
- Browser based editor
- Connect from Visual Studio Code or IntelliJ
- JetBrains IDEs and JupyterLab support in beta
- Organisation access and spending controls
- Monthly free allowance for personal accounts
What is each one used for?
GitHub Codespaces is most often brought in for onboarding contributors without local setup. The jobs each tool is most often brought in to do.
Dgraph
- An application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQLnot GitHub Codespaces
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot GitHub Codespaces
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot GitHub Codespaces
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot GitHub Codespaces
GitHub Codespaces
- Onboarding contributors without local setupnot Dgraph
- Fixing bugs from an open pull requestnot Dgraph
- Consistent environments across a teamnot Dgraph
- Coding from a tablet or any browsernot Dgraph
- Teaching with preconfigured environmentsnot Dgraph
Where do Dgraph and GitHub Codespaces fall short?
GitHub Codespaces's most cited limit: cannot be self hosted, according to GitHub. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Dgraph
- Sharding is by predicate, so a single very hot predicate lives entirely in one Raft group and cannot be split further; adding nodes does not relieve it and the fix is a data model change
- Stewardship passed from Dgraph Labs to Hypermode after the original company stopped operating independently, so anyone building on it is betting on a second custodian rather than on the original team's roadmap
- The GraphQL layer is generated and opinionated, so anything it does not express drops you into DQL, which is a second language your team must learn and which no other database speaks
- The community is a fraction of Neo4j's, so operational answers, tuning experience, hiring and third-party tooling are all thinner, and unusual failure modes in a Zero and Alpha cluster leave you reading source rather than a forum
- There is no portable graph standard to migrate to; Cypher, Gremlin and SPARQL are all different query models, so the schema and every query is a rewrite if you later leave, and that cost grows with the application
GitHub Codespaces
- Cannot be self hosted, according to GitHub
- Requires an internet connection and works with GitHub repositories
- Usage billing grows with machine size, since included compute is weighted by core count
- Organisation use needs admin enablement before developers can create codespaces
How much do Dgraph and GitHub Codespaces cost?
Dgraph has a free plan, with paid plans from $39/mo; GitHub Codespaces has a free plan, with paid plans from $0.09/mo. Plan by plan below, from each vendor's own pricing page.
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
GitHub Codespaces
Free- Compute$0.09/core hour
- Storage$0.07/gb month
Which should you pick?
Choose Dgraph if
- You need apache 2.0 licence.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted, Web.
- You also want generated graphql api.
Choose GitHub Codespaces if
- You need dev container based configuration.
- You want to start without paying.
- You work on Web, Windows, macOS, Linux.
- You also want launch from repository, pull request, commit or template.
Questions people ask
- Is Dgraph or GitHub Codespaces better?
- It depends on the job. Dgraph fits an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQL; GitHub Codespaces fits onboarding contributors without local setup. Dgraph starts at Free and GitHub Codespaces at Free.
- Which is cheaper, Dgraph or GitHub Codespaces?
- Dgraph starts at Free and GitHub Codespaces at Free.
- Does Dgraph or GitHub Codespaces run on more platforms?
- Dgraph runs on Linux, macOS, Self-hosted, Web. GitHub Codespaces runs on Web, Windows, macOS, Linux.
- Can I use Dgraph for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Dgraph best used for?
- Dgraph is most often used for an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql, a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation, recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottleneck, teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available one. Of those, an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes graphql and a knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiation are not what GitHub Codespaces is typically brought in for.
- What can Dgraph do that GitHub Codespaces cannot?
- Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding. GitHub Codespaces covers Dev container based configuration, Launch from repository, pull request, commit or template, Machines from 2 to 32 cores, Browser based editor.
Answered from the vendors’ own pages
Dgraph: Is Dgraph open source?
Yes. The current repository is Apache 2.0, which is a permissive OSI licence, and the project is at v25 under Hypermode's maintenance.
GitHub Codespaces: How much does GitHub Codespaces cost?
GitHub's billing documentation lists compute at 0.09 dollars per core hour and storage at 0.07 dollars per GB month. A 2 core machine therefore costs 0.18 dollars per hour.
SourceDgraph: Is it really GraphQL?
It serves a generated GraphQL API, which is real GraphQL for clients. Its native language, DQL, resembles GraphQL syntactically but is Dgraph's own language and is not the GraphQL specification.
GitHub Codespaces: Is there a free allowance?
Yes. Personal GitHub Free accounts include 120 compute hours and 15 GB month of storage, and GitHub Pro includes 180 compute hours and 20 GB month. Included compute is weighted by core count.
SourceDgraph: How does it compare to Neo4j?
Neo4j has the larger ecosystem, Cypher, and far more operational precedent. Dgraph distributes storage across nodes by default and gives you a GraphQL endpoint without writing resolvers. The choice usually turns on whether you need horizontal scale and a GraphQL surface more than you need ecosystem depth.
GitHub Codespaces: Which editors can I use?
Codespaces can be used in the browser or connected from Visual Studio Code or IntelliJ. JetBrains IDEs and JupyterLab are listed as beta.
SourceDgraph: What does a production cluster look like?
At minimum a set of Zero nodes for coordination and a replicated set of Alpha nodes for data, typically three of each for fault tolerance, which is a meaningfully larger operational footprint than a single graph server.
GitHub Codespaces: Can Codespaces be self hosted?
No. GitHub states that Codespaces cannot be self hosted.
SourceDgraph: Who maintains it now?
Hypermode. Dgraph Labs, the original company, no longer operates it, and that change of custodian is the main non-technical risk to weigh.
Related pages
More on GitHub Codespaces
Other head to heads
- Dgraph vs ArangoDB
- Dgraph vs Neo4j
- Dgraph vs Azure Cosmos DB
- Dgraph vs SurrealDB
- Dgraph vs Elasticsearch
- Dgraph vs Couchbase
- Dgraph vs Cassandra
- Dgraph vs Aerospike
- Dgraph vs Firebase Realtime Database
- Dgraph vs ScyllaDB
- Dgraph vs FaunaDB
- Dgraph vs RavenDB
- Dgraph vs Nile
- Dgraph vs Readyset
- Dgraph vs SAP HANA
- Dgraph vs Vertica
- Dgraph vs Airtable
- Dgraph vs Supabase
- Dgraph vs CodeSandbox
- Dgraph vs StackBlitz
- Dgraph vs Coder
- Dgraph vs Namespace
- Dgraph vs Ona (formerly Gitpod)
- Dgraph vs iTerm2
- Dgraph vs Depot
- Dgraph vs Keycloak
- Dgraph vs Blacksmith
- Dgraph vs ConfigCat
- Dgraph vs WarpBuild
- Dgraph vs Portainer
- Dgraph vs Losant
- Dgraph vs Nx Cloud
- Dgraph vs Pants Build
- Dgraph vs Python
- Dgraph vs Yarn
- Dgraph vs Ansible
- GitHub Codespaces vs ArangoDB
- GitHub Codespaces vs Neo4j
- GitHub Codespaces vs Azure Cosmos DB
- GitHub Codespaces vs SurrealDB
- GitHub Codespaces vs Elasticsearch
- GitHub Codespaces vs Couchbase
- GitHub Codespaces vs Cassandra
- GitHub Codespaces vs Aerospike
- GitHub Codespaces vs Firebase Realtime Database
- GitHub Codespaces vs ScyllaDB
- GitHub Codespaces vs FaunaDB
- GitHub Codespaces vs RavenDB
- GitHub Codespaces vs Nile
- GitHub Codespaces vs Readyset
- GitHub Codespaces vs SAP HANA
- GitHub Codespaces vs Vertica
- GitHub Codespaces vs Airtable
- GitHub Codespaces vs Supabase
- GitHub Codespaces vs CodeSandbox
- GitHub Codespaces vs StackBlitz
- GitHub Codespaces vs Coder
- GitHub Codespaces vs Namespace
- GitHub Codespaces vs Ona (formerly Gitpod)
- GitHub Codespaces vs iTerm2
- GitHub Codespaces vs Depot
- GitHub Codespaces vs Keycloak
- GitHub Codespaces vs Blacksmith
- GitHub Codespaces vs ConfigCat
- GitHub Codespaces vs WarpBuild
- GitHub Codespaces vs Portainer
- GitHub Codespaces vs Losant
- GitHub Codespaces vs Nx Cloud
- GitHub Codespaces vs Pants Build
- GitHub Codespaces vs Python
- GitHub Codespaces vs Yarn
- GitHub Codespaces vs Ansible
