Skip to content
Web3 data indexing · dApp infrastructure

The Graph: 20+ DeFi subgraphs and the Subgraph Toolkit

The Graph indexes blockchain data so dApp developers can query it with GraphQL, but every protocol needs its own subgraph, and writing one well takes protocol-specific knowledge most teams lack. Protofire has built subgraphs in The Graph ecosystem since 2019: we authored and open-sourced subgraphs for protocols including Maker, Curve, Compound governance, UMA, and Lens, and published the Subgraph Toolkit and dev kit others reuse.

The infrastructure served 18M+ subgraph queries a day across 15+ networks, all public in the Protofire GitHub org.

Snapshot
Client
The Graph
Sector
Web3 data indexing / dApp infrastructure

Blockchains store data block by block, the wrong shape for an application.

01

Why dApp teams need a subgraph before they can query their own protocol

Blockchains store data block by block, the wrong shape for an application. A dApp or governance UI cannot read a user's positions or open proposals from raw chain state without reconstructing it. A subgraph fixes this: it defines which events matter, how to transform them, and what schema to expose over GraphQL for The Graph's indexers to serve.

02

Why writing a good subgraph is protocol-specific work

But a subgraph is code, not boilerplate. It maps a protocol's exact event signatures to entities and stays correct as new contracts ship. Get the mapping wrong and the dApp reads bad data with no error, so a protocol like Maker, Curve, or Compound needs someone who understands both The Graph's indexing model and its contract design.

03

How Protofire built subgraphs and tooling for The Graph

Protofire started contributing to The Graph ecosystem in 2019 and built subgraphs directly for major protocols. Verified as authored in the Protofire org, not forked from an upstream: the Maker Protocol subgraph, Curve, Compound governance, UMA, and Lens, and others across DeFi and Web3.

Each encodes that protocol's event and entity model so its dApp can query positions, history, and governance state. Where Protofire built on an existing upstream instead of authoring from scratch, that work lives as a fork and is not counted above.

Beyond individual subgraphs, Protofire built reusable tooling. The Subgraph Toolkit is an open-source collection of helpers for subgraph development, published on npm as `@protofire/subgraph-toolkit` (downloaded tens of thousands of times, peaking above 20,000 in a single year), followed by a subgraph dev kit for scaffolding new subgraphs. Other teams bootstrap their own subgraphs from it instead of writing the helpers from scratch.

Protofire ran subgraph indexing and querying on Kubernetes-based clusters with Terraform and CI/CD, the node infrastructure needed to deploy and serve subgraphs across multiple networks reliably. Across the engagement that infrastructure served 18M+ subgraph queries a day across 15+ networks, query-response time was reduced by about 92% (from roughly 4.2 seconds to about 0.3 seconds), and new subgraphs typically shipped in about 10 days instead of the 6 to 8 weeks a from-scratch build takes.

04

Results

Every item above is verifiable in the Protofire GitHub org. Two representative artifacts: github.com/protofire/subgraph-toolkit (the reusable developer tooling) and github.com/protofire/maker-protocol-subgraph (a protocol subgraph). Both are Protofire-authored, not forks.

20+
protocol subgraphs authored, not forked, and open-sourced in the Protofire org, including Maker, Curve, Compound governance, UMA, dYdX, Kyber, and Lens
Subgraph Toolkit
published and maintained, distributed on npm as `@protofire/subgraph-toolkit` and reused by other subgraph developers (tens of thousands of npm downloads, peaking above 20,000 in a single year; 52 GitHub stars)
18M+ queries/day
served across 15+ networks, with new subgraphs typically shipping in about 10 days versus the 6 to 8 weeks a from-scratch build takes
Query-response time reduced by about 92%
from roughly 4.2 seconds to about 0.3 seconds
Indexing cost reduced by about 65%
roughly $200,000 to $350,000 saved per project per year, from Protofire engagements
The Graph ecosystem contributor
with subgraphs and tooling both public and open-source

Technology stack

The GraphGraphQLAssemblyScript subgraphsIPFSKubernetesTerraformCI/CD

FAQ

Did Protofire build The Graph?
No. The Graph builds the protocol and runs the decentralized indexing network. Protofire is an ecosystem contributor: we author subgraphs for individual protocols and publish open-source subgraph tooling. Our work sits on top of The Graph, it is not The Graph itself.
Which subgraphs did Protofire actually write?
Subgraphs authored in the Protofire org for major DeFi and Web3 protocols including Maker, Curve, Compound governance, UMA, dYdX, Kyber, Augur, Loopring, InstaDapp, Set Protocol, Omen, and Lens. We also built the open-source Subgraph Toolkit and a subgraph dev kit that other teams reuse.
Is Protofire a top-3 indexer on The Graph?
The indexing infrastructure Protofire operated served 18M+ subgraph queries a day across 15+ networks during the engagement, and that throughput is ours. Older Protofire materials go further and cite an ecosystem query-share and a top-3 indexer ranking. Those are ecosystem-scale, ranking-type figures we are not restating as our own here, because they depend on live, network-wide data rather than the throughput we measured on the infrastructure we ran. Treat the query throughput above as ours and the network ranking as a separate claim that would need current on-network data to confirm.

Book a call with Alejandro Losa

Schedule a call with our Web3 Solution Architect to receive practical recommendations and a prompt proposal for upgrading your solution.

Protofire 2026. All rights reserved

Message us on Telegram