Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

flow

> 编程语言
Open source

Adds static typing to JavaScript to improve developer productivity and code quality.

22.3K stars0 likes2 views
WebsiteGitHub

About

Adds static typing to JavaScript to improve developer productivity and code quality.

Flow

Flow is a static typechecker for JavaScript. To find out more about Flow, check out flow.org.

Contents

  • Requirements
  • Using Flow
  • Using Flow's parser from JavaScript
  • Building Flow from source
  • Join the Flow community
  • License

Requirements

Flow works with:

  • macOS (arm64)
  • Linux (x86_64 and arm64)
  • Windows (x86_64, Windows 10 recommended)

There are binary distributions for each of these platforms and you can also build it from source on any of them as well.

Using Flow

Check out the installation instructions, and then the usage docs.

Using Flow's parser from JavaScript

Flow's parser is available as a compiled-to-JavaScript module published to npm, named flow-parser. Most end users of Flow will not need to use this parser directly, but JavaScript packages which make use of parsing Flow-typed JavaScript can use this to generate Flow's syntax tree with annotated types attached.

Building Flow from source

Flow is written in Rust. GitHub CI builds Flow from the rust_port workspace with nightly Rust.

  1. Install system dependencies:

    • Install Rust via rustup.

    • Install the nightly Rust toolchain:

      bash
      rustup toolchain install nightly
  2. Build the Rust workspace:

    bash
    cd rust_port
    cargo +nightly build
  3. Run the Rust tests:

    bash
    cargo +nightly test
  4. Build an optimized flow binary:

    bash
    cargo +nightly build --release --bin flow_cli
  5. Build flow.js (optional):

    The flow.js build also uses the Rust port. Install Emscripten, Node, Yarn, and a Rust nightly toolchain with the wasm32-unknown-emscripten target and rust-src component first. GitHub CI uses Emscripten 3.1.44 and nightly Rust for this build.

    bash
    rustup toolchain install nightly-2026-04-14 --target wasm32-unknown-emscripten --component rust-src
    RUSTUP_TOOLCHAIN=nightly-2026-04-14 make js FLOW_JS_IMPL=rust-wasm

    This produces bin/flow.js.

    To build a faster, larger local development version instead, run:

    bash
    RUSTUP_TOOLCHAIN=nightly-2026-04-14 make js FLOW_JS_IMPL=rust-wasm FLOW_DOT_JS_WASM_PROFILE=dev

    The Flow parser can also be compiled to JavaScript. Read how here.

Running the tests

See tests/README.md for detailed testing documentation.

Join the Flow community

  • Website: https://flow.org
  • Discord: https://discord.gg/8ezwRUK
  • irc: #flowtype on Freenode
  • Twitter: follow @flowtype and #flowtype to keep up with the latest Flow news.
  • Stack Overflow: Ask a question with the flowtype tag

License

Flow is MIT-licensed (LICENSE). The website and documentation are licensed under the Creative Commons Attribution 4.0 license (website/LICENSE-DOCUMENTATION).

Issues· 517 open

View all issuesOpen on GitHub
  • #9501

    [flow-for-vscode] Ship the Try Flow grammar so VS Code highlights component and hook syntax

    Updated Sep 23, 2026
  • #9500

    Memory leak

    bugneeds triageUpdated Sep 17, 2026
  • #9487

    Configure auto import

    discussionUpdated Aug 27, 2026
  • #9346

    Flow’s parser does not understand `export from` attributes (the `with { type: "json" }` syntax).

    bugneeds triageUpdated Jun 30, 2026
  • #9347

    `flow-remove-types` throws a syntax error on ES `import` attributes

    bugneeds triageUpdated Jun 29, 2026
  • #9091

    [Discussion]: Any plans to make Flow more interpopble with TS ecosystem?

    discussionUpdated May 23, 2026
  • #9065

    ☂️ Known unsoundness issues

    Typing: soundnessUpdated May 23, 2026
  • #7673

    Cannot resolve JSON file starting with a dot

    bugmodule resolutionHas PRgood first issueUpdated May 11, 2026
  • #7427

    If a `name_mapper` points to a non-existent file, it should tell user that the mapped path doesn't exist (instead of the original path)

    enhancementmodule resolutionerror messagesgood first issueUpdated Mar 3, 2026
  • #9344

    Add a prefix to Flow specific AST node type

    parsingUpdated Jan 23, 2026

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言