{"id":13484742,"url":"https://github.com/farm-fe/farm","last_synced_at":"2025-11-25T14:02:03.439Z","repository":{"id":51446287,"uuid":"507542208","full_name":"farm-fe/farm","owner":"farm-fe","description":"Extremely fast Vite-compatible web build tool written in Rust","archived":false,"fork":false,"pushed_at":"2025-04-27T02:00:52.000Z","size":42710,"stargazers_count":5319,"open_issues_count":195,"forks_count":180,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-05-06T19:52:13.306Z","etag":null,"topics":["build-tool","bundler","compiler","farm","frontend","hmr","rust","typescript","vite"],"latest_commit_sha":null,"homepage":"https://farmfe.org","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farm-fe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"farm-fe"}},"created_at":"2022-06-26T10:24:02.000Z","updated_at":"2025-05-06T08:10:44.000Z","dependencies_parsed_at":"2024-08-22T03:03:43.253Z","dependency_job_id":null,"html_url":"https://github.com/farm-fe/farm","commit_stats":{"total_commits":1027,"total_committers":46,"mean_commits":22.32608695652174,"dds":0.6854917234664071,"last_synced_commit":"a785d6f169b26355fd60b70fa54653462cc50536"},"previous_names":[],"tags_count":1310,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farm-fe%2Ffarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farm-fe%2Ffarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farm-fe%2Ffarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farm-fe%2Ffarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farm-fe","download_url":"https://codeload.github.com/farm-fe/farm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253133114,"owners_count":21859112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","bundler","compiler","farm","frontend","hmr","rust","typescript","vite"],"created_at":"2024-07-31T17:01:32.167Z","updated_at":"2025-11-25T14:02:03.425Z","avatar_url":"https://github.com/farm-fe.png","language":"Rust","funding_links":["https://github.com/sponsors/farm-fe"],"categories":["Rust","Web Framework","JavaScript Targets"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/farm-fe/farm\"\u003e\n  \u003cimg src=\"./assets/logo.png\" width=\"550\" /\u003e\n  \u003c/a\u003e\n  \u003ch3\u003eExtremely fast Vite-compatible web building tool written in Rust\u003c/h3\u003e\n  \u003cp\u003e\n    \u003cspan\u003eEnglish\u003c/span\u003e |\n    \u003ca href=\"https://github.com/farm-fe/farm/blob/main/README.zh-CN.md\"\u003e简体中文\u003c/a\u003e  \n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://discord.gg/mDErq9aFnF\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/chat-discord-blueviolet?style=flat\u0026logo=discord\u0026colorA=ffe3f5\u0026colorB=711a5f\" alt=\"discord chat\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/FarmFe71928\" \u003e \n      \u003cimg src=\"https://img.shields.io/twitter/url.svg?label=@fe_farm\u0026style=social\u0026url=https://twitter.com/FarmFe71928\"/\u003e \n    \u003c/a\u003e\n    \u003ca href=\"https://npmjs.com/package/@farmfe/core\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@farmfe/core.svg?style=flat-square\u0026colorA=ffe3f5\u0026colorB=711a5f\" alt=\"npm package\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://nodejs.org/en/about/releases/\"\u003e\u003cimg src=\"https://img.shields.io/node/v/@farmfe/core.svg?style=flat-square\u0026colorA=ffe3f5\u0026colorB=711a5f\" alt=\"node compatibility\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://npmcharts.com/compare/@farmfe/core?minimal=true\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/@farmfe/core.svg?style=flat-square\u0026colorA=ffe3f5\u0026colorB=711a5f\" alt=\"downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/farm-fe/farm/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/@farmfe/core?style=flat-square\u0026colorA=ffe3f5\u0026colorB=711a5f\" alt=\"license\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://gurubase.io/g/farm\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Gurubase-Ask%20Farm%20Guru-711a5f?style=flat-square\u0026labelColor=ffe3f5\" alt=\"Gurubase\" /\u003e\n  \u003c/a\u003e\n  \u003c/p\u003e\n  \u003cbr/\u003e\n\u003c/div\u003e\n\n---\n\n## Intro\n\nFarm is an extremely fast vite-compatible web-building tool written in Rust. It's designed to be fast, powerful and consistent, aims to provide best experience for web development, which is the real next generation build tool.\n\n## Online experience\n\n[![Edit Farm](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/github/ErKeLost/react/main)\n\n## Why Farm?\n\n\u003e See [Why Farm](https://farmfe.org/docs/why-farm) for details.\n\nIn short, tools like webpack are too slow, but new tools like Vite are not perfect, Vite has a lot of drawbacks when comes to a large project:\n\n- **A huge number of requests during development**：when there are hundreds or thousands modules per page, loading performance severely degraded, it may takes seconds or more when refresh the page.\n- **Inconsistency between development and production**: Using different strategy and tools in development and production, it's really inconsistent and it's hard to debug online issues.\n- **Inflexible Code Splitting**: It's hard to control the output of your bundles.\n\nFarm can solve these problems perfectly, and it's really fast cause it's written in Rust. Farm aims to be fast, consistent, flexible, which is the real next generation build tool.\n\n## Features\n\n\u003e [!NOTE]\n\u003e\n\u003e - Since Farm v0.13, Vite plugins can be used directly in Farm. Refer to [Using vite plugins in Farm](https://farmfe.org/docs/using-plugins#using-vite-plugins-in-farm)\n\u003e - Since Farm v0.14, persistent disk cache enabled by default. Refer to [Incremental Building](https://farmfe.org/docs/advanced/persistent-cache)\n\u003e - Now Farm is **1.0 stable** and **production ready!**. See [Farm official website](https://farmfe.org/) to get started.\n\n- ⚡ **Extremely Fast**: Written in Rust, start a React / Vue project in milliseconds and perform an HMR update within 20ms for most situations.\n- ⚡ **Incremental Building**: Support persistent cache, module level cache enabled by default, any module won't be compiled twice until it's changed!\n- 🧰 **Fully Pluggable and Vite Compatible**: Everything inside Farm is powered by plugins, Support Vite Plugins out of box. Supports Farm compilation plugins(both Rust and JavaScript plugins, and SWC plugins), Farm runtime plugins and Farm server plugin.\n- ⚙️ **Powerful**: Compiles JS/TS/JSX/TSX, CSS, Css Modules, HTML, and static assets out of the box. Support official compilation plugins for Popular frameworks/tools like React, Vue, SolidJs, Sass, Less, Postcss and so on.\n- ⏱️ **Lazy Compilation**: Dynamically imported resources are compiled only when requested, speed up compilation for large scale project. Just write a `dynamic import` and the imported module won't be compiled when it is executed.\n- 📦 **Partial Bundling**: Bundle your project into a few reasonable bundles automatically, speeding up resource loading without losing caching granularity. Refer to [RFC-003 Partial Bundling](https://github.com/farm-fe/rfcs/blob/main/rfcs/003-partial-bundling/rfc.md) for details.\n- 🔒 **Consistency**: What you see in development will be the same as what you get in production.\n- 🌳 **Compatibility**: Supports both legacy (ES5) and modern browsers.\n\n\u003cbr/\u003e\n\n\u003e Farm has implemented all features of a web build tool, including production optimization like tree shake and minification. It's now 1.0 stable. We have already migrated enterprise projects to Farm, and it works great!\n\nSee [RFC-001 Architecture](https://github.com/farm-fe/rfcs/blob/main/rfcs/001-core-architecture/rfc.md#motivation) for design motivation and architecture.\n\n\u003cbr/\u003e\n\n## Getting Started\n\nCreate a new Farm(support both React and Vue) project with your favorite package manager:\n\n```bash\n# with npm\nnpm create farm@latest\n# with yarn\nyarn create farm@latest\n# with pnpm\npnpm create farm@latest\n```\n\nVisit [Farm Documentation](https://farmfe.org) to learn more about Farm.\n\n## Benchmark\n\nFarm is much faster than similar tool， **20x** faster than webpack and **10x** faster than Vite in the benchmark:\n\n![benchmark](https://raw.githubusercontent.com/farm-fe/performance-compare/main/full.png)\n\nSee [Benchmark](https://github.com/farm-fe/performance-compare) for details.\n\n## Contribution\n\nSee [Contributing Guide](https://github.com/farm-fe/farm/blob/main/CONTRIBUTING.md).\n\n## Chat With Us\n\n- [Author Twitter](https://twitter.com/brightwwu46799), [Official Twitter](https://twitter.com/FarmFe71928)\n\n- With [Discord](https://discord.gg/mDErq9aFnF)\n\n- Wechat group\n\n\u003cbr\u003e\u003cimg src=\"https://github.com/user-attachments/assets/16189074-f05b-4d24-b432-0736b0ab8421\" width=\"30%\" /\u003e\n\n- QQ group\n\n\u003cbr\u003e\u003cimg src=\"https://github.com/ErKeLost/react/assets/66500121/a9312045-584b-44fa-87b3-2827372ae849\" width=\"30%\" /\u003e\n\n## Contributors\n\n\u003ca href=\"https://github.com/farm-fe/farm/graphs/contributors\" target=\"_blank\"\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth colspan=\"2\"\u003e\n        \u003cbr/\u003e\n        \u003cimg src=\"https://contrib.rocks/image?repo=farm-fe/farm\"\u003e\u003cbr/\u003e\u003cbr/\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003cpicture\u003e\n          \u003csource\n            media=\"(prefers-color-scheme: dark)\"\n            srcset=\"https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=active\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=2x3\u0026color_scheme=dark\"\n          /\u003e\n          \u003cimg\n            alt=\"Contributors of farm-fe/farm\"\n            src=\"https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=active\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=2x3\u0026color_scheme=light\"\n          /\u003e\n        \u003c/picture\u003e\n      \u003c/td\u003e\n      \u003ctd rowspan=\"2\"\u003e\n       \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://next.ossinsight.io/widgets/official/compose-org-participants-growth/thumbnail.png?activity=new\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=4x7\u0026color_scheme=dark\"\u003e\n        \u003cimg alt=\"New trends of farm-fe\" src=\"https://next.ossinsight.io/widgets/official/compose-org-participants-growth/thumbnail.png?activity=new\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=4x7\u0026color_scheme=light\"\u003e\n      \u003c/picture\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003cpicture\u003e\n          \u003csource\n            media=\"(prefers-color-scheme: dark)\"\n            srcset=\"https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=new\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=2x3\u0026color_scheme=dark\"\n          /\u003e\n          \u003cimg\n            alt=\"Contributors of farm-fe/farm\"\n            src=\"https://next.ossinsight.io/widgets/official/compose-org-active-contributors/thumbnail.png?activity=new\u0026period=past_28_days\u0026owner_id=108205785\u0026repo_ids=507542208\u0026image_size=2x3\u0026color_scheme=light\"\n          /\u003e\n        \u003c/picture\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\u003c/a\u003e\n\n## Credits\n\nThanks to https://github.com/tmm who donated the [farm](https://www.npmjs.com/package/farm) npm package to the Farm team.\n\nThanks to projects:\n\n- The [SWC](https://github.com/swc-project/swc) project created by [@kdy1](https://github.com/kdy1), which powers Farm's code parsing, transformation and minification.\n\n- The [NAPI-RS](https://github.com/napi-rs/napi-rs) project created by [@Brooooooklyn](https://github.com/Brooooooklyn), which powers Farm's node-binding implementation.\n\n- The [Rollup](https://github.com/rollup/rollup) project created by [@lukastaegert](https://github.com/lukastaegert), which inspired Farm's plugin system implementation.\n\n- The [Vite](https://github.com/vitejs/vite) project created by [Evan You](https://github.com/yyx990803), which inspired Farm's compatibility design of ecosystem.\n\n## Author \u0026 Maintainer\n\nAuthor:\n\n- [brightwu（吴明亮）](https://github.com/wre232114)，worked at bytedance. [Twitter](https://twitter.com/brightwwu46799)\n\nMaintainer:\n\n- [ErKeLost](https://github.com/ErKeLost)\n- [shulandmimi](https://github.com/shulandmimi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarm-fe%2Ffarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarm-fe%2Ffarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarm-fe%2Ffarm/lists"}