{"_id":"@depot/connectrpc-workers","_rev":"5-977194b4c98a43f5b3f8947ba1d5f6a9","name":"@depot/connectrpc-workers","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"@depot/connectrpc-workers","version":"0.1.0","keywords":["connectrpc","cloudflare","workers"],"author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","_id":"@depot/connectrpc-workers@0.1.0","maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"homepage":"https://github.com/depot/connectrpc-workers","bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"dist":{"shasum":"fe283b89738e0bd4e5556163aada06d604f269b1","tarball":"https://registry.npmjs.org/@depot/connectrpc-workers/-/connectrpc-workers-0.1.0.tgz","fileCount":4,"integrity":"sha512-mMFE4toYNfVrizCSMBMaJWtL2PtXNnf0mKsEIGg+i4hw3Ch/TWydVgnsWzV1+F4Ma2Sz0YWXcIbj4tmkUQB8pA==","signatures":[{"sig":"MEUCIQDDOUMD2xkwXciWbjbv+MAcnMyNot0D2jWbg/dp4Y4s4QIgKiDvZx6yGKg9lnFfhpjwzXAvIDmE67EDF9pcl0aqGzA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6530},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"88782196e226a8d4c130635aa76bd1572bd1081b","scripts":{"fmt":"prettier --write .","lint":"eslint --cache --cache-location node_modules/.cache/.eslintcache .","build":"tsup src/index.ts --format esm --dts --clean","clean":"rm -rf dist","prepack":"pnpm run build","lint:fix":"eslint --cache --cache-location node_modules/.cache/.eslintcache --fix .","fmt:check":"prettier --check .","type-check":"tsc --noEmit"},"_npmUser":{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},"prettier":{"semi":false,"plugins":["prettier-plugin-pkg","prettier-plugin-organize-imports"],"printWidth":120,"singleQuote":true,"trailingComma":"all","bracketSpacing":false},"repository":{"url":"git+https://github.com/depot/connectrpc-workers.git","type":"git"},"_npmVersion":"10.1.0","description":"Connect RPC adapter for Cloudflare Workers","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.6","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","esbuild":"^0.20.2","prettier":"^3.2.5","typescript":"^5.4.5","@connectrpc/connect":"^1.4.0","prettier-plugin-pkg":"^0.18.1","eslint-config-prettier":"^9.1.0","@cloudflare/workers-types":"^4.20240405.0","@typescript-eslint/parser":"^7.6.0","@typescript-eslint/eslint-plugin":"^7.6.0","prettier-plugin-organize-imports":"^3.2.4"},"peerDependencies":{"@connectrpc/connect":">=1.4.0 <2.0.0","@cloudflare/workers-types":"*"},"_npmOperationalInternal":{"tmp":"tmp/connectrpc-workers_0.1.0_1712998465107_0.8455365146957923","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@depot/connectrpc-workers","version":"1.0.0","keywords":["connectrpc","cloudflare","workers"],"author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","_id":"@depot/connectrpc-workers@1.0.0","maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"homepage":"https://github.com/depot/connectrpc-workers","bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"dist":{"shasum":"e1fb20fa571acec30b7c0f183d4c76dbc9a84169","tarball":"https://registry.npmjs.org/@depot/connectrpc-workers/-/connectrpc-workers-1.0.0.tgz","fileCount":4,"integrity":"sha512-+ZHem06zwHuUJO6P3KFzz+hzQoEP8EgfxsTzELGFRl8vWJsRpAHfIKu9YDhm9uxMH2HQCV6ZxqJ+CmMJ1774dQ==","signatures":[{"sig":"MEUCIB/Lz8Byr0SvM8hyaHGeaibvW6qmJewiiVnxDC4FC3UcAiEAr6OPmx/yEmy6GzOs+SXsqgvbLYSA/i3rTHqpy85imsU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6903},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"85c4eed2d79cca74060a11c9b9f2663b3e9c16a0","scripts":{"fmt":"prettier --write .","lint":"eslint --cache --cache-location node_modules/.cache/.eslintcache .","build":"tsup src/index.ts --format esm --dts --clean","clean":"rm -rf dist","prepack":"pnpm run build","lint:fix":"eslint --cache --cache-location node_modules/.cache/.eslintcache --fix .","fmt:check":"prettier --check .","type-check":"tsc --noEmit"},"_npmUser":{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},"prettier":{"semi":false,"plugins":["prettier-plugin-pkg","prettier-plugin-organize-imports"],"printWidth":120,"singleQuote":true,"trailingComma":"all","bracketSpacing":false},"repository":{"url":"git+https://github.com/depot/connectrpc-workers.git","type":"git"},"_npmVersion":"10.1.0","description":"Connect RPC adapter for Cloudflare Workers","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.15.6","devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","esbuild":"^0.20.2","prettier":"^3.2.5","typescript":"^5.4.5","@connectrpc/connect":"^1.4.0","prettier-plugin-pkg":"^0.18.1","eslint-config-prettier":"^9.1.0","@cloudflare/workers-types":"^4.20240405.0","@typescript-eslint/parser":"^7.6.0","@typescript-eslint/eslint-plugin":"^7.6.0","prettier-plugin-organize-imports":"^3.2.4"},"peerDependencies":{"@connectrpc/connect":">=1.4.0 <2.0.0","@cloudflare/workers-types":"*"},"_npmOperationalInternal":{"tmp":"tmp/connectrpc-workers_1.0.0_1712998710522_0.21447527918345788","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@depot/connectrpc-workers","version":"1.1.0","keywords":["connectrpc","cloudflare","workers"],"author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","_id":"@depot/connectrpc-workers@1.1.0","maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"homepage":"https://github.com/depot/connectrpc-workers","bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"dist":{"shasum":"e8dc5c000df878eebf25035b858be0d8ac8d64d8","tarball":"https://registry.npmjs.org/@depot/connectrpc-workers/-/connectrpc-workers-1.1.0.tgz","fileCount":4,"integrity":"sha512-vKLtXZjwuRYk9UkNEsHeef4r05aET+6i0nUy/4yRfD4BWqz0BtY9APTk6Dl5XvrF9EtVyoGeuBWJNTdhm55zyw==","signatures":[{"sig":"MEYCIQDh+xqRzYR0iibmb7J74euqcVQ5y/8O7oh6dyeR1UVc8gIhAJ9dOnMmxV+kLI3OfEeYHSlks//l1TaKKfU3gSOOKyqj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6584},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"d1132e16f5951cfac0318fb37bbbb60e81947aeb","scripts":{"fmt":"prettier --write .","build":"tsup src/index.ts --format esm --dts --clean","clean":"rm -rf dist","prepack":"pnpm run build","fmt:check":"prettier --check .","type-check":"tsc --noEmit"},"_npmUser":{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},"prettier":{"semi":false,"plugins":["prettier-plugin-pkg","prettier-plugin-organize-imports"],"printWidth":120,"singleQuote":true,"trailingComma":"all","bracketSpacing":false},"repository":{"url":"git+https://github.com/depot/connectrpc-workers.git","type":"git"},"_npmVersion":"10.8.2","description":"Connect RPC adapter for Cloudflare Workers","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.11.0","devDependencies":{"tsup":"^8.3.0","prettier":"^3.3.3","typescript":"^5.6.2","@connectrpc/connect":"^1.5.0","prettier-plugin-pkg":"^0.18.1","@cloudflare/workers-types":"^4.20240925.0","prettier-plugin-organize-imports":"^4.1.0"},"peerDependencies":{"@bufbuild/protobuf":">=1.10.0 <2.0.0","@connectrpc/connect":">=1.5.0 <2.0.0","@cloudflare/workers-types":"*"},"_npmOperationalInternal":{"tmp":"tmp/connectrpc-workers_1.1.0_1727686984779_0.5611244228702046","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@depot/connectrpc-workers","version":"1.2.0","keywords":["connectrpc","cloudflare","workers"],"author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","_id":"@depot/connectrpc-workers@1.2.0","maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"homepage":"https://github.com/depot/connectrpc-workers","bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"dist":{"shasum":"857100ad2e89a8fa8d80afca80278562414f2dca","tarball":"https://registry.npmjs.org/@depot/connectrpc-workers/-/connectrpc-workers-1.2.0.tgz","fileCount":4,"integrity":"sha512-k9RGoXPj8GY3937sLM25/2yIVJ+dR5xsVjH9DS004IsJVIrAweIKGJWvxE8CcKzg3+y6B7YmPgY34xjy78S7eQ==","signatures":[{"sig":"MEYCIQC+o1PVZiE2Zn3Ams0jp5utFFvrNhDHWFv4rb52ZnM+MgIhAI1DZPKYEqS90Q7Z/L7T2zU4KDIYrPctC65Cosww8L1v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6707},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"460c6f857c0a1c8e8242742a978fb3d4a00e18ea","scripts":{"fmt":"prettier --write .","build":"tsup src/index.ts --format esm --dts --clean","clean":"rm -rf dist","prepack":"pnpm run build","fmt:check":"prettier --check .","type-check":"tsc --noEmit"},"_npmUser":{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},"prettier":{"semi":false,"plugins":["prettier-plugin-pkg","prettier-plugin-organize-imports"],"printWidth":120,"singleQuote":true,"trailingComma":"all","bracketSpacing":false},"repository":{"url":"git+https://github.com/depot/connectrpc-workers.git","type":"git"},"_npmVersion":"10.8.2","description":"Connect RPC adapter for Cloudflare Workers","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.11.0","devDependencies":{"tsup":"^8.3.0","prettier":"^3.3.3","typescript":"^5.6.2","@connectrpc/connect":"^1.5.0","prettier-plugin-pkg":"^0.18.1","@cloudflare/workers-types":"^4.20240925.0","prettier-plugin-organize-imports":"^4.1.0"},"peerDependencies":{"@bufbuild/protobuf":">=1.10.0 <2.0.0","@connectrpc/connect":">=1.5.0 <2.0.0","@cloudflare/workers-types":"*"},"_npmOperationalInternal":{"tmp":"tmp/connectrpc-workers_1.2.0_1729595108831_0.4012214443507214","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@depot/connectrpc-workers","version":"2.0.0","type":"module","description":"Connect RPC adapter for Cloudflare Workers","repository":{"type":"git","url":"git+https://github.com/depot/connectrpc-workers.git"},"homepage":"https://github.com/depot/connectrpc-workers","author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","packageManager":"pnpm@10.10.0","main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["connectrpc","cloudflare","workers"],"scripts":{"build":"tsup src/index.ts --format esm --dts --clean","clean":"rm -rf dist","lint":"biome check","lint:fix":"biome check --fix","prepack":"pnpm run build","type-check":"tsc --noEmit"},"peerDependencies":{"@bufbuild/protobuf":">=2.0.0 <3.0.0","@cloudflare/workers-types":"*","@connectrpc/connect":">=2.0.0 <3.0.0"},"devDependencies":{"@biomejs/biome":"^1.9.4","@cloudflare/workers-types":"^4.20250502.0","@connectrpc/connect":"^2.0.2","tsup":"^8.4.0","typescript":"^5.8.3"},"publishConfig":{"access":"public"},"sideEffects":false,"_id":"@depot/connectrpc-workers@2.0.0","gitHead":"97d39bad3f71535193607324ea0a5a82792df27b","bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-6ZmSVP1sFp/F+IV7yGC//hnB3LZZkpNutq0qFDzZoQcAagGgUbgZzHe3SOkk4vfhiuLE5GigAYXarnMMkWIoGQ==","shasum":"e32502699e31b72ace47fa7277627957901ae392","tarball":"https://registry.npmjs.org/@depot/connectrpc-workers/-/connectrpc-workers-2.0.0.tgz","fileCount":4,"unpackedSize":6379,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCuxTat37bjy/aluuC94LJA9+q13lsWJvFbQrQ1hENLegIgZT5cRfAAKyggi48rlS9umH8FN6eVH5mLagBdLViAbVQ="}]},"_npmUser":{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},"directories":{},"maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/connectrpc-workers_2.0.0_1746226031842_0.452698302816541"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-13T08:54:24.988Z","modified":"2025-05-02T22:47:12.242Z","0.1.0":"2024-04-13T08:54:25.268Z","1.0.0":"2024-04-13T08:58:30.670Z","1.1.0":"2024-09-30T09:03:04.987Z","1.2.0":"2024-10-22T11:05:09.008Z","2.0.0":"2025-05-02T22:47:12.018Z"},"bugs":{"url":"https://github.com/depot/connectrpc-workers/issues"},"author":{"name":"Jacob Gillespie","email":"jacobwgillespie@gmail.com"},"license":"MIT","homepage":"https://github.com/depot/connectrpc-workers","keywords":["connectrpc","cloudflare","workers"],"repository":{"type":"git","url":"git+https://github.com/depot/connectrpc-workers.git"},"description":"Connect RPC adapter for Cloudflare Workers","maintainers":[{"name":"jacobwgillespie","email":"jacobwgillespie@gmail.com"},{"name":"kylegalbraith","email":"kyle.galbraith459@gmail.com"}],"readme":"# `@depot/connectrpc-workers`\n\n[![CI](https://github.com/depot/connectrpc-workers/actions/workflows/ci.yml/badge.svg)](https://github.com/depot/connectrpc-workers/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/@depot/connectrpc-workers.svg)](https://www.npmjs.com/package/@depot/connectrpc-workers)\n![Powered by TypeScript](https://img.shields.io/badge/powered%20by-typescript-blue.svg)\n\nA [Connect RPC](https://connectrpc.com/) adapter for [Cloudflare Workers](https://workers.cloudflare.com/).\n\n## Installation\n\nYou can install the module with your favorite package manager:\n\n```bash\npnpm add @depot/connectrpc-workers\n```\n\nThis package depends on the peer dependencies `@connectrpc/connect` and `@cloudflare/workers-types`.\n\n## Usage\n\nYou can construct a function to register handlers for your Connect services, then construct a Cloudflare Workers fetch event handler from those routes:\n\n```typescript\nimport type {ConnectRouter} from '@connectrpc/connect'\nimport {connectWorkersAdapter} from '@depot/connectrpc-workers'\n\nfunction routes(router: ConnectRouter) {\n  // implement rpc Say(SayRequest) returns (SayResponse)\n  router.rpc(ElizaService, ElizaService.methods.say, async (req) => ({\n    sentence: `you said: ${req.sentence}`,\n  }))\n}\n\nconst handler = connectWorkersAdapter({routes})\n\nexport default {\n  fetch(request, env, context) {\n    return handler(request, env, context)\n  },\n} satisfies ExportedHandler\n```\n\n## License\n\nMIT License, see `LICENSE`.\n","readmeFilename":"README.md"}