Farm is a super-fast web-building tool written in Rust. Benchmark against other tools (using Turbopack's benchmark, 1000 React components) as shown below:
Test Repository: https://github.com/farm-fe/performance-compare
Test Machine (Linux Mint 21.1 Cinnamon, 11th Gen Intel© Core™ i5-11400 @ 2.60GHz × 6, 15.5 GiB)
- ⚡ Super Fast: Written in Rust, start a React / Vue project in milliseconds and perform an HMR update within 10ms for most situations.
- 🧰 Fully Pluggable: Everything inside Farm is powered by plugins, achieve anything you want by creating a plugin. Supports both Rust and JavaScript plugins.
- ⚙️ Powerful: Compiles JS/TS/JSX/TSX, CSS, HTML, and static assets out of the box.
- ⏱️ Lazy Compilation: Dynamically imported resources are compiled only when requested.
- 📦 Partial Bundling: Bundle your project into a few reasonable bundles, speeding up resource loading without losing caching granularity.
- 🔒 Consistency: What you see in development will be the same as what you get in production.
- 🌳 Compatibility: Supports both legacy (ES5) and modern browsers.
See RFC-001 for design motivation and principles.
Create a new Farm(support both React and Vue) project.
With npm:
$ npm create farm@latest
With yarn:
$ yarn create farm
With pnpm:
$ pnpm create farm
Refer to Documentation to learn more about Farm.
Farm support compiling React, Vue, SolidJS, Sass, Less, Css Modules officially out of box. See our examples:
- React-Basic
- React-Ant-Design
- React-Sass-CssModules
- React-Multi-Page-Application
- React-SSR
- React-TailwindCSS
Farm has implemented all features of a web build tool, including production optimization like tree shake and minification. We have already migrated enterprise projects to Farm, and it works great!
See RoadMap.
-
With Discord
-
Wechat group
See Contributing Guide.
brightwu(吴明亮), worked at Bytedance and Tencent.