@naeemo/capnp Documentation
A pure TypeScript implementation of Cap'n Proto with zero-copy deserialization and full RPC support.
Quick Start
- Getting Started - Get started in 5 minutes
- Quick Start (Next.js) - Full-stack application example
Guides
- Code Generation - Generate TypeScript from schema
- RPC Usage - Remote calls, Promise Pipelining
- Dynamic Schema - Runtime schema handling
- Streaming - Stream, Bulk, Realtime API
- WebSocket Proxy - Browser to TCP bridge
Best Practices
- Performance - Optimization tips and pitfalls
- Error Handling - Robust error handling patterns
Examples
- Basic Usage - Simple serialization example
- Echo Service - RPC client/server
- Promise Pipelining - Pipeline calls
- Dynamic Schema - Runtime type handling
- WebSocket Chat - Real-time messaging
- File Transfer - Large file streaming
All examples are available in the GitHub repository.
Reference
- Performance Benchmarks - Performance test data
- Changelog - Version history
- Cap'n Proto Official
- GitHub Repository