@jorvel/runtime
v0.2.0
Published
JORVEL runtime: router, remote loader, prefetch, error boundaries, telemetry, and React adapters for module federation hosts.
Maintainers
Readme
@jorvel/runtime
The JORVEL runtime: hash/history router, <RemoteOutlet> and <RouteTarget> components, remote-entry loader with origin allowlist + SRI, prefetch, error boundaries with telemetry, service worker bootstrap, and Web Vitals integration.
Install
pnpm add @jorvel/runtimeHighlights
- Origin allowlist + SRI —
RemoteRegistryrejects remotes whose origin is not on the allowlist, and verifies subresource integrity when configured. - In-flight dedupe — concurrent calls to
loadRemoteEntryshare a single<script>insertion. - Abort on rapid navigation —
RemoteOutletcancels in-flight imports for routes the user has navigated away from. - Telemetry — all remote loads emit
phase: 'success' | 'error'with duration; the error boundary forwardscomponentDidCatchto@jorvel/observability. - SSR-safe —
usePathnameanduseSearchParamsno-op on the server; pair with@jorvel/ssrfor streaming/static export.
See the repo root for full docs and examples.
