WU / DOCSUNIVERSAL MICROFRONTENDS
EN
WU FRAMEWORK / CONTRACTS AND RPC

One client. One service.

Consume a contract, send a request, and observe the response. Try incompatible versions and cancellation too.

RUNTIME4.0.0Versions and distribution ↗
03 / CLIENT · CONTRACT · SERVICEArchitecture guide ↗

The APIs you are using

wu.provide publishes the contract and wu.consume requires a compatible version. The client calls wu.request and the provider responds from its handler. Each application has different grants; unmounting the provider revokes its registrations and cancels pending work.

The recipe validates only the fields name and entry. Change the JSON, remove the provider, or request an incompatible version and observe where the flow stops. The service guide connects each step to its code.

This service runs inside the browser so you can try it immediately. The implementation uses a Worker and a WASI program; requests travel through WU and routes are virtual. See the SSR examples and AI and MCP for their server environments.

BUILD WU WITH US

Found a bug? Have an idea?

Your experience improves WU. Tell us what went wrong or help support its development.