{"id":13768466,"url":"https://github.com/uber-web/thrift2flow","last_synced_at":"2025-05-06T22:24:10.131Z","repository":{"id":33930522,"uuid":"91628462","full_name":"uber-web/thrift2flow","owner":"uber-web","description":"Converts Thrift specs into Flow JavaScript type definitions","archived":false,"fork":false,"pushed_at":"2023-08-10T17:42:40.000Z","size":424,"stargazers_count":40,"open_issues_count":24,"forks_count":21,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-11T12:14:35.062Z","etag":null,"topics":["flow","flowtype","javascript","javascript-tools","thrift","type","types"],"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/uber-web.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-17T23:23:35.000Z","updated_at":"2023-10-24T05:01:42.000Z","dependencies_parsed_at":"2024-01-12T09:45:57.063Z","dependency_job_id":null,"html_url":"https://github.com/uber-web/thrift2flow","commit_stats":null,"previous_names":["uber-node/thrift2flow"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-web%2Fthrift2flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-web%2Fthrift2flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-web%2Fthrift2flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-web%2Fthrift2flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber-web","download_url":"https://codeload.github.com/uber-web/thrift2flow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777605,"owners_count":21802620,"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":["flow","flowtype","javascript","javascript-tools","thrift","type","types"],"created_at":"2024-08-03T16:01:21.752Z","updated_at":"2025-05-06T22:24:10.054Z","avatar_url":"https://github.com/uber-web.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# thrift2flow\n\n[![Build status](https://badge.buildkite.com/56a997e5c7caeaa4969da9add5c6435a1d00381d4aee1edf6f.svg?branch=master)](https://buildkite.com/uberopensource/thrift2flow)\n\nAutomagically converts [Apache Thrift](https://thrift.apache.org/) specs to\n[Flowtype](https://flow.org/) type definition files!\n\nNOTE: This library tries to align with the [thriftrw](https://github.com/thriftrw/thriftrw-node) JS semantics which means it may not be compatible with generated code\nfrom the apache thrift project.\n\nExample:\n\n```thrift\ntypedef string UUID\n\nstruct Customer {\n  1: UUID id\n  2: string name\n  3: i32 age\n  4: list\u003cstring\u003e tags\n}\n```\n\nOutput:\n\n```js\nexport type UUID = string;\n\nexport type Customer = {\n  id: UUID,\n  name: string,\n  age: number,\n  tags: string[],\n};\n```\n\n## Installation and Usage\n\n```\nnpm install -g thrift2flow\nthrift2flow --path=\"idl/code.foo.bar\" --outputDir=\"src/types/idl\" idl/code.foo.bar/*/*/*.thrift\n```\n\n## Contributing\n\nWe'd love for you to contribute to this project. Before we can accept your contributions, we kindly\nask you to sign our [Uber Contributor License Agreement](https://docs.google.com/a/uber.com/forms/d/1pAwS_-dA1KhPlfxzYLBqK6rsSWwRwH95OCCZrcsY5rk/viewform).\n\n- If you **find a bug**, please open an issue, or submit a fix via a pull request\n- If you **have a feature request**, open an issue, or submit an implementation via a pull request\n- If you **want to contribute**, submit a pull request\n\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-web%2Fthrift2flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber-web%2Fthrift2flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-web%2Fthrift2flow/lists"}