Cap'n Web is a new open-source RPC protocol built in TypeScript that brings object-capability features to web development. Unlike traditional RPC systems, it requires no schemas or boilerplate, supports bidirectional calling, function passing by reference, and promise pipelining. The protocol works over HTTP, WebSocket, and postMessage, compresses to under 10kB, and enables complex interactions like authentication patterns and array operations in single network round trips. It aims to solve GraphQL's waterfall problem while maintaining familiar JavaScript programming patterns.

18m read timeFrom blog.cloudflare.com
Post cover image
Table of contents
Features, features, features…An alternative to GraphQL?Implementation detailsTry it out!
3 Comments

Sort: