← Daily
📝 article evilmartians.com · October 28, 2026

How to make postMessage type-safe in under 350 bytes

Authors: Pavel Grinchenko, Frontend Engineer, and Travis Turner, Tech Editor Topics: DX, Open Source, TypeScript, JavaScript Typed-channel is a library for typed messages and requests across workers, iframes, tabs, and event buses. typed-channel makes postMessage type-safe in about 350 bytes. You define message names and payloads once, and TypeScript checks both sides. The same API works across Web Workers, iframes, tabs, and in-page event buses. Version 0.11 adds cancelable requests: cancel ...

Read on evilmartians.com →
+ Feature your site