Launched January 17, 2023
Prim+RPC

Prim+RPC

A bridge between JavaScript environments.

FreeFrameworkAPIDevOps25,432 impressions#13 of its week1 comment

Comments

>log in to comment
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 110 1TypeScriptupdated 5 months 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+RPCNode File RouterFastgenSidekoFluent CI
Best forTransport-agnostic JavaScript RPCFile-based routing for Node.jsWebflow-style backend builderAPI SDK generationTypeScript CI/CD pipelines
PricingOpen sourceFreeSubscriptionSubscriptionFree
DevHunt upvotes91239581158
LaunchedJan 2023Jan 2023Jan 2023Jan 2024Jan 2024

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.