#react #ssr #framework #rsc #server-components

bin+lib rari

rari: Runtime Accelerated Rendering Infrastructure - A high-performance React Server Components framework powered by Rust

47 releases (5 breaking)

Uses new Rust 2024

new 0.8.12 Feb 5, 2026
0.8.4 Jan 30, 2026
0.5.22 Dec 24, 2025
0.5.0 Nov 24, 2025

#773 in HTTP server

MIT license

6.5MB
46K SLoC

Rust 40K SLoC // 0.0% comments JavaScript 5.5K SLoC // 0.0% comments

Contains (WOFF font, 5.5MB) NotoSansTC-VariableFont_wght.woff2, (WOFF font, 500KB) TwemojiMozilla-colr.woff2

rari

Runtime Accelerated Rendering Infrastructure

npm version License: MIT Discord

rari is a high-performance React Server Components framework powered by a Rust runtime. Built for performance, scalability, and developer experience.

With proper app router support, true server-side rendering, and correct RSC semantics, rari delivers 8.7x higher throughput and 7.5x faster response times than Next.js.

Features

  • App Router - File-based routing with layouts, loading states, and error boundaries
  • True Server-Side Rendering - Pre-rendered HTML with instant hydration
  • React Server Components - Server components by default, client components when you need them
  • Rust-powered runtime - Persistent runtime for maximum performance
  • Zero-config setup - Works out of the box with pre-built binaries
  • Hot module reloading - Instant feedback during development
  • Universal NPM package support - Use any npm package seamlessly
  • TypeScript-first - Full type safety across server/client boundary
  • Cross-platform - Supports macOS, Linux, and Windows
  • Streaming SSR - Progressive rendering with Suspense boundaries
  • Loading States - Automatic loading skeletons during navigation

Quick Start

Create a new rari application in seconds:

npm create rari-app@latest my-app
cd my-app
npm run dev

That's it! Your app will be running at http://localhost:5173.

Visit rari.build/docs for complete documentation, guides, and examples.

Documentation

Read the full documentation to learn more about:

  • Getting started with rari
  • App Router and file-based routing
  • Server Components and Client Components
  • Server Actions and data mutations
  • Streaming SSR and Suspense
  • Deployment and production optimization

Why rari?

Performance That Matters

  • 7.5x faster response times - 0.35ms vs 2.64ms average response
  • 8.7x higher throughput - 14,085 req/sec vs 1,624 req/sec under load
  • 8.7x faster latency under load - 3.55ms vs 30.79ms average latency
  • 53% smaller bundles - 266 KB vs 565 KB client JavaScript
  • 2.9x faster builds - 1.41s vs 4.10s production builds

Developer Experience

  • App Router - File-based routing with automatic code splitting
  • Zero configuration - Create projects instantly with create-rari-app
  • Hot module reloading - See changes instantly during development
  • Full TypeScript support - Complete type safety across server/client boundary
  • Correct RSC semantics - Server components by default, 'use client' for interactivity
  • Cross-platform - Works on macOS, Linux, and Windows

Performance

rari delivers exceptional performance that significantly outperforms traditional React frameworks:

Head-to-Head Comparison vs Next.js

Benchmarks last updated: January 26, 2026

Response Time (Single Request):

Metric rari Next.js Improvement
Average 0.35ms 2.64ms 7.5x faster
P95 0.38ms 3.44ms 9.1x faster
Bundle Size 266 KB 565 KB 53% smaller

Throughput Under Load (50 concurrent connections, 30s):

Metric rari Next.js Improvement
Requests/sec 14,085 1,624 8.7x higher
Avg Latency 3.55ms 30.79ms 8.7x faster
P95 Latency 5.78ms 38.43ms 6.6x faster
Errors 0 0 Stable

Build Performance:

Metric rari Next.js Improvement
Build Time 1.41s 4.10s 2.9x faster
Bundle Size 266 KB 565 KB 53% smaller

All benchmarks are reproducible. See benchmarks/ for methodology and scripts.

Contributing

We welcome contributions! Here's how you can help:

Community

License

MIT License - see LICENSE for details.

Dependencies

~371MB
~8M SLoC