Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: mark Labs nodes and pools, and show external nodes and external bytes as their own counters

オープン
#66 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start with wrangler.jsonc, the stats serialization and validation path using asStats and emptyLabel, and the metrics and settlements page; read #65 for the existing external-paid metric. Then update website/lib/stats.ts to accept the additive fields in the same release window. Done means internal operators and owners are published consistently, node and byte counters have hourly and daily points, and the page shows the split, Labs tags, and copy.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Problem

The page says 9 registered nodes. Most are ours. It does not say so, and a reader who finds out later trusts nothing else on the page. The same applies to pools: #65 adds "bytes paid by non-operator pools", but a Labs pool that is not a registered operator (the smoke-test buyer) still counts as external there.

Proposal

Mark Labs-run nodes and Labs-owned pools, and show external figures as their own counters:

  • Config. INTERNAL_OPERATORS and INTERNAL_OWNERS lists in wrangler.jsonc (addresses, lower-case), maintained from the fleet inventory (decdn/fleet). Both ship in the published JSON (internal: { operators: [...], owners: [...] }) so the page and anyone reading the file apply the same classification.
  • Nodes. nodes[].internal: true for a registered operator in the list. The by-region table shows "9 nodes (6 Labs, 3 external)"; the header liveness figure gets the same split.
  • Bytes. totals.externalBytesServed (Settled by an external operator) alongside the external-paid figure from #65 (PoolRedeemed from a pool whose owner is neither an operator nor in INTERNAL_OWNERS). Both get hourly and daily points like the headline metrics.
  • Settlements table. A "Labs" tag on internal operator rows.
  • Copy. One line under the metrics: "Labs runs N of the nodes; external counters exclude them and the pools we fund." Lowercase, type-micro, as the page does.

Empty states follow the existing emptyLabel switch per block; asStats validates the new fields; website/lib/stats.ts (decdn/website) shape-checks the same file, so land the additive fields there in the same window.

Related

  • External-paid metric: #65
  • Real mirror that makes the external line move (decdn/fleet): decdn/fleet#44
主要言語
TypeScript
スター
2
フォーク
0
平均マージ
10時間 46分
マージ済み PR(30日)
37

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

decdn/stats のほかの issue

decdn/stats の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。