Flow adds static typing to JavaScript with a checker binary and optional parser package. Binary builds are available for macOS arm64, Linux x64 and arm64, and Windows x64.
Overview
Flow analyzes JavaScript before it runs, surfacing type errors with language features beyond basic annotations. Its syntax includes React-oriented component and renders types, exhaustive match expressions, exact object types by default, and stricter rules around method receivers than some other typed JavaScript tools.
The checker ships as prebuilt binaries per platform and can also be compiled from a Rust-based workspace. A separate flow-parser npm module exposes the parser to other JavaScript tooling that needs Flow syntax trees with types attached.
The project documents installation and day-to-day usage on flow.org. Meta reports using Flow across large JavaScript and React codebases in production.
Key features
- Static JavaScript type checking
- React component and renders syntax
- Exhaustive match expressions
- Exact object types by default
- Strict method receiver checking
- Cross-platform checker binaries
- npm flow-parser module
- TypeScript-familiar type syntax
Use cases
- Large JavaScript codebases needing types
- React projects with composition typing
- Catching extra object properties early
- Safer refactors before runtime
- Parser integration in JS tooling