Type-Safe APIs. Any Language.

Connect frontends to backends with confidence. HTTRPC delivers end-to-end type safety across your entire stack, regardless of language.


import { createClient } from 'httrpc';

// Type-safe client
const client = createClient({
  baseUrl: 'https://api.example.com',
  headers: {
    Authorization: `Bearer ${token}`
  }
});

// Fully typed response
const user = await client.users.getUser({
  id: 123
});

Why Choose HTTRPC?

A modern approach to API development that prioritizes developer experience and type safety.

End-to-End Type Safety

JSON Schema validation ensures robust type contracts between client and server.

Language Agnostic

Integrate seamlessly with any backend or frontend using standard HTTP protocols.

Easy Integration

Quick adoption with minimal setup. Focus on building, not configuration.

Flexible Interaction

Supports Queries, Mutations, and Subscriptions for diverse API needs.


{
  "type": "named",
  "args": {
    "name": "Jane Smith",
    "email": "[email protected]"
  }
}

Intuitive API Design

HTTRPC follows RESTful principles while adding type safety through JSON Schema validation.

  • Consistent URL patterns for easy discovery
  • Standard HTTP methods and status codes
  • JSON Schema for request and response validation

Ready to Simplify Your APIs?

Start building type-safe, language-agnostic APIs today with HTTRPC.