from Hacker News

Show HN: Go RPC with automatically generated TypeScript client

by ola on 4/14/24, 10:49 AM with 0 comments

This is a tiny Go package that is kind of a mix between tRPC[0] and Go's standard library net/rpc[1].

Like net/rpc the package provides access to the exported methods of an object across HTTP and like tRPC it creates a typesafe TypeScript (or JavaScript with JSDoc annotations) client that can be used by a frontend.

[0] https://trpc.io

[1] https://pkg.go.dev/net/rpc