Farm.js is taking a different approach to full-stack web development by bringing the frontend, routing, APIs, authentication and integrations into a single application architecture.
The framework uses a central farm.config.ts file to configure major parts of an application, while developers can choose React, Vue, Svelte, Preact or Solid for the UI layer. React is the default renderer.
One config, multiple frameworks
Instead of rebuilding the application architecture around every frontend framework, Farm.js keeps the core application layer consistent.
A React app can use React components, a Vue app can use Vue components, and a Svelte app can use Svelte components, while features such as routing, APIs and server-side functionality continue to follow Farm.js conventions.
The central configuration can look as simple as:
import { defineConfig } from "@farm.js/core";
export default defineConfig({
auth: true,
});
That auth: true option enables Farm's built-in authentication system, including email/password authentication and session management.
Authentication is built in
Farm.js includes Farm Auth for applications that need a straightforward authentication system.
Developers can access the authenticated user directly from server-side code:
import { auth } from "@farm.js/auth/server";
const user = await auth.user();
For applications that need more advanced authentication providers or workflows, Farm.js also supports authentication integrations such as Better Auth and other providers.
APIs and integrations are part of the framework
Farm.js also provides file-based routing, server APIs, middleware and generated API clients, allowing frontend and backend functionality to live within the same application structure.
Its integration system can connect applications with services for areas such as authentication, billing, email, jobs and storage.
The idea is simple: instead of stitching together separate tools for every layer of a web application, Farm.js provides a common foundation and lets developers configure the pieces they need.
Why it matters
The interesting part of Farm.js isn't just its support for multiple frontend frameworks.
It's the idea of separating the UI framework from the rest of the full-stack architecture.
Developers can choose React, Vue or Svelte while keeping the same overall approach to routing, APIs, authentication and integrations.
Farm.js is essentially trying to make full-stack development feel less like assembling several independent systems and more like configuring one application.
For developers who want a unified stack without being locked into a single UI framework, Farm.js offers an interesting alternative to the traditional frontend-plus-backend setup.



