Ca

Cap'n-rs – Rust implementation of Cloudflare's Cap'n Web protocol

Hacker News

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 card

Actual performance

52points
35comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
77%77% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: claude, new, code · Missing: mac, agents, macos
67%67% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: lua, pipe, io · Missing: https docs, excited, just released
43%43% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: builder · Missing: plus, platform, intuitive
35%35% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
32%32% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
22%22% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

GravTop
GravTop28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Professionally produced Gravity Bong top/cap/adapter

Indie Hackers1b2c
TU
TUS Protocol Implementation in Rust43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TUS Protocol Implementation in Rust

Hacker News1
Ca
Cap'n Proto, by the ex-maintainer of Protocol Buffers54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cap'n Proto, by the ex-maintainer of Protocol Buffers

Hacker News286
Cap-Worker
Cap-Worker35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Next-generation CAPTCHA service powered by Cloudflare Worker

Indie Hackers1ai
Ea
Easier FFI Between Rust and Python via Cap'n Proto53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Easier FFI Between Rust and Python via Cap'n Proto

Hacker News4
Tw
Tweening web visualisation, in Rust – (WASM)59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tweening web visualisation, in Rust – (WASM)

Hacker News94
Wo
Wotop – Web on top of any protocol50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wotop – Web on top of any protocol

Hacker News5
Wo
Wotop – Web on top of any protocol50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wotop – Web on top of any protocol

Hacker News35
I
I implemented vmess protocol in Rust (for fun and profit)56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I implemented vmess protocol in Rust (for fun and profit)

Hacker News3
Cap
Cap28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

caps to head

Indie Hackerscommitment-full-time