Cap'n Web: New JavaScript-Native RPC Protocol for Web Browsers and Servers
By
jgrahamc
Front-window bakery material. Catches the eye, delivers the goods.
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 pulledCap'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.
You might also wanna read
WebSparks: An AI-Powered Tool for Building Web Applications Without Extensive Coding
WebSparks is an AI-powered software engineer that transforms ideas into fully functional web applications without requiring extensive coding
innovirtuoso.com·23h agoJoost de Valk publishes open Website Specification: 128 rules for modern, future-proof websites
Joost de Valk, creator of Yoast SEO, published the Website Specification (specification.website) — an open, platform-agnostic reference docu
ZX Spectrum BASIC interpreter rebuilt from scratch to run natively in web browsers
A developer has rebuilt the ZX Spectrum's BASIC interpreter from scratch to run in a web browser, without emulating the original Z80 hardwar
Building mobile-safe layouts with CSS safe-area-inset properties
This article explains how to use CSS safe-area-inset properties to build mobile-friendly layouts that account for non-rectangular screen fea
How to Set Up an Apache Reverse Proxy for an Ecommerce Website
This article provides a comprehensive, start-to-finish guide on setting up an Apache reverse proxy specifically for ecommerce websites. It c
blog.radwebhosting.com·2d agoImplementing live text search in React with Firestore Enterprise's built-in search pipeline
Firebase's Firestore Enterprise edition now includes built-in text search support. This article demonstrates how to implement live text sear
firebase.blog·2d ago