百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

flow-runtime

> 编程语言
开源

一个适用于 JavaScript 的运行时类型系统,具有完全的流程兼容性。

797 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个适用于 JavaScript 的运行时类型系统,具有完全的流程兼容性。

Flow Runtime

A runtime type system for JavaScript with full Flow compatibility.

See the website for more information.


Maintenance Status

This project is not very well maintained anymore due to its complexity and maintainers' burnout with Flow in general.

Statement from @jedwards1211

At the moment I need to keep this working in some production projects that use it for API input validation (using the optInOnly option instead of blanket runtime validation everywhere).

However, I would like to eventually migrate those projects to either:

  • a library where I declare validators that I can extract value types from. I created typescript-validators for this purpose in TypeScript
  • a very pared-down version of babel-plugin-flow-runtime that generates validators where requested from Flow type annotations, but only supports certain types and doesn't automatically inject runtime validation everywhere.

If I had the time I would even migrate my production projects to TypeScript though, so I'm not sure I'll continue to use Flow and flow-runtime heavily in the long term.

Contributing

This is a lerna powered mono-repo, composed of the following projects:

  • flow-runtime: The core runtime type system.
  • babel-plugin-flow-runtime: A babel plugin which transforms Flow type annotations into flow-runtime invocations.
  • flow-runtime-validators: A collection of common validators for use with flow-runtime.
  • flow-config-parser: Parses flow configuration files.
  • flow-runtime-mobx: Adds mobx support to flow-runtime.
  • flow-runtime-docs: React powered documentation site.

Getting started

First clone the repo:

bash
git clone https://github.com/gajus/flow-runtime.git

And bootstrap the project:

bash
cd flow-runtime
yarn
yarn bootstrap
yarn test

Issues· 101 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptbabel-pluginflow-runtimeflowtypetype-safety

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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