whatisgithub

What is formily?

alibaba/formily — explained in plain English

Analysis updated 2026-06-24

12,535TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A high-performance React form library from Alibaba that keeps complex linked forms fast by isolating each field's state, and lets you build forms from a JSON description sent by a server. MIT licensed.

Mindmap

mindmap
  root((Formily))
    Problem solved
      Slow linked forms
      Re-render isolation
    Key features
      JSON Schema forms
      Field-level state
    Integrations
      Ant Design
      Alibaba Fusion
    Audience
      React developers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a complex React form where changing one field updates many others without the whole page slowing down.

USE CASE 2

Have a backend API send a JSON Schema definition and let Formily render the correct form fields automatically without redeploying the frontend.

USE CASE 3

Drop in Formily with Ant Design to get a production-ready form with built-in validation, state management, and fast rendering.

What is it built with?

TypeScriptReactAnt DesignAlibaba Fusion

How does it compare?

alibaba/formilyantvis/g2genlayerlabs/genlayer-project-boilerplate
Stars12,53512,55012,551
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasymoderate
Complexity3/52/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an existing React project and a component library (Ant Design or Alibaba Fusion) paired with Formily.

Use freely for any purpose including commercial, keep the copyright notice.

So what is it?

Formily is a form management library for React, built by Alibaba. It addresses a performance problem that commonly affects complex forms in web applications: when many form fields are linked together so that changing one field updates others, the standard React approach tends to re-render every field on every change, which can make the page sluggish. Formily solves this by giving each field its own isolated state, so only the fields that actually changed re-render. The library also supports defining form structure using JSON Schema, a standard format for describing data shapes. This lets a backend server send a description of a form over an API, and Formily will render the correct fields from that description. This is useful when forms need to change without redeploying the frontend application. Formily ships with ready-to-use integrations for two popular React component libraries used widely in Chinese tech companies: Ant Design and Alibaba Fusion. Version 2.0 is the current release and has its own documentation site. The library is open-source under the MIT license.

Copy-paste prompts

Prompt 1
Using Formily with Ant Design, write a React form with three linked dropdowns where selecting a country updates the available city options.
Prompt 2
Show me how to define a user registration form in JSON Schema and have Formily render it dynamically from an API response.
Prompt 3
My Formily form re-renders slowly when a field changes. Walk me through how Formily's isolated field state solves this and how to configure it.

Frequently asked questions

What is formily?

A high-performance React form library from Alibaba that keeps complex linked forms fast by isolating each field's state, and lets you build forms from a JSON description sent by a server. MIT licensed.

What language is formily written in?

Mainly TypeScript. The stack also includes TypeScript, React, Ant Design.

What license does formily use?

Use freely for any purpose including commercial, keep the copyright notice.

How hard is formily to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is formily for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.