openapi-directory icon indicating copy to clipboard operation
openapi-directory copied to clipboard

Add OpenChainBench API

Open Flotapponnier opened this issue 5 months ago • 1 comments

New API Submission

API: OpenChainBench Base URL: https://openchainbench.com Docs: https://openchainbench.com/api/openapi.json

Description

OpenChainBench publishes daily open benchmarks for crypto infrastructure: RPC providers, oracles, bridges, L1 finality, prediction markets, and Hyperliquid builders. Data is reproducible, methodology is public, and citable Parquet snapshots are mirrored on HuggingFace with a Zenodo DOI.

Endpoints exposed:

  • /api/citable — flat index of all benchmarks
  • /api/stat/{slug} — single benchmark with rankings, sparkline, citation
  • /api/og/{slug} — OG image for a benchmark

No authentication. CORS enabled (access-control-allow-origin: *).

Maintainer

Mobula / OpenChainBench ([email protected]) Source and methodology: https://github.com/ChainBench/OpenChainBench

Flotapponnier avatar Jun 24 '26 13:06 Flotapponnier

Thanks for the review. Pushed a follow-up commit (baf47ad) addressing all three findings:

  • CitableRow.value and Stat.value: { type: number, nullable: true } → type: [number, "null"] (OpenAPI 3.1 / JSON Schema 2020-12).
  • Stat.rankings: added a Ranking schema as items (the spec didn't have one before; the schema now mirrors what /api/stat/{slug} actually returns — name, slug, ms.{p50,p90,p99,mean}, successRate, plus optional sampleSize / sampleHealth / dataConfidence).

The upstream source (https://openchainbench.com/api/openapi.json) is also updated in ChainBench/OpenChainBench#691 so any future re-pull stays consistent.

Flotapponnier avatar Jun 24 '26 15:06 Flotapponnier