Type-safe server methods for React
Build full stack React apps with Vite and typed RPC
Designed for simplicity and type safety, it provides seamless RPC, file-based routing, SSR, and SSG.
Get Started1import { defineMethod } from "heliumts/server";23export const getTasks = defineMethod(async (args?: { status?: string }) => {4 const filter = args?.status ? { status: args.status } : {};5 const tasks = await getTasksFromDB(filter);67 return tasks;8});
Streaming, built in.
Start, stop, and restart a typed response.
Zero-API Boilerplate
Call typed server methods from your components with useFetch, useCall, and useStreaming, without writing custom request plumbing.
End-to-End Type Safety
Infer method arguments and results from server to client while keeping runtime validation in your server handlers.
File-based Routing
Intuitive file-system routing similar to Next.js Pages Router. Simple and effective.
Full-Stack Capabilities
Built-in support for SSR, SSG, custom HTTP handlers, middleware, and more.