He
HeliumTS
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 Started
1import { defineMethod } from "heliumts/server";
2
3export const getTasks = defineMethod(async (args?: { status?: string }) => {
4 const filter = args?.status ? { status: args.status } : {};
5 const tasks = await getTasksFromDB(filter);
6
7 return tasks;
8});
See working example

Streaming, built in.

Start, stop, and restart a typed response.

Try streaming

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.