←back to thread

1901 points l2silver | 1 comments | | HN request time: 0.366s | source

Maybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
1. aabbcc1241 ◴[] No.35751519[source]
I built a starter template "create-rpc" [1] to help my freelancer friends to easily setup RPC API for Typescript projects.

The core is powered by meta-programming, aka code that further generates code.

It auto generate typed client SDK with named types for API input and output. And it comes with JWT integrated out of the box.

Compared to traditional untyped restful API over http, it helps developer to prototype and evolve the application with inferred type hint.

Upcoming improvement will be runtime type checking with cast.ts [2] or ts-type-check [3]

[1] https://www.npmjs.com/package/create-rpc

[2] https://www.npmjs.com/package/cast.ts

[3] https://www.npmjs.com/package/ts-type-check