farm-fe /farm

Extremely fast Vite-compatible web build tool written in Rust

★ 5,595⑂ 191👁 17⑃ 1,641● 686▤ 1,097
RustMITCreated 2022-06-26farmfe.org
Download: v0.0.22-nightly-20250827162746v0.0.22-nightly-20250827162746 ↓202508271627462025-08-27
-1
Daily
5,595
stars
191
forks
17
watchers
1,641
prs
686
issues
1,097
releases

README

Rust native web build tool with an official Rust plugin ecosystem
  
    English |
    简体中文  
  
  
    
      
    
     
       
    
    
    
  
    
  
  
    
  
  
    
  
  
  


---

 Intro

Farm is a Rust native web build tool. Its compiler and built-in compilation plugins handle the module graph, transformation, bundling and optimization in Rust. Official Rust plugins extend this pipeline for frameworks, styling, assets and documentation.

Node.js provides configuration, CLI and development-server orchestration. JavaScript plugins, React rendering and application runtimes remain part of the stack where needed. Vite-compatible plugin adapters provide a migration path; they are not the definition of Farm’s architecture.

This branch contains the v2 release candidate. Source versions and plugin implementations do not establish registry availability or completed release acceptance. Use a matching verified candidate for v2 evaluation; @latest commands select the version currently published to the registry.

 Online experience



 Why Farm?

Farm puts the compiler and compilation extensions on a native Rust foundation, with one plugin architecture for development and production. It combines incremental compilation and configurable bundling with adapters for existing JavaScript tooling. See Why Farm for architecture and migration details.

 Features

- Rust native compilation: a Rust compiler and built-in plugins for scripts, CSS, HTML, JSON, resolution and production optimization.
- Official Rust plugin families: React/Vue, Sass/Tailwind CSS, import automation, SVG/icons, data and assets, workers/Wasm, and documentation tooling. See the plugin overview for source scope and candidate status. Feature coverage varies by plugin.
- Incremental workflows: persistent caching, lazy compilation and hot updates; results depend on workload, configuration and cache state.
- Partial bundling: control output grouping while keeping development and production on the same compiler foundation.
- Extensible migration: Rust and JavaScript compilation plugins, runtime plugins and Vite-compatible adapters. Verify the hooks and framework features your project uses instead of assuming every Vite plugin is interchangeable.

V2 package publication, platform payloads and release acceptance are tracked separately from the availability of source code.

 Getting Started

Create a new Farm project with your favorite package manager:

bash
 with npm
npm create farm@latest
 with yarn
yarn create farm@latest
 with pnpm
pnpm create farm@latest


Visit Farm Documentation to learn more about Farm.

 Benchmark

Historical benchmark data and its workload are available in performance-compare. These results are not measurements of this v2 candidate or guarantees for your project. Compare the same content, configuration, hardware and cache state when evaluating v2.

 Contribution

See Contributing Guide.

 Chat With Us

- Author Twitter, Official Twitter

- With Discord

- Wechat gr

Top issues

Discussions

Latest release

v0.0.22-nightly-20250827162746 v0.0.22-nightly-20250827162746 2025-08-27

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON