Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Claude outputs/graph-gateway-gtm.bundle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Foundation Gateway Docs: Seed

This folder seeds a new chat that will update the Subgraph Gateway docs (`website/src/pages/en/gateways/subgraphs/**`) to reflect The Graph Foundation's multi-gateway strategy: the Foundation runs the canonical gateway, and other teams can run gateways on the same open rails with tiered support (Enablement, Endorsement, Expansion).

## Status

- **Oct 16, 2026:** Plan drafted against branch `multi-gateway-1026`, from the internal _Multi-Gateway Subgraph Strategy_ memo (Notion, Oct 16). It has not been executed: that branch has no commits beyond `main`.
- **Nov 20, 2026:** Quick check against `main` @ `8aabd7d2`:
- The gateway section's page structure is unchanged (same 21 pages; no `working-with-the-foundation` page yet). Only two commits since Oct 16 touched it: #1131 (curation consolidation, Getting/Bridging GRT) and #1127 (Supported Networks sync).
- Every issue the plan flags is still live on `main`: Studio-issued API key claims (`components/overview.mdx:39`, `components/operating-a-gateway.mdx:54`, `consumer-side/serving-queries.mdx:39`), the dedicated-Discord-channel promise (`consumer-side/customer-support.mdx:13`), the Edge & Node attributions (`consumer-side/pricing-payments.mdx:22`, `supply-side/tracking-qos.mdx:53`), and the absolute Upgrade Indexer link (`consumer-side/indexing-approaches.mdx:29`).
- The Upgrade Indexer and Fair Use Policy still live under `subgraphs/providers/subgraph-studio/`.
- Paths elsewhere in the docs have moved since October (for example, `guides/` became `best-practices/`, and getting-GRT content moved to `resources/`). Re-check any path in `plan.md` outside the gateway section before using it.

## Before you start the new chat

Several policies and decisions have changed since Oct 16. Re-read the current strategy memo and check each item below rather than trusting `plan.md`:

- The **disclosure rules** (what to publish vs. keep internal) in `plan.md`. These were derived from the Oct 16 memo.
- Whether the **Endorsement criteria** (QoS thresholds, brand guidelines) have been approved by the Council.
- Whether the **Foundation has taken over** Studio, Explorer, the QoS Oracle submitter and Fair Use enforcement from Edge & Node, and how that should be worded publicly.
- The **seven open decisions** at the end of `plan.md`.
- How this plan interacts with `../provider-neutral/`: the "Conflicts" section of `plan.md` says the provider-neutral plan's open directory, Edge & Node operator naming and "drop canonical" item contradict the Oct 16 strategy.

## Files

| File | What it is |
| --- | --- |
| `plan.md` | The Oct 16 plan: goal, disclosure rules (publish vs. keep internal), conflicts with the provider-neutral plan, page-by-page changes, phasing, open decisions. |

## Related

- Source memo: _Multi-Gateway Subgraph Strategy_ (Notion, Internal Strategy Memos). It is internal; do not copy its revenue, fee, referral or support-budget details into the docs.
- `../provider-neutral/`: the companion Subgraph docs rewrite seed.
- Project docs: `claude/multi-gateway-gateway-docs-plan.md` (same content as `plan.md`), `claude/provider-neutral-subgraph-docs-plan.md`.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Provider-Neutral Subgraph Docs: Seed

This folder seeds a new branch that will rewrite the Subgraph docs so Subgraph Studio is one gateway provider among several, not the default path, pricing model or source of API keys.

## Status

- **Oct 9, 2026:** Plan drafted against branch `provider-neutral-subgraph-docs`. It has not been executed: that branch has no commits beyond `main`.
- **Nov 20, 2026:** Audit re-run against `main` @ `8aabd7d2`. The information architecture in the plan still applies, but several paths have moved. See the audit file's "Changes since the Oct 9 plan" section.

## Files

| File | What it is |
| --- | --- |
| `plan.md` | The Oct 9 plan: goals, information architecture, the Choosing a Provider page outline, editorial rules, phasing, open decisions. |
| `audit-2026-11-20.md` | Current scope by tier, using today's paths, plus the components and registry work. |
| `studio-mentions-raw.txt` | Every matching line (file:line:text) on `main` as of Nov 20. Regenerate it with the command in the audit file. |

## Open decisions

None of these has been decided yet. Settle them before writing.

1. **Studio staging deprecation:** announce it in the docs, or just make staging not depend on Studio?
2. **Code-sample endpoints:** a `<GATEWAY_URL>` placeholder, or `gateway.thegraph.com` labeled as an example?
3. **Upgrade Indexer and Fair Use Policy:** where do they live, and who is named as operator and enforcer?
4. **Choosing a Provider directory:** publish with only Studio listed, or wait for the first new gateway?
5. **Quick Start default path:** CLI `graph publish` with provider tabs only for API keys, or provider tabs throughout?
6. **networks-registry `kind` schema change:** this cycle, or when the new gateways launch?

