{"id":16489073,"url":"https://github.com/thundernet8/thrift2ts-flow-demo","last_synced_at":"2025-08-12T06:13:44.491Z","repository":{"id":79658556,"uuid":"96229408","full_name":"thundernet8/Thrift2TS-Flow-Demo","owner":"thundernet8","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-05T15:56:56.000Z","size":257,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T04:24:55.272Z","etag":null,"topics":["browser-thrift2","demo","rpc","thrift","thrift2ts","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thundernet8.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-07-04T15:00:02.000Z","updated_at":"2022-09-29T10:10:18.000Z","dependencies_parsed_at":"2023-05-14T07:00:37.790Z","dependency_job_id":null,"html_url":"https://github.com/thundernet8/Thrift2TS-Flow-Demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thundernet8/Thrift2TS-Flow-Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2FThrift2TS-Flow-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2FThrift2TS-Flow-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2FThrift2TS-Flow-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2FThrift2TS-Flow-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thundernet8","download_url":"https://codeload.github.com/thundernet8/Thrift2TS-Flow-Demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundernet8%2FThrift2TS-Flow-Demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270011192,"owners_count":24511902,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["browser-thrift2","demo","rpc","thrift","thrift2ts","typescript"],"created_at":"2024-10-11T13:42:58.542Z","updated_at":"2025-08-12T06:13:44.467Z","avatar_url":"https://github.com/thundernet8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Thrift2TS-Flow-Demo\nThis is a demo using [thrift2ts](https://www.npmjs.com/package/thrift2ts) as thrift clients generation tool, and [Browser-Thrift](https://www.npmjs.com/package/browser-thrift2) for data transport protocol when communicate with a thrift RPC server.\n\n## Steps\n\n#### Write thrift\n\nWe have a tutorial.thrift file under the root of this package now\n\n#### Generate RPC clients and typescript interfaces for app refer\n\n```\nyarn global add thrift2ts\n```\n\nor\n\n```\nnpm install thrift2ts -g\n```\n\nnow run cli\n\n```\nt2t -i tutorial.thrift -o RPC-client1 -c -r ../RequestSample/request1\n```\n\nagain for another copy code\n\n```\nt2t -i tutorial.thrift -o RPC-client2 -c -r ../RequestSample/request2\n```\n\nrequest1 file is using WebSocket, request2 file is using XHR.\n\nbuild scripts for demo page\n\n```\nnpm run build\n```\n\n#### Run RPC Server\n\n```\nnpm run server\n```\n\n#### Run Demo Web Page\n\n```\nnpm run page\n```\n\nVisit localhost:8080 and follow the directions, check Chrome Dev Tool network tab to find more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernet8%2Fthrift2ts-flow-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundernet8%2Fthrift2ts-flow-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernet8%2Fthrift2ts-flow-demo/lists"}