If you've ever set up a modern meta-framework, you probably have mixed feelings about it. On one hand, React Server Components (RSC) and Server Actions are genuinely useful. You don't have to write API controllers just for a single form or ship extra JavaScript to the client. On the other hand, the Next.js App Router monopoly brought a heavy ecosystem with slow cold starts, opaque caching, and tight coupling to Vercel.
I always keep an eye on independent alternatives, and Farm.js 0.1 from Farming Labs is a pleasant surprise. The team combined the speed of Vite with a full RSC stack, backed by a native Rust AOT compiler under the hood.
Architecture: Vite, Nitro, and Custom RSC
Farm.js stands out by rejecting a monolithic build pipeline. While older tools rely on heavy Webpack setups or custom forks, Farm.js uses battle-tested Vite in dev mode and the universal Nitro engine for production builds.
The result is instant startup and ultra-fast HMR. Deployment stays flexible, too. Thanks to Nitro adapters, the same project builds for Node.js, Bun, Docker, or serverless platforms like Cloudflare Workers and AWS Lambda. SvelteKit 3.0 recently took a similar path with Vite configuration and clean subpath imports, making engineers' lives much easier.
Routing in Farm.js lives inside app/ with automatic strict TypeScript type generation. You declare server actions right inside your component using the 'use server' directive:
// app/routes/items/page.tsx
import { db } from '@/lib/db';
async function updateItem(formData: FormData) {
'use server';
const id = formData.get('id') as string;
const title = formData.get('title') as string;
await db.items.update({ where: { id }, data: { title } });
}
export default async function ItemsPage() {
const items = await db.items.findMany();
return (
<main className="container">
<h1>Каталог компонентов</h1>
<form action={updateItem}>
<input name="title" placeholder="Новое название" />
<button type="submit">Сохранить</button>
</form>
<ul>
{items.map((item) => (
<li key={item.id}>{item.title}</li>
))}
</ul>
</main>
);
}
Experimental AOT Compiler
The most interesting feature is the Ahead-of-Time (AOT) compiler paired with the native Rust renderer Strata.
Standard React builds a virtual tree and runs reconciliation whenever state changes. Farm.js's AOT compiler analyzes JSX at build time. For pure components, it skips the Virtual DOM and generates direct mutations to real DOM nodes. In key-swap benchmarks, this delivered up to a 6.8x speedup while cutting CPU load. Meanwhile, the Rust-based Strata engine streams HTML without extra overhead, much like the Nuxt 4.5 release with Vite 8, Rspack 2, and experimental SSR streaming.
You can enable these optimizations in farm.config.ts:
import { defineConfig } from '@farm.js/core';
export default defineConfig({
renderer: 'react',
react: {
experimentalAot: true,
strataNativeSSR: true,
},
nitro: {
preset: 'node-server',
},
});
Enable experimentalAot for dashboards and heavy data tables. When a component uses non-standard dynamic contexts, the compiler safely falls back to the standard React runtime.
Farm.js 0.1 proves that full-stack React can be fast, clean, and independent.


