Worker HTTP
Off-main-thread HTTP with typed RPC bridge and pool orchestration.
β‘ WorkerTransport
Typed RPCTyped RPC bridge with request/response correlation and worker pool.
βοΈ HMAC Signing
HMAC-SHA256Sign and verify request payloads using HMAC via native Web Crypto API.
#οΈβ£ Content Hashing
SHA-256Generate SHA-256 hashes of request bodies for integrity checks and caching.
π AES Encryption
AES-GCMEncrypt and decrypt sensitive payloads using AES-GCM.
π Streams Polyfill
Safari SupportDetects Safari 16-17 transferable streams limitation and provides ponyfill when needed.
π Cancellation
New in v21.1.0 Per-request signal and timeout flow to the worker. Observable rejects with typed errors.
π HttpBackend
v0.3.0+WorkerHttpBackend routes real HTTP requests off the main thread via provideWorkerHttpClient(). This demo calls JSONPlaceholder via the http-api.worker.js using a worker pipeline with retry + cache interceptors.
Live HTTP Call via Worker
URL Routing Simulation
matchWorkerRoute() resolves which worker handles each URL based on configuration.
𧬠Serializer Comparison
v21.2.0 Same payload, three serializers. The auto row shows which strategy createAutoSerializer() picked. TOON wins on uniform arrays of objects with primitive values; seroval handles complex types; structured-clone is the zero-overhead default.
π Worker vs HttpClient
v21.2.0 Both buttons fetch https://jsonplaceholder.typicode.com/users while a CPU-burn loop runs on the main thread. The dropped frames counter is a proxy for visible jank: requestAnimationFrame deltas above 25 ms.
Activity Log
No activity yet. Try the demos above!