Service discovery
GET https://api.pkgs.ml/
Machine-readable root document listing the live route surface.
| Field | Type | Notes |
|---|---|---|
service | string | Registry service identifier. |
routes | object | Current control-plane routes keyed by purpose. |
cdn_routes | object | Current CDN/index/download routes keyed by purpose. |
legacy_routes | object | Backwards-compatible aliases still served. |
cdn_base_url | string | Base URL for CDN-backed public reads. |
index_base_url | string | Base URL for sparse-index reads. |
{
"service": "riot-package-registry",
"routes": {
"publish_artifact": "/v1/publish",
"search": "/v1/search?q=<query>",
"views_package_overview": "/v1/views/packages/<package-name>/overview",
"views_package_examples": "/v1/views/packages/<package-name>/examples?version=<version>"
},
"cdn_routes": {
"index_config": "/index/v1/config.json",
"index_package": "/index/v1/<sharded-package-document>.json",
"artifact_download": "/<artifact-key>"
},
"legacy_routes": {
"publish_artifact": "/api/v1/publish"
},
"cdn_base_url": "https://cdn.pkgs.ml",
"index_base_url": "https://cdn.pkgs.ml/index/v1"
}