Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol
Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol
Last week Cloudflare released Cap'n Web [1], a schema-free capability-based RPC protocol. I built capn-rs this week - a Rust implementation with full wire protocol compatibility. Links: GitHub: https://github.com/currentspace/capn-rs Crates: https://crates.io/crates/capnweb-server API docs: https://docs.rs/capnweb-server What's working: Wire compatibility verified via integration tests against TypeScript reference Multi-transport: HTTP batch, WebSocket, WebTransport (HTTP/3) Complete IL (intermediate language) expression evaluator Promise pipelining with dependency resolution Comprehensive test coverage The interesting design challenge was mapping Cap'n Web's record-replay .map() semantics to Rust's type system while maintaining ergonomic APIs. Cap'n Web records operations on placeholder values to build execution plans - in Rust this became a clean builder pattern with type-level guarantees. Built this as an experiment with Claude Code for porting complex protocols. The AI handled mechanical translation well, but architectural decisions (especially around async/await patterns and lifetime management) required human judgment. This is early days - I'd especially appreciate feedback on API ergonomics and any edge cases I might have missed. Also happy to discuss the protocol design or the AI-assisted development experience. [1] https://news.ycombinator.com/item?id=45332883
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Professionally produced Gravity Bong top/cap/adapter
TUS Protocol Implementation in Rust
Cap'n Proto, by the ex-maintainer of Protocol Buffers
Next-generation CAPTCHA service powered by Cloudflare Worker
Easier FFI Between Rust and Python via Cap'n Proto
Tweening web visualisation, in Rust – (WASM)
Wotop – Web on top of any protocol
Wotop – Web on top of any protocol
I implemented vmess protocol in Rust (for fun and profit)
caps to head