Repository navigation
Description
Problem
The page shows bytes served and USDC settled. It does not say who paid. On the live file today (stats-421614.json, 2026-10-24):
| registered operators | 9 |
| pools opened | 18 |
| distinct pool owners | 13 |
| pools whose owner is not a registered operator | 8 (5 owners) |
| median of the last 50 settlements | 10.5 GB |
Most pools belong to the operators themselves, and the uniform ~10.5 GB settlements look like node-to-node fills and the smoke-test load generator, not customers. The network is mostly paying itself. The one line an investor or a customer will read is bytes paid for by pools whose owner is not a registered operator, and the page cannot show it.
Proposal
Add an external demand figure next to bytes served: all-time and rolling-24h bytes (and USDC) paid from pools whose owner is not in the registered set, with the same hourly series the other headline metrics have.
Worker side (worker/src/stats.ts already keeps poolOwners and the operator set, and PoolRedeemed lanes carry bytesPaid per pool):
- On
poolRedeemed, classify the pool by its owner at that moment: internal when the owner is a registered operator (or on aINTERNAL_OWNERSlist inwrangler.jsoncfor Labs wallets that are not operators, such as the smoke-test buyer), else external. - Accumulate
totals.externalBytesPaid/totals.externalValuePaid, and addexternalBytesPaidtoDailyPointandHourlyPoint. - Keep
bytesPulledper region as is; this is a different cut of the same events.
Page side: a headline tile "external demand" with the 24h delta, and a line under the settlements table saying what counts as external. Empty states follow the existing emptyLabel switch per block.
Caveats
- An operator may fund pools from a buyer wallet that differs from its registered operator address; the classification is then wrong in the generous direction (it over-counts external). The
INTERNAL_OWNERSlist is the fix for known cases; the caption says the figure is an upper bound. USDCfromPoolRedeemedis what nodes redeemed, not what pools deposited; label it "paid", not "spent".- Schema change is cross-repo.
website/lib/stats.ts(decdn/website) fetches and shape-checks the same file. New fields are additive, but check that its validator tolerates them before the worker ships, or ship both in the same window.
Related
- The demand-side work this number measures: cli:
decdn publish ./dirpublishes a directory to a namespace in one command decdn#2591, gateway: hosted public HTTP gateway at<ns>.decdn.linkthat pays a pool behind the scenes decdn#2593, sponsord: publisher dashboard with card-to-USDC pool funding, per-namespace spend and per-user allowances decdn#2594 - Docs "Deliver" tab that will quote it: docs: add a "Deliver" tab for publishers (publish, gateway, SDK, pricing) website#335
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
thiras commentedon Oct 24, 2026
Fleet work that makes this figure non-zero: https://github.com/decdn/fleet/issues/44
thiras commentedon Oct 24, 2026
Labs-node and Labs-pool marking, which shares the internal-owners list with this: #66