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

Typed calls and streaming over HTTP

Use one server-method API for queries, mutations, and incremental replies. Helium handles HTTP requests, MessagePack, batching, and typed chunks so your React components can focus on the interface.

Stream a reply with useStreaming

Define an async generator with defineMethod, then start, cancel, and restart it from a typed React hook. Try a deterministic demo with no API key or database.

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.