farm-fe /farm
Extremely fast Vite-compatible web build tool written in Rust
★ 5,595⑂ 191👁 17⑃ 1,641● 686▤ 1,097
-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 grTop issues
#1063Support modulePreload when generating html22 comments · 2024-03-24#1026Not working with SvelteKit15 comments · 2024-03-14#125[Feature] Rust Vue SFC compile11 comments · 2023-03-24#1425[Bug Report]: yml This kind of module is not supported10 comments · 2024-06-24#2169[Bug Report]: farm build failed8 comments · 2025-05-28#1204[@farmfe/js-plugin-solid] during the build process, a large number of console prints appeared on the console7 comments · 2024-04-17#1579[Bug Report]: Creating another node_modules directory instead of using the one that's already there6 comments · 2024-07-10#1144preview command adds cross support6 comments · 2024-04-08
Discussions
#2279Use Oxc tools0 comments · 2026-03-11#2278Replace Rollup With Rolldown0 comments · 2026-03-11#2207Why my CSS is broken?1 comments · 2025-07-22#2112Improve template styling1 comments · 2025-03-11#2106【施工中】模块联邦插件&Runtime脑暴0 comments · 2025-03-07#1912What is the proper way to configure SolidJS with TailwindCSS?2 comments · 2024-11-02#1856Debugging run failures1 comments · 2024-10-22#1794Farm Bundle Analyzer1 comments · 2024-09-26