Public Beta
End-to-end
type safety.
Seamless bridge between your Python backend and TypeScript frontend with zero-cost abstractions. Build faster, break less.
12345678910
from pyrpc_core import rpc, model
@model
class User:
id: int
name: str
@rpc
def get_user(id: int) -> User:
return User(id=id, name="Paul Graham")$uv add pyrpc-core
|
Compatible with your stack
Python
FastAPI
Flask
Django
TypeScript
React
Next.js
Python
FastAPI
Flask
Django
TypeScript
React
Next.js
Python
FastAPI
Flask
Django
TypeScript
React
Next.js
Features
Everything you need to bridge Python and TypeScript with total type safety.
01
Contract-First Bridge.
Seamlessly translate your Python procedure signatures into TypeScript contracts.
contract.synced
02
Pydantic v2 Engine.
Industrial-grade parameter validation and return type serialization natively.
Strict Validation
03
Universal Adapters.
Drop pyRPC into FastAPI, Flask, Django, or any standard ASGI server.
FA
FL
DJ
04
Modular Routing.
Organize your API using nested routers, prefixes, and clean namespacing.
users/auth/login()
05
Async-First Core.
High-concurrency performance with native async/await support throughout.
06
JSON-RPC 2.0.
Built on a predictable, standardized protocol for robust error handling.
code: -32601