{"id":41871273,"url":"https://github.com/funduck/nestjs-connectrpc-fastify","last_synced_at":"2026-01-25T12:09:53.186Z","repository":{"id":333490182,"uuid":"1127889059","full_name":"funduck/nestjs-connectrpc-fastify","owner":"funduck","description":"Example integration of ConnectRPC over HTTP/1 into Nestjs framework","archived":false,"fork":false,"pushed_at":"2026-01-19T18:29:28.000Z","size":4396,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T19:51:42.119Z","etag":null,"topics":["connectrpc","fastify","nest","nestjs","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funduck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-04T19:38:44.000Z","updated_at":"2026-01-19T18:29:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/funduck/nestjs-connectrpc-fastify","commit_stats":null,"previous_names":["funduck/nestjs-connectrpc-fastify"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/funduck/nestjs-connectrpc-fastify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funduck%2Fnestjs-connectrpc-fastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funduck%2Fnestjs-connectrpc-fastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funduck%2Fnestjs-connectrpc-fastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funduck%2Fnestjs-connectrpc-fastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funduck","download_url":"https://codeload.github.com/funduck/nestjs-connectrpc-fastify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funduck%2Fnestjs-connectrpc-fastify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["connectrpc","fastify","nest","nestjs","nodejs"],"created_at":"2026-01-25T12:09:52.572Z","updated_at":"2026-01-25T12:09:53.181Z","avatar_url":"https://github.com/funduck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://connectrpc.com\"\u003e\u003cimg src=\"./connect-logo.png\" width=\"120\" alt=\"ConnectRPC Logo\" /\u003e\u003c/a\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"120\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\nThis is an example of production integration of [ConnectRPC](https://github.com/connectrpc/connect-es) for Nodejs into \n[Nest](https://github.com/nestjs/nest) framework.\n\n### Basic example\nConfigure `ConnectRPCModule` in some of your modules, usually `app.module.ts` is used for such things:\n```TS\n@Module({\n  imports: [\n    ConnectRPCModule.forRoot({\n        logger: new Logger('ConnectRPC', { timestamp: true }),\n    }),\n  ]\n})\nexport class AppModule {}\n```\n\nAt least one controller should implement service described in proto\n```TS\nexport class ConnectrpcController implements Service\u003ctypeof ElizaService\u003e {\n  constructor() {\n    ConnectRPC.registerController(this, ElizaService);\n  }\n\n  async say(\n    request: SayRequest,\n  ) {\n    return {\n      sentence: `You said: ${request.sentence}`,\n    };\n  }\n\n```\n\nAnd during bootstrap register plugin **after** `app` is created and **before** it is initialized\n```TS\n  const app = await NestFactory.create\u003cNestFastifyApplication\u003e(\n    AppModule,\n    new FastifyAdapter(),\n  );\n\n  await app.get(ConnectRPCModule).registerPlugin();\n\n  await app.listen(80);\n```\n\nFor more details start reading from `src/app.module.ts`\n\n### Features\nThis example shows:\n* rpc with simple request and response messages\n* rpc with stream in response\n* rpc with stream in request\n* how to use middlewares\n* how to use global guards\n\n*RPC with bidirectional stream is out of current scope because it requires HTTP/2 which is unstable in public networks. Practice demostrates more consistent performance over HTTP/1.*\n\n## Prerequisites\n* Nodejs\n* Nest + Fastify server\n\n## Project setup\n\n```bash\n$ pnpm install\n```\n\nTo compile proto files if you change them\n```bash\n$ pnpm run compile-proto\n```\n\n## Compile and run the test\n\n```bash\n$ pnpm run test\n```\n\n## Test output\n![](image.png)\n![](image-1.png)\n![](image-2.png)\n![](image-3.png)\n\n## Feedback\nPlease use [Discussions](https://github.com/funduck/nestjs-connectrpc-fastify/discussions) or email me.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunduck%2Fnestjs-connectrpc-fastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunduck%2Fnestjs-connectrpc-fastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunduck%2Fnestjs-connectrpc-fastify/lists"}