diff --git a/src/ignition.ts b/src/ignition.ts index 96535bd..6695378 100644 --- a/src/ignition.ts +++ b/src/ignition.ts @@ -20,73 +20,125 @@ export const ignition = () => { version-vault
-

version-vault

-

Version metadata service for vfox SDK plugins.

-

View this project on GitHub

+

version-vault

+

Version metadata responses are JSON-encoded.

+ +

Examples

+
+

$ curl https://vault.vfox.dev/python/pyenv

+
{
+  "items": [
+    {
+      "version": "3.13.3",
+      "url": "https://www.python.org/ftp/python/3.13.3/Python-3.13.3.tar.xz"
+    }
+  ]
+}
+
+ +
+

$ curl https://vault.vfox.dev/python/uv-build

+
{
+  "items": [
+    {
+      "display_version": "3.13.3",
+      "platform": {
+        "os": "linux",
+        "arch": "x86_64",
+        "libc": "gnu"
+      }
+    }
+  ]
+}
+
-

Endpoints

- +
+

$ curl "https://vault.vfox.dev/python/uv-build?os=linux&arch=aarch64&libc=gnu"

+
{
+  "items": [
+    {
+      "display_version": "3.13.3",
+      "filename": "cpython-3.13.3+20260501-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz"
+    }
+  ]
+}
+
-

Try uv-build filters

-
- - - - -
+
`); diff --git a/tests/root.test.ts b/tests/root.test.ts index b0d94a7..f945a57 100644 --- a/tests/root.test.ts +++ b/tests/root.test.ts @@ -2,13 +2,17 @@ import assert from "node:assert/strict"; import test from "node:test"; import { ignition } from "../src/ignition"; -test("root route renders landing page with project and demo links", async () => { +test("root route renders landing page with examples and endpoint links", async () => { const response = await ignition().request("/"); const body = await response.text(); assert.equal(response.status, 200); assert.match(response.headers.get("content-type") ?? "", /^text\/html/); assert.match(body, /https:\/\/github\.com\/version-fox\/version-vault/); - assert.match(body, /action="\/python\/uv-build"/); + assert.match(body, /\$ curl https:\/\/vault\.vfox\.dev\/python\/pyenv/); + assert.match(body, /\$ curl https:\/\/vault\.vfox\.dev\/python\/uv-build/); + assert.match(body, /https:\/\/vault\.vfox\.dev\/python\/uv-build\?os=linux&arch=aarch64&libc=gnu/); assert.match(body, /\/python\/pyenv/); + assert.doesNotMatch(body, /