## Related project docs

- `claude/multi-gateway-gateway-docs-plan.md`
- `claude/provider-neutral-subgraph-docs-plan.md` (same content as `plan.md`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Studio-as-Default Audit: `main` @ 8aabd7d2 (Nov 20, 2026)

This is a fresh pass over the English docs on `main`, made to seed the provider-neutral branch. It refreshes the Oct 9 inventory in `plan.md`. Every Studio mention with its line number is in `studio-mentions-raw.txt`. The command at the bottom of this file regenerates that list.

## Changes since the Oct 9 plan

| Change on `main` | Effect on the plan |
| --- | --- |
| `subgraphs/guides/` merged into `subgraphs/best-practices/` (grafting, subgraph-debug-forking, secure-api-keys-nextjs, transfer-to-the-graph now live there) | Update the Tier B/C paths. Add `best-practices/overview.mdx` (line 361: "Deploy it to Subgraph Studio") and `best-practices/benefits.mdx` (moved from `resources/benefits`) to scope. |
| New `resources/getting-grt.mdx` and `resources/bridging-grt.mdx`; the buy-GRT and buy-ETH sections were removed from the Studio intro | The billing split is partly done already: the Studio intro is now plans, card, GRT deposit/withdraw and billing FAQs. The two new pages frame "paying for queries" as Studio billing (getting-grt L7, L16, L133; bridging-grt L5, L14, L29, L45–47) and need a neutral line. |
| `resources/roles/curating.mdx` became `subgraphs/developing/curating.mdx` | L32 already presents Studio as one way to add signal at publish time. Light touch only. |
| `resources/roles/delegating/*` became `resources/delegating/*` | No change needed (undelegating's "not Subgraph Studio" note is fine). |
| New components: `NetworkContext.tsx` (`StudioIndexing`, `SubgraphStudioIndexingNotice`), `GetApiKeyButton.tsx` (links straight to Studio's API keys page), `NetworkDetailsPage.tsx` ("Payments: Subgraph Studio"; a comment says payments "always run through Subgraph Studio") | Add these to the components work. The API-key button and the payments line should point to Choosing a Provider or list providers from the registry. The "Studio indexing" notice is a factual Studio capability and can stay, but labeled as Studio. |
| Quick Start gained Start Block guidance and a Troubleshooting section (#1096) | Keep both in the rewrite. They're already neutral. |
| `subgraphs/providers/` is unchanged (still only `subgraph-studio/`); `deploying-publishing/` is unchanged | The information architecture in `plan.md` still applies as written. |

## Current scope by tier

Counts are matching lines per file from `studio-mentions-raw.txt`.

### Tier A: structural rewrite

| File | Hits | Change |
| --- | --: | --- |
| subgraphs/overview.mdx | 4 | Neutral lifecycle. Remove plan pricing. Fix legacy `/deploying/...` and `/developing/creating-a-subgraph/` links. |
| subgraphs/quick-start.mdx | 14 | Neutral steps plus a "pick a provider" step. Keep the new Start Block and Troubleshooting content. |
| subgraphs/developing/introduction.mdx | 1 | Neutral framing. |
| subgraphs/developing/deploying-publishing/using-subgraph-studio.mdx | 20 | Move to `providers/subgraph-studio/deploying-to-studio`. Replace with a neutral `testing-and-staging`. |
| subgraphs/developing/deploying-publishing/publishing-a-subgraph.mdx | 5 | Protocol-first, then the publish options: CLI, Studio, other providers. |
| subgraphs/querying/introduction.mdx | 2 | Find a Subgraph → pick a gateway → get credentials → query. Remove the Free/Growth Plan text. |
| subgraphs/querying/from-an-application.mdx | 9 | Replace the Studio-endpoint-first framing. Apply the endpoint convention to code samples. |
| subgraphs/providers/subgraph-studio/introduction.mdx | 16 | Rename to `billing`. Add a new Studio `overview` (GRT and card payments, publishing, version management, staging chains). |

### Tier B: section rewrites

| File | Hits | Change |
| --- | --: | --- |
| subgraphs/providers/subgraph-studio/upgrade-indexer.mdx | — | Move out of Studio (to `developing/deploying-publishing/getting-indexed` or similar). Foundation-operated. |
| subgraphs/providers/subgraph-studio/fair-use-policy.mdx | 3 | Settle who operates and who enforces (Foundation or Edge & Node). |
| subgraphs/developing/managing/deleting-a-subgraph.mdx | 3 | Describe it as an onchain action first, then list the UIs. |
| subgraphs/developing/managing/transferring-a-subgraph.mdx | 1 | Same as above. |
| subgraphs/developing/deploying-publishing/multiple-networks.mdx | 2 | Move the Studio archive policy into the Studio FAQ. |
| subgraphs/developing/developer-faq.mdx | 2 | Neutral API-key and deploy wording. |
| subgraphs/developing/creating/install-the-cli.mdx | 3 | Don't require a Studio API key or `--product subgraph-studio`. |
| subgraphs/best-practices/transfer-to-the-graph.mdx | 10 | Rewrite around publishing, with Studio as one path. |
| subgraphs/best-practices/overview.mdx | 3 | L361 migration paragraph. |
| subgraphs/best-practices/benefits.mdx | 3 | Free Plan table → describe as an example from one provider, or generalize. |
| subgraphs/tooling/x402-payments.mdx | 7 | Label x402 as a feature of the Edge & Node gateway (gateway.thegraph.com). Neutral API-key source. |
| subgraphs/existing-subgraphs/agent0.mdx | 13 | Neutral "get an API key from a provider". Apply the endpoint convention. |
| subgraphs/existing-subgraphs/polymarket.mdx | 4 | Same as above. |
| resources/getting-grt.mdx | 3 | "Pay for queries through your gateway provider (e.g., Subgraph Studio)". |
| resources/bridging-grt.mdx | 5 | Studio-specific rows and FAQ → labeled as Studio, plus a neutral note. |
| resources/tokenomics.mdx | 2 | Query fees are paid through gateways, not "in Subgraph Studio". |
| resources/glossary.mdx | 2 | Add **Gateway** and **Gateway provider**. Rework the Endpoint and Subgraph Studio entries. |

### Tier C: wording only

| File | Hits |
| ------------------------------------------------------------------ | -----: |
| subgraphs/tooling/subgraph-mcp/claude.mdx · cline.mdx · cursor.mdx | 2 each |
| subgraphs/best-practices/secure-api-keys-nextjs.mdx | 2 |
| subgraphs/best-practices/grafting.mdx | 4 |
| subgraphs/best-practices/subgraph-debug-forking.mdx | 4 |
| subgraphs/developing/creating/subgraph-manifest.mdx | 1 |
| subgraphs/developing/curating.mdx | 1 |
| subgraphs/querying/subgraph-id-vs-deployment-id.mdx | 1 |
| subgraphs/existing-subgraphs/explorer.mdx | 1 |
| supported-networks.mdx (footnote) | 1 |
| substreams/developing/dev-container.mdx · solana/transactions.mdx | 1 each |

### No change needed

- gateways/subgraphs/* (8 hits; Studio cited as an example of an operator, which is appropriate in operator docs)
- indexing/chain-integration-overview.mdx
- resources/delegating/undelegating.mdx

### Components, strings and config

| File | Change |
| --- | --- |
| `pages/en/index.json` (`studioBilling` card; `tableLegend.subgraphs.studio`) | Card → "Providers & Pricing". Legend can stay ("Subgraph Studio only" is a real tier) until the registry change. |
| `src/HomePage.tsx` L248 | API-keys link → Choosing a Provider. |
| `src/supportedNetworks/ResourceCards.tsx` L29–31, L74 | Point to Choosing a Provider. |
| `src/supportedNetworks/GetApiKeyButton.tsx` | Link to Choosing a Provider, or list providers from the registry. |
| `src/supportedNetworks/NetworkDetailsPage.tsx` L13–19, L80–81 | "Payments: Subgraph Studio" → providers for this chain. |
| `src/supportedNetworks/NetworkContext.tsx` | Keep the Studio-indexing notice, labeled as Studio. |
| `src/supportedNetworks/utils.ts` | Depends on the networks-registry `kind` change (phase 3). |
| `nginx.conf`, `website/route-lockfile.txt` | Add a rewrite for every moved page. Repoint existing rewrites so they don't chain. |

### networks-registry (phase 3)

- `schemas/*.json`: `services.subgraphs[].kind` enum is `gateway | studio | backstop | curation`. Replace `studio` with a neutral kind, or add `name`/`operator`. Allow multiple `gateway` entries per chain.
- `registry/**`: gateway descriptions say "The Graph's canonical Subgraph gateway". Drop "canonical" and name the operator.

## Regenerate the raw list

Run from `website/src/pages/en`:

```sh
grep -rn -i "subgraph studio\|thegraph.com/studio\|studio\.thegraph\|in studio\|to studio\|gateway\.thegraph\.com\|100,000 free\|100,000 queries\|free plan\|growth plan\|studio-pricing" \
--include=*.mdx --include=*.md --include=*.json . | grep -v "visualstudio\|VS Code"
```
Loading
Loading