{"id":13394542,"url":"https://github.com/gajus/flow-runtime","last_synced_at":"2025-04-12T21:26:38.494Z","repository":{"id":13781364,"uuid":"71611551","full_name":"gajus/flow-runtime","owner":"gajus","description":"A runtime type system for JavaScript with full Flow compatibility.","archived":false,"fork":false,"pushed_at":"2022-12-10T17:14:46.000Z","size":18533,"stargazers_count":800,"open_issues_count":83,"forks_count":57,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-11T10:00:01.344Z","etag":null,"topics":["babel-plugin","flow-runtime","flowtype","type-safety","validation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gajus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-22T02:25:16.000Z","updated_at":"2025-03-20T12:51:16.000Z","dependencies_parsed_at":"2022-09-06T05:20:16.155Z","dependency_job_id":null,"html_url":"https://github.com/gajus/flow-runtime","commit_stats":null,"previous_names":["codemix/flow-runtime"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fflow-runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fflow-runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fflow-runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fflow-runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gajus","download_url":"https://codeload.github.com/gajus/flow-runtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543850,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel-plugin","flow-runtime","flowtype","type-safety","validation"],"created_at":"2024-07-30T17:01:23.296Z","updated_at":"2025-04-12T21:26:38.470Z","avatar_url":"https://github.com/gajus.png","language":"JavaScript","readme":"# Flow Runtime\n[![Build Status](https://travis-ci.org/gajus/flow-runtime.svg?branch=master)](https://travis-ci.org/gajus/flow-runtime)\n\nA runtime type system for JavaScript with full [Flow](https://flowtype.org/) compatibility.\n\n[See the website for more information](https://gajus.github.io/flow-runtime/).\n\n---\n\n## Maintenance Status\n\nThis project is not very well maintained anymore due to its complexity and maintainers' burnout with Flow in general.\n\n### Statement from @jedwards1211\n\nAt the moment I need to keep this working in some production projects that use it for API input validation\n(using the `optInOnly` option instead of blanket runtime validation everywhere).\n\nHowever, I would like to eventually migrate those projects to either:\n- a library where I declare validators that I can extract value types from.  I created [`typescript-validators`](https://github.com/jcoreio/typescript-validators)\n  for this purpose in TypeScript\n- a very pared-down version of `babel-plugin-flow-runtime` that generates validators where requested from Flow type annotations,\n  but only supports certain types and doesn't automatically inject runtime validation everywhere.\n\nIf I had the time I would even migrate my production projects to TypeScript though, so I'm not sure I'll continue to use\nFlow and `flow-runtime` heavily in the long term.\n\n## Contributing\n\nThis is a [lerna](https://github.com/lerna/lerna) powered mono-repo, composed of the following projects:\n\n  - [flow-runtime](./packages/flow-runtime): The core runtime type system.\n  - [babel-plugin-flow-runtime](./packages/babel-plugin-flow-runtime): A babel plugin which transforms Flow type annotations into `flow-runtime` invocations.\n  - [flow-runtime-validators](./packages/flow-runtime-validators): A collection of common validators for use with flow-runtime.\n  - [flow-config-parser](./packages/flow-config-parser): Parses flow configuration files.\n  - [flow-runtime-mobx](./packages/flow-runtime-mobx): Adds mobx support to flow-runtime.\n  - [flow-runtime-docs](./packages/flow-runtime-docs): React powered documentation site.\n\n### Getting started\n\nFirst clone the repo:\n\n```sh\ngit clone https://github.com/gajus/flow-runtime.git\n```\n\nAnd bootstrap the project:\n\n```sh\ncd flow-runtime\nyarn\nyarn bootstrap\nyarn test\n```\n","funding_links":[],"categories":["JavaScript","HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgajus%2Fflow-runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgajus%2Fflow-runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgajus%2Fflow-runtime/lists"}