@opennodes/registry 0.1.48 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/data/locations-eu.json +2 -2
- package/src/locations.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennodes/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "OpenNodes (ONP) reference registry: node registration with proof-of-resource qualification (Stage A/B/C), transparent ranking, enforceable estimates, catalog importers (OpenRouter, Hugging Face, models.dev, Ollama), MCP surface, and the web app (catalog, chat, advisor, Node Builder)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
"id": "opennodes-demo",
|
|
598
598
|
"name": "OpenNodes demo node",
|
|
599
599
|
"nodes": ["io.opennodes.demo-node"],
|
|
600
|
-
"
|
|
600
|
+
"models_note": "Reference node: one small CPU-only model. Listed for where it runs, not offered in region search or recommendations.",
|
|
601
601
|
"operator": { "name": "OpenNodes Project", "country": "DE", "url": "https://opennodes.io" },
|
|
602
602
|
"sites": [
|
|
603
603
|
{ "id": "nur", "region": "DE-BY", "site": "Nuremberg", "status": "live", "basis": "claimed", "facility_operator": "Hetzner", "source": "https://demo-node.opennodes.io/.well-known/open-node.json", "checked": "2026-11-04", "note": "Stated in the node's own card description (Hetzner CPX22 VM).", "geo": { "lat": 49.4521, "lon": 11.0767, "precision": "city" } }
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
"id": "opennodes-helsinki",
|
|
611
611
|
"name": "OpenNodes reference node (Helsinki)",
|
|
612
612
|
"nodes": ["io.opennodes.helsinki"],
|
|
613
|
-
"
|
|
613
|
+
"models_note": "Reference node: one small CPU-only model. Listed for where it runs, not offered in region search or recommendations.",
|
|
614
614
|
"operator": { "name": "OpenNodes Project", "country": "FI", "url": "https://opennodes.io" },
|
|
615
615
|
"sites": [
|
|
616
616
|
{ "id": "hel", "region": "FI-18", "site": "Helsinki", "status": "live", "basis": "claimed", "facility_operator": "Hetzner", "source": "https://helsinki.opennodes.io/.well-known/open-node.json", "checked": "2026-11-04", "note": "Stated in the node's own card description (Hetzner CPX22 VM).", "geo": { "lat": 60.1699, "lon": 24.9384, "precision": "city" } }
|
package/src/locations.js
CHANGED
|
@@ -72,8 +72,8 @@ const LOOPBACK = /^https?:\/\/(127\.|localhost[:/]|\[::1\])/;
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Where a node serves from, for the directory: the countries its card declares, else those of
|
|
75
|
-
* its seed sites (`seed` from seedNodeSites). With neither, `label` says why: local (seed kind or
|
|
76
|
-
* a loopback endpoint), router, not_published (researched, nothing public), not_declared
|
|
75
|
+
* its seed sites (`seed` from seedNodeSites). With neither, `label` says why: local (seed kind, or
|
|
76
|
+
* a loopback endpoint with no seed entry: a client-side proxy can look the same), router, not_published (researched, nothing public), not_declared
|
|
77
77
|
* (registered card), unknown.
|
|
78
78
|
*/
|
|
79
79
|
export function nodeServes(node, card, seed) {
|
|
@@ -85,7 +85,7 @@ export function nodeServes(node, card, seed) {
|
|
|
85
85
|
const places = countries(from.filter(live));
|
|
86
86
|
const planned = countries(from.filter((l) => !live(l))).filter((c) => !places.includes(c));
|
|
87
87
|
const label = places.length || planned.length ? null
|
|
88
|
-
: seed?.kind === 'local' || LOOPBACK.test(card?.endpoints?.openai ?? '') ? 'local'
|
|
88
|
+
: seed?.kind === 'local' || (!seed && LOOPBACK.test(card?.endpoints?.openai ?? '')) ? 'local'
|
|
89
89
|
: seed?.kind === 'router' ? 'router'
|
|
90
90
|
: seed ? 'not_published' : node.source === 'import' ? 'unknown' : 'not_declared';
|
|
91
91
|
return { places, planned, source: !from.length ? null : declared.length ? 'card' : 'seed', label };
|