Phero: Build a type-safe, full-stack app with TypeScript
Blog post from LogRocket
Phero, developed by Press Play in 2020 and open-sourced in September 2022, addresses the challenges frontend developers face when backend API changes require client app updates to prevent errors. It is built using TypeScript and automatically generates a type-safe client for the frontend by processing backend code, allowing seamless calling of backend services from the frontend as if they were local functions. Phero employs remote procedure call (RPC) for communication between client and server and ensures type safety by exposing backend types and interfaces. It benefits developers by eliminating the need for duplicated types and interfaces across client and server sides, maintaining end-to-end type safety, and offering flexibility to work with any TypeScript-based framework. Phero helps to write more concise code, handle backend errors in the frontend, and provides improved maintainability and backward compatibility in software projects.