Experimental Release
React Server Components
on the Edge
A code-first, type-safe router built for React Server Components. Deploy to Cloudflare Workers with zero configuration.
RSC Streaming
Stream React Server Components directly from the edge. Zero client-side JavaScript for static content.
Type-Safe
Full TypeScript support with inferred route parameters, typed handlers, and autocomplete everywhere.
Edge-First
Optimized for Cloudflare Workers. Sub-millisecond cold starts and global distribution.
urls.ts
import { urls } from "@rangojs/router";
export const urlpatterns = urls(({ path, layout }) => [
layout(RootLayout, () => [
path("/", HomePage, { name: "home" }),
path("/about", AboutPage, { name: "about" }),
]),
]);Ready to build?
Get started with RSC Router in minutes.
npm install @rangojs/router