πŸš€ Off-Main-Thread Processing

Worker HTTP

Off-main-thread HTTP with typed RPC bridge and pool orchestration.

⚑ WorkerTransport

Typed RPC

Typed RPC bridge with request/response correlation and worker pool.

✍️ HMAC Signing

HMAC-SHA256

Sign and verify request payloads using HMAC via native Web Crypto API.

#️⃣ Content Hashing

SHA-256

Generate SHA-256 hashes of request bodies for integrity checks and caching.

πŸ” AES Encryption

AES-GCM

Encrypt and decrypt sensitive payloads using AES-GCM.

🌊 Streams Polyfill

Safari Support

Detects 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.

/api/users→api
/api/secure/payments→secure
/public/images/logo.png→cdn
/other/path→main-thread

🧬 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!