{"repo":"jsonnull/electron-trpc","free":true,"listed":false,"github":"https://github.com/jsonnull/electron-trpc","clone":"git clone https://github.com/jsonnull/electron-trpc.git","description":"Build type-safe Electron inter-process communication using tRPC","language":"TypeScript","stars":401,"topics":["electron","ipc","trpc","typescript","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"electron-trpc Build IPC for Electron with tRPC - Expose APIs from Electron's main process to one or more render processes. - Build fully type-safe IPC. - Secure alternative to opening servers on localhost. - Full support for queries, mutations, and subscriptions. Installation Basic Setup 1. Add your tRPC router to the Electron main process using createIPCHandler : 2. Expose the IPC to the render process from the preload file: Note: electron-trpc depends on contextIsolation being enabled, which is the default. 3. When creating the client in the render process, use the ipcLink (instead of the HTTP or batch HTTP links): 4. Now you can use the client in your render process as you normally would (e.g. using @trpc/react ).","default_branch":null,"files":null,"tree":[],"storefront":"/r/jsonnull","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jsonnull/electron-trpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}