The React framework
Powered with Rust + Bun that thinks like Next.js
Write TSX, render with Rust, ship a single binary. 10x faster than Next.js, four rendering modes, 2,071 Google fonts, image and video optimization, shadcn-style components, and a single CLI to scaffold it all.
Install
Scaffold a new project with one command. TypeScript, Biome, Tailwind, shadcn UI — all optional.
Build
Author pages and layouts in TSX. File-based routing, layouts, loading states, error boundaries.
Ship
One command produces a single, statically-linked binary. No Node, no npm at runtime.
Image
Drop-in image component with automatic AVIF/WebP, responsive srcset, blur-up placeholders, and lazy loading.
Font
2,071 Google fonts, local fonts (OTF, TTF, WOFF, WOFF2), and automatic size-adjusted fallbacks.
Video
HTML5 video, YouTube and Vimeo embeds, lightbox mode, background video, captions, and poster images.
Declarative PDF document tree — Document, Page, Text, View — compiled to a single binary PDF.
import { Image } from "swift-rust/image";
import { Inter } from "swift-rust/font/google";
const inter = Inter({ subsets: ["latin"], display: "swap", variable: true });
export default function Home() {
return (
<main className={`${inter.variable} min-h-screen p-12`}>
<h1 className="text-5xl font-bold tracking-tight">
Hello, Swift Rust
</h1>
<Image
src="/hero.jpg"
alt="Hero"
width={1200}
height={600}
priority
className="rounded-xl"
/>
</main>
);
}No JavaScript runtime required
The Rust rendering core replaces Node.js, V8, and your entire SSR pipeline. Deploy as a single binary to any Linux host with no dependencies.
Four rendering modes in one framework
Pick ssr for pure server-rendered HTML, ssr-wasm for hydrated React via WebAssembly,ssr-htmx for progressive enhancement, or wasm for a fully client-side SPA.
shadcn-style components out of the box
35 accessible, copy-paste components you can own forever. Add them with a single CLI command, customize freely, no vendor lock-in.