@opennodes/registry 0.1.31 → 0.1.33

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/web/index.html +22 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opennodes/registry",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
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",
@@ -43,7 +43,7 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@opennodes/core": "0.1.7",
46
+ "@opennodes/core": "0.1.10",
47
47
  "pg": "^8.13.1"
48
48
  }
49
49
  }
@@ -91,6 +91,11 @@
91
91
  nav .spacer { display: none; }
92
92
  nav .cta { margin-top: 0.3rem; }
93
93
  }
94
+ details.claim { margin: 0.2rem 0 0.7rem; }
95
+ details.claim > summary { display: inline-block; list-style: none; font-size: 0.82rem; padding: 0.45rem 0.9rem; }
96
+ details.claim > summary::-webkit-details-marker { display: none; }
97
+ details.claim p { font-size: 0.84rem; color: var(--muted); margin: 0.6rem 0; }
98
+ details.claim pre { font-size: 0.74rem; overflow-x: auto; }
94
99
  .rm { font: inherit; cursor: pointer; color: var(--muted); background: none; border: 0; padding: 0.1rem 0.3rem; min-width: 24px; min-height: 24px; border-radius: 4px; }
95
100
  .rm:hover { color: var(--ink); background: var(--line-2); }
96
101
  nav .cta:hover { text-decoration: none; opacity: 0.92; }
@@ -988,7 +993,7 @@ async function loadModel(artifact) {
988
993
  return `<tr>
989
994
  <td><div style="display:flex; flex-direction:column; gap:0.2rem">
990
995
  <a href="#/node/${encodeURIComponent(o.node_id)}" style="font-weight:600">${esc(o.node_id)}</a>
991
- <span style="display:flex; gap:0.3rem">${tierChip(o.tier)}${o.institutional ? '<span class="chip inst">institutional</span>' : ''}${o.source === 'import' ? '<span class="chip imp">IMPORTED</span>' : ''}</span>
996
+ <span style="display:flex; gap:0.3rem">${tierChip(o.tier)}${o.institutional ? '<span class="chip inst">institutional</span>' : ''}${o.source === 'import' ? `<span class="chip imp">IMPORTED</span> <a class="prov" href="#/node/${encodeURIComponent(o.node_id)}">claim</a>` : ''}</span>
992
997
  </div></td>
993
998
  <td><b>${priceStr(o.pricing, o.node_id)}</b></td>
994
999
  <td>${hwStr(o) || '<span style="color:var(--faint)" title="Vendor has not disclosed the hardware behind this offering">undisclosed</span>'}</td>
@@ -1936,11 +1941,26 @@ function claimBanner(n, card) {
1936
1941
  ? `Claim it: publish a signed Node Card at <span class="mono">https://${esc(host)}/.well-known/open-node.json</span> with node id <span class="mono">${esc(suggestedId)}</span> (your parent domain works too) and register. Your verified listing replaces this import, the registry measures what you really serve, and nothing in your stack changes.`
1937
1942
  : 'This listing has no known API endpoint. Publish a Node Card for your OpenAI-compatible API to be listed, measured and verified.';
1938
1943
  const mail = `mailto:operators@opennodes.io?subject=${encodeURIComponent('Claim ' + n.id)}`;
1944
+ const api = card.endpoints?.openai;
1945
+ const steps = host && !viaHf ? `<details class="claim">
1946
+ <summary class="btn">Claim this listing</summary>
1947
+ <p>Card-only mode: nothing in your stack changes. The kit signs a card describing your API; you host two files on <span class="mono">${esc(host)}</span> and give the registry a low-quota key for its checks.</p>
1948
+ <pre><code>pipx install onp-node
1949
+ onp-node init --engine ${esc(api)} --id ${esc(suggestedId)} --public-url https://${esc(host)}
1950
+ # edit onp-node.toml: prices per MTok, schemes = ["prepaid"], data_policy, optional [hardware]
1951
+ onp-node card --out well-known
1952
+ # host well-known/open-node.json and well-known/jwks.json at https://${esc(host)}/.well-known/
1953
+ ONP_PROBE_KEY=&lt;a key with a small quota&gt; onp-node register https://registry.opennodes.io \\
1954
+ --card-url https://${esc(host)}/.well-known/open-node.json --probe-key-env ONP_PROBE_KEY
1955
+ # publish the printed challenge at /.well-known/onp-challenge/&lt;token&gt; or as a DNS TXT record</code></pre>
1956
+ <p>The checks then run on their own: model identity, context window, capacity, server location. Passing them earns the verified tier, and your listing replaces this import. The probe key is sent only to your own API and never appears in any registry response.</p>
1957
+ </details>` : '';
1939
1958
  return `<div class="panel pad" style="max-width:56rem; margin:0.4rem 0 0.8rem; border-left:3px solid var(--accent)">
1940
1959
  <p style="margin:0 0 0.35rem; font-weight:600">Do you run ${esc(name)}?</p>
1941
1960
  <p style="margin:0 0 0.6rem; font-size:0.86rem; color:var(--muted); overflow-wrap:anywhere">${body} Free, about 15 minutes with the Node Kit.</p>
1961
+ ${steps}
1942
1962
  <span style="display:inline-flex; gap:0.6rem; flex-wrap:wrap; font-size:0.84rem">
1943
- <a href="${CLAIM_GUIDE}" target="_blank" rel="noopener">How to claim →</a>
1963
+ <a href="${CLAIM_GUIDE}" target="_blank" rel="noopener">Full guide →</a>
1944
1964
  <a href="#/register">Register a node</a>
1945
1965
  <a href="${mail}">operators@opennodes.io</a>
1946
1966
  </span>