
"Cap'n Web distinguishes itself by having no schemas and minimal boilerplate, which simplifies setup and integrates smoothly with TypeScript. It operates on a human-readable serialization format based on JSON, with some pre- and post-processing to handle special data types. The system is designed to be lightweight, compressing to under 10 kB without any dependencies, and is available as open source under the MIT license. It supports multiple transports out-of-the-box, including HTTP, WebSocket, and postMessage(), and is compatible with all major browsers,"
"Cloudflare Workers, Node.js, and other modern JavaScript runtimes. Cap'n Web is particularly well-suited for interactive web applications with real-time collaborative features and for modeling interactions across complex security boundaries. While the system is new and considered experimental, it is already being used in features such as the "remote bindings" in Wrangler, which allows a local test instance to communicate via RPC with production services."
Cap'n Web is a TypeScript-based RPC protocol and implementation designed for the modern web stack. The system omits schemas and minimizes boilerplate to simplify setup and TypeScript integration. Serialization uses a human-readable JSON-based format with pre- and post-processing for special data types. The implementation is compact (under 10 kB) with no dependencies and is released under the MIT license. Multiple transports are supported out of the box, including HTTP, WebSocket, and postMessage(). Compatibility includes major browsers, Cloudflare Workers, Node.js, and other modern JavaScript runtimes. The system targets interactive web applications, real-time collaboration, and modeling across complex security boundaries, and is already used experimentally in Wrangler's remote bindings.
Read at App Developer Magazine
Unable to calculate read time
Collection
[
|
...
]