cloudflare/capnweb
View on GitHub ↗ ★ 4,029 TypeScript
JavaScript/TypeScript-native, low-boilerplate, object-capability RPC system
9 mentions on Hacker News by 8 people: 1 story, 8 comments · first 2025-09-22 · latest 2025-09-30
20082026
-
…is useful: in implementation I ran into a spec ambiguity around array escaping (documented here: https://github.com/cloudflare/capnweb/issues/68 ). My initial Rust serializer emitted unescaped arrays at lower levels, and I even patched the…
comment by brian_meek · 2025-09-30 · in Show HN: Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol -
I think you meant to link: https://github.com/cloudflare/capnweb/blob/main/protocol.md I am so pleased that people find it boring! It was quite a puzzle to whittle it down to that point from the original monstrosity:…
comment by kentonv · 2025-09-30 · in Show HN: Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol -
…boring, in the best sense of the word. It's simple, straightforward and well specified externally ( https://github.com/cloudflare/capnweb/commits/main/protocol.... ). IMO, there's little value in reusing protocol wrangling code.
comment by bryanlarsen · 2025-09-30 · in Show HN: Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol -
…whatsoever. This means it works more like the JavaScript-native RPC system in Cloudflare Workers. https://github.com/cloudflare/capnweb
comment by srameshc · 2025-09-23 · in Cap'n Web: a new RPC system for browsers and web servers -
…no side effects I'm trying to understand how well this no-side-effects footgun is defended against. https://github.com/cloudflare/capnweb/blob/main/src/map.ts#L... seems to indicate that if the special pre-results "record mode" call of the…
comment by btown · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
…from the app or delivered to it.) This is the Cap'n Web protocol, including serialization details: https://github.com/cloudflare/capnweb/blob/main/protocol.md Now, to be fair, Cap'n Proto has a lot of features that Cap'n Web doesn't have…
comment by kentonv · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
…transport layer, is there any support for two way communication? edit: was skimming the github repo https://github.com/cloudflare/capnweb/tree/main?tab=readme-o... and saw this which answers my question: > Supports passing functions by…
comment by vmg12 · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
…or more likely that Cap'n Web will trail cloudflare workers, and if so, by what length of time? [1] https://github.com/cloudflare/capnweb/tree/main?tab=readme-o...
comment by krosaen · 2025-09-22 · in Cap'n Web: a new RPC system for browsers and web servers -
▲ 3
Cap'n Web: A JavaScript-native RPC systemstory by anhldbk · 2025-09-22 · 0 comments