{"id":26483813,"url":"https://github.com/chatopera/node-thr1ft","last_synced_at":"2026-05-20T03:10:12.182Z","repository":{"id":104767906,"uuid":"397077495","full_name":"chatopera/node-thr1ft","owner":"chatopera","description":"Enhanced thrfit lib for Node.js","archived":false,"fork":false,"pushed_at":"2021-08-17T04:19:11.000Z","size":125,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T13:01:39.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chatopera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-17T03:19:41.000Z","updated_at":"2021-08-17T04:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c827603-c6ad-48c6-865d-0283c10a4aee","html_url":"https://github.com/chatopera/node-thr1ft","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"0ce3f0edb3424c16e38e0dcee74fdcbdb34d24ac"},"previous_names":["chatopera/node-thrift"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fnode-thr1ft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fnode-thr1ft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fnode-thr1ft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fnode-thr1ft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatopera","download_url":"https://codeload.github.com/chatopera/node-thr1ft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244227414,"owners_count":20419242,"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":[],"created_at":"2025-03-20T04:58:08.761Z","updated_at":"2026-05-20T03:10:07.162Z","avatar_url":"https://github.com/chatopera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Apache Thrift\n=============\n\n# TL;DR\n\nAdd `onTerminated` for handling terminations.\nIssue [https://github.com/chatopera/node-thr1ft/issues/1](https://github.com/chatopera/node-thr1ft/issues/1).\n\n```\nconst thrift = require(\"thr1ft\");\nvar _conn = thrift.createConnection(host, port, {\n  transport: thrift.TFramedTransport,\n  protocol: thrift.TBinaryProtocol,\n  max_attempts: 10000,\n  retry_max_delay: 3000,\n  //   connect_timeout: 10 * 60000, // wait for 10 minutes\n  connect_timeout: 6000, // wait for 6 seconds\n  // connection breaks after retrys\n  onTerminated: function (err) {\n    logger.error(\"[clause] Connection Terminated, exit application now.\", err);\n    // it would force restart app with other mechanism, e.g. docker-compose restart always\n    process.exit(1);\n  },\n});\n```\n\nIntroduction\n============\n\nThrift is a lightweight, language-independent software stack with an\nassociated code generation mechanism for point-to-point RPC. Thrift provides \nclean abstractions for data transport, data serialization, and application\nlevel processing. The code generation system takes a simple definition\nlanguage as input and generates code across programming languages that\nuses the abstracted stack to build interoperable RPC clients and servers.\n\n![Apache Thrift Layered Architecture](doc/images/thrift-layers.png)\n\nThrift makes it easy for programs written in different programming\nlanguages to share data and call remote procedures.  With support \nfor [25 programming languages](LANGUAGES.md), chances are Thrift \nsupports the languages that you currently use.\n\nThrift is specifically designed to support non-atomic version changes\nacross client and server code.\n\nFor more details on Thrift's design and implementation, see the Thrift\nwhitepaper included in this distribution, or at the README.md file\nin your particular subdirectory of interest.\n\nStatus\n======\n\n| Branch | Travis | Appveyor | Coverity Scan | codecov.io | Website |\n| :----- | :----- | :------- | :------------ | :--------- | :------ |\n| [`master`](https://github.com/apache/thrift/tree/master) | [![Build Status](https://travis-ci.org/apache/thrift.svg?branch=master)](https://travis-ci.org/apache/thrift) | [![Build status](https://ci.appveyor.com/api/projects/status/github/apache/thrift?branch=master\u0026svg=true)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/history) | [![Coverity Scan Build Status](https://scan.coverity.com/projects/1345/badge.svg)](https://scan.coverity.com/projects/thrift) | | [![Website](https://img.shields.io/badge/official-website-brightgreen.svg)](https://thrift.apache.org/) |\n\nReleases\n========\n\nThrift does not maintain a specific release calendar at this time.  \n\nWe strive to release twice yearly.  Download the [current release](http://thrift.apache.org/download).\n\nLicense\n=======\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\nProject Hierarchy\n=================\n\nthrift/\n\n  compiler/\n\n    Contains the Thrift compiler, implemented in C++.\n\n  lib/\n\n    Contains the Thrift software library implementation, subdivided by\n    language of implementation.\n\n    cpp/\n    go/\n    java/\n    php/\n    py/\n    rb/\n    ...\n\n  test/\n\n    Contains sample Thrift files and test code across the target programming\n    languages.\n\n  tutorial/\n\n    Contains a basic tutorial that will teach you how to develop software\n    using Thrift.\n\nDevelopment\n===========\n\nTo build the same way Travis CI builds the project you should use docker.\nWe have [comprehensive building instructions for docker](build/docker/README.md).\n\nRequirements\n============\n\nSee http://thrift.apache.org/docs/install for a list of build requirements (may be stale).  Alternatively see the docker build environments for a list of prerequisites.\n\nResources\n=========\n\nMore information about Thrift can be obtained on the Thrift webpage at:\n\n     http://thrift.apache.org\n\nAcknowledgments\n===============\n\nThrift was inspired by pillar, a lightweight RPC tool written by Adam D'Angelo,\nand also by Google's protocol buffers.\n\nInstallation\n============\n\nIf you are building from the first time out of the source repository, you will\nneed to generate the configure scripts.  (This is not necessary if you\ndownloaded a tarball.)  From the top directory, do:\n\n    ./bootstrap.sh\n\nOnce the configure scripts are generated, thrift can be configured.\nFrom the top directory, do:\n\n    ./configure\n\nYou may need to specify the location of the boost files explicitly.\nIf you installed boost in /usr/local, you would run configure as follows:\n\n    ./configure --with-boost=/usr/local\n\nNote that by default the thrift C++ library is typically built with debugging\nsymbols included. If you want to customize these options you should use the\nCXXFLAGS option in configure, as such:\n\n    ./configure CXXFLAGS='-g -O2'\n    ./configure CFLAGS='-g -O2'\n    ./configure CPPFLAGS='-DDEBUG_MY_FEATURE'\n\nTo enable gcov required options -fprofile-arcs -ftest-coverage enable them:\n\n    ./configure  --enable-coverage\n\nRun ./configure --help to see other configuration options\n\nPlease be aware that the Python library will ignore the --prefix option\nand just install wherever Python's distutils puts it (usually along\nthe lines of /usr/lib/pythonX.Y/site-packages/).  If you need to control\nwhere the Python modules are installed, set the PY_PREFIX variable.\n(DESTDIR is respected for Python and C++.)\n\nMake thrift:\n\n\tmake\n\nFrom the top directory, become superuser and do:\n\n\tmake install\n\nNote that some language packages must be installed manually using build tools\nbetter suited to those languages (at the time of this writing, this applies\nto Java, Ruby, PHP).\n\nLook for the README.md file in the lib/\u003clanguage\u003e/ folder for more details on the\ninstallation of each language library package.\n\nTesting\n=======\n\nThere are a large number of client library tests that can all be run\nfrom the top-level directory.\n\n          make -k check\n\nThis will make all of the libraries (as necessary), and run through\nthe unit tests defined in each of the client libraries. If a single\nlanguage fails, the make check will continue on and provide a synopsis\nat the end.\n\nTo run the cross-language test suite, please run:\n\n          make cross\n\nThis will run a set of tests that use different language clients and\nservers.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fnode-thr1ft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatopera%2Fnode-thr1ft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fnode-thr1ft/lists"}