How alibaba/formily works
Project type and purpose
• This is a large monorepo for Formily (https://formilyjs.org), an open-source framework for building high-performance, JSON-schema-driven forms in JavaScript/TypeScript.
• Components range from core state management to language-agnostic reactive engines, React/Vue bindings, form validators, JSON schema compiler, UI component packages (Ant Design, Element, Next UI), documentation, benchmarks, and Chrome DevTools extensions.
File structure
• Top-level:
• configuration files (.eslintrc, tsconfig.json, lerna.json, scripts/)
• devtools/ (Chrome extension source and build configs)
• docs/ (dumi-style documentation, guides, site code)
• packages/ (~20 sub-packages, each with src/, tests/, package.json, build configs)
• scripts/ (shared build and style pipelines)
• Key patterns:
• Monorepo managed by Lerna and Yarn workspaces
• Each package is self-contained: source, tests, rollup or webpack config, tsconfig
• Shared conventions: build-style.ts, create-style.ts in UI packages
• CI/CD: GitHub Actions workflows, Netlify deployment
README for additional insights
• Core selling points: independent field state management, JSON Schema integration, top-level UI wrappers
• Mentions form builder (external service), integrated Ant Design/Alibaba Fusion themes
Detailed elements
• External systems: GitHub Actions, Netlify, NPM registry