Lodestar
GRT
0

Drydock: test a subgraph on your own machine, now that Studio's test indexer is going

Subgraph Studio gave you somewhere to deploy a subgraph and watch it sync before publishing. That is going, chain by chain. Drydock is one command that runs a real graph-node on your machine against your subgraph, asks your RPC endpoint what it can actually do before starting, and shows the sync, the errors, your logs and a query box on a local page. What it found in its own testing, and the four things it does not do.

Somebody asked whether Nuthatch could be "your own Studio prior to deploying". It cannot, as it happens, because it does not run mappings. But the question was the right one, and this is the answer to it.


What Studio was for

Before you published a subgraph, Studio ran it. You deployed, watched the sync, read the error when a handler threw, and queried it. Then you published, knowing it worked.

With Studio's traffic moving to the network, that step has nowhere to live. You can publish and find out from an indexer, which is slow and public. Or you can run graph-node yourself, which means a Postgres, an IPFS node, a config file, an RPC endpoint, and an afternoon.

Drydock is the afternoon, done once. A dry dock is where a ship is built and tested before it is launched.

graph build
drydock up --rpc base:https://base-rpc.publicnode.com

That starts graph-node, Postgres and a local IPFS node in Docker, deploys your build, and serves a page at localhost:8787 with the sync, any indexing error, your mapping's logs and a query box. Nothing is uploaded: the IPFS node runs offline and every port listens on 127.0.0.1.

The part graph-node leaves to you

Running graph-node is not the hard bit. The hard bit is that graph-node takes your RPC endpoint's abilities on trust, and what the endpoint cannot do turns up later as a sync that stops, with nothing in the status to say why.

So Drydock asks first. It reads what your built subgraph needs and measures the endpoint against exactly that:

base: head 56062269, syncing from 1000000 (55062269 blocks)

  ✗ History: no logs at block 1000000, 55062269 blocks back ("Archive requests require a
    personal token."). Use --last N to start nearer the head, or an endpoint with more history.
  ✓ Logs: accepts 50000-block ranges, more than graph-node asks for.
  ✓ Receipts: eth_getBlockReceipts answers.

This endpoint cannot carry this subgraph as it stands.

It ships no table of providers. Public limits change by the month, so everything is measured when you ask.

It also puts a brake on. graph-node has no rate limit of its own; on a shared endpoint it spends the minute's quota in seconds and then sits in backoff. Drydock holds it to 15 requests a second unless you say otherwise.

What testing it found

We ran it on an Apple Silicon Mac and a Debian ThinkPad on 11 November 2026, with three subgraphs: USDC transfers on Base, the same on Arbitrum One, and a Uniswap V2 factory with a pair template on Base. It found five faults, all ours to fix, and one of them is the reason this tool should exist.

The factory subgraph synced until its eleventh pair and then stopped. It sat at one block, health "healthy", for as long as we left it. The free endpoint allows ten contract addresses in one log query. graph-node sends up to 2,000, was refused with a 403, and retried for ever. Nothing in the status says so. Drydock now measures that limit for any subgraph with templates and passes it to graph-node; the stalled subgraph then reached the head with 23 pairs and no refusals in 1,147 requests.

graph-node is published for x86-64 only. Emulated on the Mac under QEMU, it was killed for memory within a minute of starting to sync, twice out of twice. Built natively for arm64 from the same source, it ran at 75 MB. Drydock therefore uses its own build of graph-node v0.45.0, unmodified, for both architectures.

The other three were plainer. The bundled IPFS node was joining the public swarm, which made "nothing is uploaded" untrue; it is offline now. Configuration files were mounted from the host, which fails when Docker cannot see the folder; they are copied in. And wiping the database kept a stale start block.

What it does not do

Studio's test indexer Drydock
Runs your mappings on a real graph-node Yes Yes
Needs nothing installed Yes No. Docker, and one binary
Brings its own RPC Yes No. You name one
Tells you what your endpoint cannot do Not applicable Yes, before starting
Reachable by somebody else Yes No. It is on your machine
Still there next year No Yes
  • It is not hosted. We would like to offer that, and have not built it.
  • It does not give you an endpoint. A free public one carries most event subgraphs. Call handlers need trace_filter, which no free endpoint we tried offers; preflight says so, and we have not synced a call-handler subgraph for that reason.
  • It has not been run on Windows, or with Docker Desktop. The Mac runs were under colima.
  • It does not publish. When it syncs clean, graph publish --webapp-url https://www.lodestar-dashboard.com/move takes you to the page that does.

Try it

The binaries, the source and the guide are at github.com/nuthatch-org/drydock, and there is a page for it here.

If it stalls on your subgraph in a way it does not explain, that is a bug in Drydock and we would like to hear about it.