Databases · head to head
Dgraph vs Trunk Code Quality

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

Trunk Code Quality
Developer Tools
Metalinter that runs and manages linters, formatters and security scanners
- From
- Free
- Free plan
- Yes
The short version
- Trunk Code Quality is free; Dgraph starts at $39/mo.
- Only Dgraph lists apache 2.0 licence; only Trunk Code Quality lists version pinning through trunk.yaml.
- Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.
How do Dgraph and Trunk Code Quality differ?
Dgraph and Trunk Code Quality differ on platforms, category (Databases against Developer Tools) and year founded (2016 against 2021). Only the attributes on which Dgraph and Trunk Code Quality actually diverge.
| Attribute | Dgraph | Trunk Code Quality |
|---|---|---|
| Platforms | Linux, macOS, Self-hosted, Web | macOS, Linux, Windows |
| Category | Databases | Developer Tools |
| Founded | 2016 | 2021 |
Identical on both: starting price (Free), pricing model (Freemium), free tier (Yes).
Which features does each one have?
They share no listed features; 10 appear only for Dgraph and 8 only for Trunk Code Quality. 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 Trunk Code Quality
- Installs and runs over 100 linters and formatters
- Version pinning through trunk.yaml
- Hold the Line checks on new changes only
- Background daemon that precomputes results
- VS Code and Neovim editor integration
- GitHub integration for pull request checks
- Security scanning tools such as trivy and gitleaks
- Runs in any CI environment
What is each one used for?
Trunk Code Quality is most often brought in for running one lint command across a polyglot repository. 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 Trunk Code Quality
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot Trunk Code Quality
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot Trunk Code Quality
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot Trunk Code Quality
Trunk Code Quality
- Running one lint command across a polyglot repositorynot Dgraph
- Gradually fixing legacy code with Hold the Linenot Dgraph
- Pinning linter versions across a teamnot Dgraph
- Enforcing the same checks locally and in CInot Dgraph
- Adding security scanners to pull requestsnot Dgraph
Where do Dgraph and Trunk Code Quality fall short?
Trunk Code Quality's most cited limit: private repositories with more than five active committers need a paid licence. 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
Trunk Code Quality
- Private repositories with more than five active committers need a paid licence
- Paid Team and Enterprise prices are not published; quotes come from sales
- Core CLI is closed source, with only plugins and the GitHub Action under MIT
- Results depend on the underlying linters, so rule coverage is not Trunk's own
How much do Dgraph and Trunk Code Quality cost?
Dgraph has a free plan, with paid plans from $39/mo; Trunk Code Quality is free to use. 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
Trunk Code Quality
Free- Free (up to 5 active committers on private repos)Free
- Team (per seat)On request
- Enterprise (annual site licence)On request
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 Trunk Code Quality if
- You need installs and runs over 100 linters and formatters.
- You want to start without paying.
- You work on macOS, Linux, Windows.
- You also want version pinning through trunk.yaml.
Questions people ask
- Is Dgraph or Trunk Code Quality 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; Trunk Code Quality fits running one lint command across a polyglot repository. Dgraph starts at Free and Trunk Code Quality at Free.
- Which is cheaper, Dgraph or Trunk Code Quality?
- Dgraph starts at Free and Trunk Code Quality at Free.
- Does Dgraph or Trunk Code Quality run on more platforms?
- Dgraph runs on Linux, macOS, Self-hosted, Web. Trunk Code Quality runs on macOS, Linux, Windows.
- 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 Trunk Code Quality is typically brought in for.
- What can Dgraph do that Trunk Code Quality cannot?
- Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding. Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.
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.
Trunk Code Quality: What does Trunk Code Quality do?
It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.
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.
Trunk Code Quality: Is Trunk Code Quality free?
Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.
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.
Trunk Code Quality: Which operating systems are supported?
The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.
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.
Trunk Code Quality: How many linters does it support?
The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.
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 Trunk Code Quality
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 SonarQube
- Dgraph vs ESLint
- Dgraph vs Earthly
- Dgraph vs Prettier
- Dgraph vs Garden
- Dgraph vs HCP Terraform
- Dgraph vs Okteto
- Dgraph vs Visual Studio Code
- Dgraph vs Ona (formerly Gitpod)
- Dgraph vs Harness
- Dgraph vs Jenkins
- Dgraph vs Depot
- Dgraph vs Bitbucket
- Dgraph vs Daytona
- Dgraph vs Helix
- Dgraph vs Losant
- Dgraph vs Nx Cloud
- Dgraph vs Pants Build
- Trunk Code Quality vs ArangoDB
- Trunk Code Quality vs Neo4j
- Trunk Code Quality vs Azure Cosmos DB
- Trunk Code Quality vs SurrealDB
- Trunk Code Quality vs Elasticsearch
- Trunk Code Quality vs Couchbase
- Trunk Code Quality vs Cassandra
- Trunk Code Quality vs Aerospike
- Trunk Code Quality vs Firebase Realtime Database
- Trunk Code Quality vs ScyllaDB
- Trunk Code Quality vs FaunaDB
- Trunk Code Quality vs RavenDB
- Trunk Code Quality vs Nile
- Trunk Code Quality vs Readyset
- Trunk Code Quality vs SAP HANA
- Trunk Code Quality vs Vertica
- Trunk Code Quality vs Airtable
- Trunk Code Quality vs Supabase
- Trunk Code Quality vs SonarQube
- Trunk Code Quality vs ESLint
- Trunk Code Quality vs Earthly
- Trunk Code Quality vs Prettier
- Trunk Code Quality vs Garden
- Trunk Code Quality vs HCP Terraform
- Trunk Code Quality vs Okteto
- Trunk Code Quality vs Visual Studio Code
- Trunk Code Quality vs Ona (formerly Gitpod)
- Trunk Code Quality vs Harness
- Trunk Code Quality vs Jenkins
- Trunk Code Quality vs Depot
- Trunk Code Quality vs Bitbucket
- Trunk Code Quality vs Daytona
- Trunk Code Quality vs Helix
- Trunk Code Quality vs Losant
- Trunk Code Quality vs Nx Cloud
- Trunk Code Quality vs Pants Build
