All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Cap'n Web: New JavaScript-Native RPC Protocol for Web Browsers and Servers

By

jgrahamc

8mo ago· 17 min readenNews

Summary

Cap'n Web is a new open-source RPC (Remote Procedure Call) protocol designed specifically for web browsers and servers. Created as a spiritual successor to Cap'n Proto, it's implemented in pure TypeScript and eliminates the need for schemas and boilerplate code. The protocol operates as an object-capability system, providing the expressive power of Cap'n Proto while being optimized for the web stack. It works similarly to JavaScript-native RPC systems in Cloudflare Workers, making it particularly suitable for modern web development environments.

Key quotes

· 4 pulled
Cap'n Web is a spiritual sibling to Cap'n Proto, an RPC protocol I (Kenton) created a decade ago, but designed to play nice in the web stack.
Like Cap'n Proto, it is an object-capability protocol. ("Cap'n" is short for "capabilities and".) We'll get into this more below, but it's incredibly powerful.
Unlike Cap'n Proto, Cap'n Web has no schemas. In fact, it has almost no boilerplate whatsoever.
This means it works more like the JavaScript-native RPC system in Cloudflare Workers.
Snippet from the RSS feed
Cap'n Web is a new open source, JavaScript-native RPC protocol for use in browsers and web servers. It provides the expressive power of Cap'n Proto, but with no schemas and no boilerplate.

You might also wanna read