Coder Social home page Coder Social logo

iq-scm / farm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from farm-fe/farm

0.0 0.0 0.0 5.08 MB

Super fast web build tool written in Rust - 基于 Rust 的极速 web 构建引擎

Home Page: https://farm-fe.github.io

License: MIT License

Shell 0.01% JavaScript 4.64% Rust 75.30% TypeScript 18.16% CSS 0.99% HTML 0.09% Vue 0.81%

farm's Introduction

Super fast web building tool written in Rust

English | 简体中文

discord chat npm package node compatibility build status



Intro

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:

xx

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)


Features

  • Super Fast: Written in Rust, start a React / Vue project in milliseconds, 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 exactly the same as what you get in production.
  • 🌳 Compatibility: Supports both legacy (ES5) and modern browsers.

Note:

  • See RFC-001 for design motivation and principles.
  • This project is still under development and not production-ready. Contributions are welcome.

This project is built on the SWC Project, using SWC for HTML/CSS/JS/TSX/TS/JSX parsing, transforming, optimizing, and code generation.


Getting Started

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.

RoadMap

See RoadMap.

Contribution

See Contributing Guide.

Author

brightwu(吴明亮), worked at Bytedance and Tencent.

farm's People

Contributors

callqh avatar caoxiemeihao avatar chuhoman avatar erkelost avatar github-actions[bot] avatar naturellee avatar nirvana-jie avatar oblador avatar shulandmimi avatar sorrycc avatar wjq990112 avatar wre232114 avatar xguangspbd avatar ysy945 avatar zourunfa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.