@@ -50,10 +50,11 @@ components:
5050
5151 HealthBand :
5252 type : string
53- enum : [healthy, fair, concerning, critical]
53+ enum : [excellent, healthy, fair, concerning, critical]
5454 description : >
55- Server-derived from `scorecardScore` thresholds:
56- `null or < 3.0` → critical · `< 5.0` → concerning · `< 7.0` → fair · `≥ 7.0` → healthy
55+ Tinybird band when enriched (excellent ≥85, healthy 70–84, fair 50–69,
56+ concerning 30–49, critical <30). Falls back to scorecard thresholds:
57+ `null or < 3.0` → critical · `< 5.0` → concerning · `< 7.0` → fair · `≥ 7.0` → healthy.
5758
5859 StewardshipStatus :
5960 type : string
@@ -90,7 +91,7 @@ components:
9091 - ecosystem
9192 - openVulns
9293 - maintainerCount
93- - healthBand
94+ - health
9495 - stewards
9596 properties :
9697 purl :
@@ -102,12 +103,6 @@ components:
102103 ecosystem :
103104 type : string
104105 example : npm
105- criticalityScore :
106- type :
107- - number
108- - ' null'
109- description : packages.impact (0–1 float). Multiply × 100 for display score.
110- example : 0.94
111106 stewardshipId :
112107 type :
113108 - string
@@ -131,14 +126,52 @@ components:
131126 type : integer
132127 description : Count of package_maintainers rows. Bus factor proxy.
133128 example : 2
129+ criticalityScore :
130+ type :
131+ - number
132+ - ' null'
133+ description : Raw criticality score (0–1 float). Use `impact` for display.
134+ example : 0.94
135+ impact :
136+ type :
137+ - integer
138+ - ' null'
139+ description : Display score (0–100). criticalityScore × 100, rounded. Null if no score.
140+ example : 94
134141 scorecardScore :
135142 type :
136143 - number
137144 - ' null'
138145 description : OpenSSF Scorecard score (0–10). Null if no repo mapped.
139146 example : 5.2
140- healthBand :
141- $ref : ' #/components/schemas/HealthBand'
147+ health :
148+ type : object
149+ required : [score, label]
150+ properties :
151+ score :
152+ type :
153+ - integer
154+ - ' null'
155+ description : >
156+ Health score (0–100). Tinybird composite score when enriched,
157+ OpenSSF Scorecard × 10 otherwise. Null if neither is available.
158+ example : 52
159+ label :
160+ type :
161+ - string
162+ - ' null'
163+ enum : [excellent, healthy, fair, concerning, critical, null]
164+ description : >
165+ Tinybird band when enriched (excellent ≥85, healthy 70–84,
166+ fair 50–69, concerning 30–49, critical <30), scorecard band otherwise.
167+ example : fair
168+ lifecycle :
169+ type :
170+ - string
171+ - ' null'
172+ enum : [active, stable, declining, abandoned, archived, null]
173+ description : Tinybird-enriched lifecycle label. Null if not yet enriched.
174+ example : active
142175 latestReleaseAt :
143176 type :
144177 - string
@@ -230,7 +263,11 @@ components:
230263 description : ROUND(scorecard_score × 10). X-axis position (0–100). 0 if no repo.
231264 example : 52
232265 healthBand :
233- $ref : ' #/components/schemas/HealthBand'
266+ type : string
267+ enum : [healthy, fair, concerning, critical]
268+ description : >
269+ Falls back to scorecard thresholds — never 'excellent' (scatter uses
270+ scorecard score only, not Tinybird health_label).
234271 stewardshipStatus :
235272 oneOf :
236273 - $ref : ' #/components/schemas/StewardshipStatus'
@@ -545,7 +582,7 @@ paths:
545582 in : query
546583 schema :
547584 type : string
548- enum : [active, stable, declining, abandoned]
585+ enum : [active, stable, declining, abandoned, archived ]
549586 - name : status
550587 in : query
551588 description : >
@@ -625,13 +662,17 @@ paths:
625662 name : slf4j-api
626663 ecosystem : maven
627664 criticalityScore : 0.998
665+ impact : 100
628666 stewardshipId : ' 101'
629667 stewardshipStatus : active
630668 openVulns : 0
631669 maxVulnSeverity : null
632670 maintainerCount : 2
633671 scorecardScore : 7.5
634- healthBand : healthy
672+ health :
673+ score : 75
674+ label : healthy
675+ lifecycle : active
635676 latestReleaseAt : ' 2026-04-10T00:00:00Z'
636677 lastActivity :
637678 type : state_changed
0 commit comments