Easy-to-understand, type-safe, transport-agnostic RPC/IPC for JavaScript, supporting callbacks, batching, file uploads, custom serialization, and more.
Prim+RPC provides type-safe, transport-agnostic RPC/IPC for JavaScript environments.
- for
- JavaScript developers needing simple client-server function calls.
- pricing
- open source
- license
- Apache-2.0
- @doseofted/prim-rpc@0.1.0-alpha.26a year ago
- @doseofted/prim-rpc-tooling@0.1.0-alpha.@doseofted/prim-rpc-tooling@0.1.0-alpha.9a year ago
- @doseofted/prim-rpc-plugins@0.1.0-alpha.@doseofted/prim-rpc-plugins@0.1.0-alpha.23a year ago
works withNodeDenoBunExpressFastifyHonoNext.jsRemixNuxtWebSocketWeb WorkerAstroFetch API
Key features
8 features of Prim+RPC
- Type-safe calls — Full TypeScript or JSDoc typings are generated at runtime.
- Zero client generation — Functions are called directly without a build step.
- Transport agnostic — Works over HTTP, WebSocket, Web Workers, processes, etc.
- Framework agnostic — Integrates with Express, Fastify, Hono, Next.js, Deno, Bun and more.
- File & Blob support — Upload and download files without extra handling.
- Batching — Multiple RPC calls can be combined into a single request.
- Custom serialization — Plug-in JSON handlers for Dates, RegExps, Errors, etc.
- Error propagation — Server errors are thrown directly on the client.
Use cases
- Call server-side functions from a browser app as if they were local.
- Expose internal APIs to web workers or separate processes.
- Build a public API that supports file uploads and callbacks.
Prim+RPC vs alternatives
Prim+RPC | Node File Router | Fastgen | Sideko | Fluent CI | |
|---|---|---|---|---|---|
| Best for | Transport-agnostic JavaScript RPC | File-based routing for Node.js | Webflow-style backend builder | API SDK generation | TypeScript CI/CD pipelines |
| Pricing | Open source | Free | Subscription | Subscription | Free |
| DevHunt upvotes | 9 | 123 | 95 | 81 | 158 |
| Launched | Jan 2023 | Jan 2023 | Jan 2023 | Jan 2024 | Jan 2024 |
- Prim+RPC vs Node File Router: File-router focuses on routing, not RPC function calls.
- Prim+RPC vs Fastgen: Fastgen builds backend UI, whereas Prim+RPC handles RPC communication.
- Prim+RPC vs Sideko: Sideko generates SDKs/documentation, Prim+RPC provides runtime RPC without SDKs.
- Prim+RPC vs Fluent CI: Fluent CI orchestrates CI/CD pipelines; Prim+RPC is an RPC library.
Prim+RPC FAQ
Do I need to generate client code?+
No, Prim+RPC creates calls at runtime, so there is no separate generation step.
Can I use Prim+RPC with my existing server framework?+
Yes, it is framework agnostic and provides plugins for Express, Fastify, Hono, Next.js, and others.
Is the library type-safe?+
Full type definitions are provided via TypeScript or JSDoc, giving compile-time safety.
What transports are supported?+
Prim+RPC is transport-agnostic; it works over HTTP, WebSocket, Web Workers, processes, and custom plugins.
How are errors handled?+
Server-side errors are sent directly to the client and thrown as normal JavaScript errors.
Can I upload files through RPC?+
Yes, files and Blobs are fully supported without additional boilerplate.
Summarized by DevHunt from prim.doseofted.me · Sep 28, 2026. Details may change; check the official site.

Prim+RPC
Node File Router
Fastgen
Sideko
Fluent CI








