Logo

Phero

Full-stack type-safety with pure TypeScript

Phero is the no-hassle and type-safe glue between your backend and frontend. TypeScript is at the core of it all. Development with Phero goes in these steps: 1. Build your backend. Define your domain models and functions in regular, plain TypeScript. 2. Run the CLI. This runs the server and generates an SDK for your frontend, or multiple frontends at the same time. 3. Call your backend-functions from the frontend, as if they were local. This includes type-safety and error-handling. This boosts your frontend development: 💪 Use functions and domain models on the frontend, defined on the backend. 🧨 Handle errors on the frontend, thrown by the backend. 🤝 Stop assuming data is of the type you’re expecting. You know it is, period. ✅ No more mistakes with the specs of the API, like path, arguments or headers. Backend development becomes a breeze as well: 🫶 Use TypeScript to define your domain models. No need for an extra language or DSL to learn and maintain, like with GraphQL or tRPC. 📋 Know when you break compatability with the frontend, before even running it: TypeScript has your back. 😶‍🌫️ No more outdated specs or documentation about endpoints (and what method, headers or arguments they expect). 🚀 The server can be deployed anywhere, either on one of the cloud platforms or a regular Node server.

Explore By Topic