Development
A blazingly fast dev server
Start the whole app once, then see every page request and response time as you work.
Farm.js
Build / Ship / Scale
Bring the stack you already use. Farm.js turns it into one product for people and agents, with typed APIs, integrations, docs, and deploys built in.
Development
Start the whole app once, then see every page request and response time as you work.
Typed APIs
Define an API route once. Farm.js generates a client with typed inputs and responses.
Integrations
Connect billing, API keys, and more in one place. Pass existing provider instances and call every service through typed APIs.
Production
Farm.js packages routes, middleware, typed clients, and deployment config into one production build.
Renderers
Keep React with zero config, or choose Preact, Solid, Vue, or Svelte. Routing, server features, SSR, and hydration stay on one contract.
React compiler
Farm prepares safe state updates at build time and updates the DOM directly. React handles anything the compiler cannot safely optimize.
Cold dev startup through the first rendered SSR page, measured against the same routed fixture.
A complete production compile of the same SSR project, with generated output ready to boot.
Production server spawn to the first validated, fully read response, from the same build output.
Bytes in the production response body for the same page. A lighter page finishes downloading sooner.
Connected systems
Routing
Build pages, layouts, API routes, loading states, and typed links in one app directory.
Deployment
Ship to Vercel, Cloudflare, Netlify, or self-hosted Node with built-in Nitro presets.
Documentation
Enable a complete docs surface with MDX, navigation, search, MCP, and agent-ready endpoints from the same source.
Layers
Compose routes, middleware, integrations, components, and config from local or package layers. Project files always win.
KV Storage
Mount SQLite, Redis, S3, or another key/value driver for caches, settings, counters, idempotency records, and object-backed values.
Advanced routes
Validate params, prepare request data, load the page, and run post-load work in one typed route definition.
Experimental rendering
Farm detects large, host-only Server Component regions and renders eligible trees through Strata's Rust-native renderer. Everything else stays on React.
Markdown mirrors
Every app page receives a Markdown representation at a .md URL or through content negotiation. Keep the generated output or override it with page.md.
Bring your backend
Mount any app with a fetch handler, like Hono or Elysia, or any Node.js framework, like Express, Koa, Fastify, or NestJS, on one API route. It runs in development and production beside your typed routes.
Mobile
farm dev --mobile puts your pages in a native frame with tabs, stacks, sheets, and the back gesture. Draw a route with native views or React Native when it needs more. In preview on emulators and simulators.
Agent systems
Agent runtimes
Choose Eve or Cloudflare Agents. Farm starts the runtime in development, owns its same-origin routes, and composes supported production output.
Native clients
Use useEveAgent for durable conversations or useAgent for typed WebSocket state and RPC. Farm does not add a duplicate client layer.
Built with Farm.js
Build routing, APIs, integrations, agents, docs, and deployment together in one React framework.