All Projects → uber-web → Thrift2flow

uber-web / Thrift2flow

Licence: mit
Converts Thrift specs into Flow JavaScript type definitions

Programming Languages

javascript
184084 projects - #8 most used programming language
flow
126 projects
types
53 projects
flowtype
47 projects
type
21 projects

Projects that are alternatives of or similar to Thrift2flow

Thriftpy2
Pure python approach of Apache Thrift.
Stars: ✭ 402 (+930.77%)
Mutual labels:  thrift
Jboot
一个优雅的微服务框架,SpringCloud 之外的另一个选择,已经使用在用户量过亿的商业产品上,有超过1000家公司在使用Jboot做极速开发...
Stars: ✭ 655 (+1579.49%)
Mutual labels:  thrift
Rpc proxy
基于thrift的服务注册和发现框架
Stars: ✭ 13 (-66.67%)
Mutual labels:  thrift
Thrifty
Thrift for Android that saves you methods
Stars: ✭ 476 (+1120.51%)
Mutual labels:  thrift
Bender
An easy-to-use library for creating load testing applications
Stars: ✭ 583 (+1394.87%)
Mutual labels:  thrift
Bonsai
Understand the tree of dependencies inside your webpack bundles, and trim away the excess.
Stars: ✭ 732 (+1776.92%)
Mutual labels:  javascript-tools
Spring Cloud Microservice Examples
spring-cloud-microservice-examples
Stars: ✭ 372 (+853.85%)
Mutual labels:  thrift
Thriftclientpool
a thrift client connection pool & simple thrift use demo by golang
Stars: ✭ 32 (-17.95%)
Mutual labels:  thrift
Javascriptenhancements
JavaScript Enhancements is a plugin for Sublime Text 3. It offers not only a smart javascript autocomplete but also a lot of features about creating, developing and managing javascript projects (real-time errors, code refactoring, etc.).
Stars: ✭ 592 (+1417.95%)
Mutual labels:  javascript-tools
Impala Java Client
Java client to connect directly to Impala using thrift
Stars: ✭ 26 (-33.33%)
Mutual labels:  thrift
Srpc
RPC based on C++ Workflow
Stars: ✭ 521 (+1235.9%)
Mutual labels:  thrift
Cpp Serializers
Benchmark comparing various data serialization libraries (thrift, protobuf etc.) for C++
Stars: ✭ 533 (+1266.67%)
Mutual labels:  thrift
Zys
high performance service framework based on Yaf or Swoole
Stars: ✭ 812 (+1982.05%)
Mutual labels:  thrift
Javaspringbootsamples
SpringBoot、Dubbo、SpringCloud的各种集成例子:Atomikos、gRPC、Thrift、Seata、ShardingSphere、Dubbo、Hmily、Nacos、Consul、Ribbon、Jedis、Lettuce、Redisson等框架
Stars: ✭ 399 (+923.08%)
Mutual labels:  thrift
Pucket
Bucketing and partitioning system for Parquet
Stars: ✭ 29 (-25.64%)
Mutual labels:  thrift
Viper
Viper 是一个基于Anno微服务引擎开发的Dashboard项目、示例项目。Anno 底层通讯采用 grpc、thrift。自带服务发现、调用链追踪、Cron 调度、限流、事件总线等等
Stars: ✭ 402 (+930.77%)
Mutual labels:  thrift
Scrooge
A Thrift parser/generator
Stars: ✭ 724 (+1756.41%)
Mutual labels:  thrift
Spring Thrift Api Gateway
Gateway for Apache Thrift requests processing that is built on Spring Cloud stack
Stars: ✭ 38 (-2.56%)
Mutual labels:  thrift
Node Impala
Node Client for Impala using Apache Thrift
Stars: ✭ 30 (-23.08%)
Mutual labels:  thrift
Node Thrift2 Hbase
An HBase thrift wrapper for Node.js
Stars: ✭ 18 (-53.85%)
Mutual labels:  thrift

thrift2flow

Build status

Automagically converts Apache Thrift specs to Flowtype type definition files!

NOTE: This library tries to align with the thriftrw JS semantics which means it may not be compatible with generated code from the apache thrift project.

Example:

typedef string UUID

struct Customer {
  1: UUID id
  2: string name
  3: i32 age
  4: list<string> tags
}

Output:

export type UUID = string;

export type Customer = {
  id: UUID,
  name: string,
  age: number,
  tags: string[],
};

Installation and Usage

npm install -g thrift2flow
thrift2flow --path="idl/code.foo.bar" --outputDir="src/types/idl" idl/code.foo.bar/*/*/*.thrift

Contributing

We'd love for you to contribute to this project. Before we can accept your contributions, we kindly ask you to sign our Uber Contributor License Agreement.

  • If you find a bug, please open an issue, or submit a fix via a pull request
  • If you have a feature request, open an issue, or submit an implementation via a pull request
  • If you want to contribute, submit a pull request

Thanks!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].