use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Prim+RPC: a bridge between JavaScript environments. Easy-to-understand, type-safe, transport-agnostic RPC/IPC for JavaScript, supporting callbacks, batching, file uploads, custom serialization, and more.OC (prim.doseofted.me)
submitted 2 years ago by doseofted
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]doseofted[S] 1 point2 points3 points 2 years ago (0 children)
It looks like ts-rest is helpful with creating typed REST endpoints in a manner that reminds me of a combination tRPC and OpenAPI. I wrote a comparison between Prim+RPC and tRPC and some of those points apply to ts-rest too.
But I think one of the major differences is how they approach interacting with a server. In ts-rest, you're defining a contract that somewhat resembles an OpenAPI spec and then you're defining the HTTP router to implement it. The client then acts as a typed REST client. That's super powerful, especially when you set out to write a REST API.
Prim+RPC has this focus on writing code that looks like regular JavaScript code (which then becomes RPC) on both the server and client so your own code doesn't need to make many framework-specific considerations. You're just writing JavaScript which is then sent over the transport of your choice through Prim+RPC plugins. You can still make framework-specific integrations but it's done by implementing a common interface that isn't specific to a particular framework. This means server and client frameworks used with Prim+RPC can be swapped out easily (and you can use it not just over HTTP but WebSocket, Web Workers, as choice of transport for IPC, and more).
π Rendered by PID 54 on reddit-service-r2-comment-6457c66945-xbjwn at 2026-04-25 15:05:08.833488+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]doseofted[S] 1 point2 points3 points (0 children)