JavaScript/TypeScript-native, low-boilerplate, object-capability RPC system
3.9k
Stars
134
Forks
22
Open issues
28
Contributors
AI Analysis
Cap'n Web is a JavaScript/TypeScript-native RPC system implementing object-capability protocols, designed for low-boilerplate communication across web environments (browsers, Workers, Node.js, Deno). It excels for developers building bidirectional, promise-pipelined APIs without schemas, particularly those integrating Cloudflare Workers or seeking callback-based RPC patterns; it is not a general-purpose REST or GraphQL replacement.
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
Cloudflare's JavaScript-native RPC system trades Cap'n Proto's schemas for zero-boilerplate, bidirectional calling in web environments
Cap'n Web is a lightweight RPC framework built by the Cap'n Proto author, designed for JavaScript/TypeScript runtimes (browsers, Workers, Node, Deno). It implements object-capability semantics—bidirectional calling, function-as-reference passing, promise pipelining—while requiring no schema definition and serializing to JSON. At ~3,800 stars with modest recent velocity (3 stars in 7 days as of June 2026), it appears positioned as a specialized tool for Cloudflare Workers and JavaScript-heavy microservices rather than a competitor to Cap'n Proto itself.
Created June 2025 by the Cap'n Proto team at Cloudflare, Cap'n Web forks Cap'n Proto's capability-based security model but strips away the schema layer to match JavaScript's duck-typing culture. It's a deliberate niche adaptation, not a port.
The project gained 3,844 stars over ~1 year, peaking early (typical for a Cloudflare-backed release with technical authority). Recent growth has slowed to 3 stars in 7 days, suggesting adoption has stabilized within its intended audience (Cloudflare Workers developers, serverless-first teams) rather than expanding to the broader RPC market.
Adoption not verified. README includes Cloudflare Workers as a primary runtime and mentions the concept as inspired by Cloudflare Workers' RPC, suggesting internal Cloudflare use is plausible. No public case studies, production deployment documentation, or enterprise adoption data provided. npm package exists but download metrics not available from repository metadata.
Based on README: TypeScript-native, transport-agnostic (HTTP, WebSocket, postMessage), no external dependencies, <10kB minified+gzipped. Likely uses JSON serialization with capability references and promise pipelining as core primitives. Appears to rely on JavaScript's async/await and Proxy or similar metaprogramming for RPC stub generation.
Not documented in README. No test fixture or CI/CD information provided.
Last push 2026-06-20 (5 days before analysis date), indicating active maintenance. Repository created 2025-06-08, so only ~1 year old. Push frequency and issue resolution velocity cannot be assessed from metadata alone, but recency of last commit suggests ongoing engagement.
ADOPT IF: you are building microservices or distributed systems in JavaScript/TypeScript, primarily on Cloudflare Workers or Node, and you value bidirectional RPC, callback passing, and promise pipelining over schema-driven type safety. The minimal boilerplate and zero dependencies make it attractive for rapid prototyping in these environments. AVOID IF: you require schema versioning, cross-language interoperability, production adoption proof points, or comprehensive documentation and tooling. Cap'n Web's newness and unverified production adoption also make it risky for mission-critical systems requiring vendor stability. MONITOR IF: you are evaluating RPC frameworks for a new JavaScript project; Cap'n Web is technically sound and actively maintained, but wait for evidence of wider adoption and maturation of the test/documentation surface before betting critical infrastructure on it.
Independent dimensions
Mainstream potential
4/10
Technical importance
7/10
Adoption evidence
2/10
- Adoption not verified: no public case studies or production deployment documentation; risk of selecting an immature tool for production workloads.
- Limited ecosystem: test coverage undocumented, tooling (logging, observability, debugging) not mentioned, limiting operational visibility.
- Early-stage maintenance: repository only ~1 year old; long-term maintenance commitment unclear despite active recent pushes.
- Narrow audience: positioning tied to Cloudflare Workers and JavaScript runtimes may limit appeal; adoption may plateau if Workers adoption doesn't accelerate.
- Documentation gaps: README is thorough but truncated; unclear if full examples, error handling, security guides, and migration paths from other RPC systems exist.
Cap'n Web is likely to remain a specialized tool within the Cloudflare and JavaScript-native microservices ecosystem, with adoption limited to teams already committed to Workers or similar runtimes. Without broader proof of production use or significant documentation/tooling investment, mainstream adoption in the RPC category is unlikely. May see moderate growth if Cloudflare Workers adoption accelerates or if TypeScript RPC frameworks become a standard architectural pattern.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Language
- TypeScript
- License
- MIT
- Last updated
- 19h ago
- Created
- 13mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
onRpcBroken callbacks are retained for the session's lifetime after their import is disposed (and fire at teardown)
Support serializing/deserializing Response objects with a websocket
Deserializing untrusted `bigint` values can cause CPU exhaustion
exposing `WorkerEntrypoints` via Cap'n Web
Cap'n Proto in Wasm
Top contributors
Similar repos
cloudflare/partykit
PartyKit is a TypeScript library ecosystem for building real-time collaborative...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
3.9k | +6 | TypeScript | 8/10 | 19h ago |
|
|
13.1k | — | C++ | 8/10 | 14h ago |
|
|
1.2k | — | TypeScript | 7/10 | 17h ago |
|
|
5.4k | — | TypeScript | 8/10 | 8h ago |
|
|
8.4k | — | C++ | 8/10 | 11h ago |
|
|
2.5k | — | Rust | 8/10 | 5d ago |
Cap'n Web trades Cap'n Proto's schema-driven type safety and cross-language support for JavaScript-native simplicity and zero boilerplate. Cap'n Proto remains the choice for performance-critical, polyglot systems; Cap'n Web for JavaScript-only microservices.
Similar zero-boilerplate RPC philosophy, but oRPC (5,340 stars) has larger adoption. Cap'n Web differentiates via object-capability model and bidirectional calling; unclear if oRPC users perceive material advantage from Cap'n Web's security model.
Cap'n Web appears to generalize the Workers RPC concept to any JavaScript runtime and multiple transports. Likely to overlap significantly with first-party Workers tooling rather than compete.
Different ecosystem; not directly comparable.
Different problem domain (bridge to native apps); not directly comparable.