TRPC is an awesome library for full-stack typesafety. But it normally only supports being used over http. But given that IPC in electron also isn't typesafe on its own, let's port TRPC to electron to make the ipc-event-system fully typesafe as well
I hope this video can help you. If it does then please consider subscribing and giving me some feedback.
Have a great day!
Repository with example code: https://github.com/N-Ziermann-YouTube/electron-trpc
My GitHub: https://GitHub.com/N-Ziermann
My Website: https://n-ziermann.com
Timestamps:
00:00 Demonstration
00:20 Server (electron) side
01:28 Frontend (react) side
03:42 Connecting Frontend and Backend
05:22 Should you use this?