All UI crates must expose GET /openrpc.json #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Per Hero ecosystem skills, every
_uiservice should expose its backend OpenRPC spec atGET /openrpc.json. This allows the inspector to discover methods even when the UI does not proxyPOST /rpc.Currently, only UIs that implement a manual RPC proxy (forwarding
POST /rpcto the backend_server.sock) are discoverable. UIs without this proxy show 0 methods in the inspector.Affected UI crates
hero_os_http(hero_os repo) — has/rpc/{context}proxy but no/openrpc.json; PR in progress ondevelopment_consolidatedhero_foundry_ui(hero_fossil repo) — has/api/discoverbut no/openrpc.json; PR in progressNot applicable (no UI crate exists)
— hero_proxy is a reverse proxy, no dedicated UI cratehero_proxy_ui— single binary, no UI cratehero_auth— web forms app, no JSON-RPC UIhero_bizUIs that already work (proxy
/rpc)hero_books, hero_embedder, hero_indexer, hero_osis, hero_redis, hero_voice, zinit — all discoverable by inspector.
Future: openrpc_proxy! macro
The skills reference an
openrpc_proxy!macro that would standardize this. Until implemented, each UI adds a manualGET /openrpc.jsonroute.Related
POST /rpcfirst, thenGET /openrpc.jsonfallback (hero_inspector PR #4, merged)_http->_ui(hero_services #43)