{"_id":"@dmamontov/graphql-mesh-grpc-pool-handler","_rev":"4-3f605147babf970926d54ef9251fc6fe","name":"@dmamontov/graphql-mesh-grpc-pool-handler","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@dmamontov/graphql-mesh-grpc-pool-handler","version":"1.0.0","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-grpc-pool-handler@1.0.0","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"homepage":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler#readme","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler/issues"},"dist":{"shasum":"0ecb5b4ae627f5f249b2ad793f272d733f8fe9e0","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-grpc-pool-handler/-/graphql-mesh-grpc-pool-handler-1.0.0.tgz","fileCount":40,"integrity":"sha512-2TRSAzF88p8a+ROXtnG82VflXLcPxLQVC8ypvtKAlOWXoBg3pZST8TlcV/yfddN9ojdsliduRvFJNxbspsAnew==","signatures":[{"sig":"MEUCIBqfOAptsl0fPkLq/oX1XLxS26CKg4EdSxjRWMkL0awkAiEAh8FVhPy3zU8CHj1M7UlBqbgdpolLfVC3BiDB1k0yxhk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":148292},"main":"dist/cjs/index.js","type":"module","module":"dist/esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"gitHead":"6daf9bc38ae0100210899e495d3808fad10521bf","scripts":{"lint":"eslint .","build":"bob build"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"git+https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git","type":"git"},"typescript":{"definition":"dist/typings/index.d.ts"},"_npmVersion":"9.8.0","description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"long":"^5.0.0","globby":"^11.1.0","graphql":"*","lodash.get":"^4.4.2","lodash.has":"^4.5.2","protobufjs":"^7.2.5","generic-pool":"^3.9.0","@grpc/grpc-js":"^1.1.7","graphql-compose":"^9.0.10","graphql-scalars":"^1.22.4","@grpc/proto-loader":"^0.7.8","@graphql-mesh/store":"^0.98.4","@graphql-mesh/types":"^0.98.4","@graphql-mesh/utils":"^0.98.4","@graphql-tools/utils":"^10.1.1","@ardatan/grpc-reflection-js":"^0.0.2","@graphql-mesh/cross-helpers":"^0.4.2","@graphql-mesh/string-interpolation":"^0.5.3"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","ts-node":"10.9.2","prettier":"3.2.5","@eslint/js":"8.57.0","typescript":"5.4.3","@babel/core":"7.24.5","@types/long":"^5.0.0","@types/node":"20.12.2","bob-the-bundler":"7.0.1","eslint-plugin-n":"16.6.2","@types/lodash.get":"^4.4.9","@types/lodash.has":"4.5.9","eslint-config-love":"43.1.0","eslint-plugin-jsonc":"2.14.1","eslint-plugin-sonar":"0.13.2","eslint-plugin-import":"2.29.1","eslint-plugin-promise":"6.1.1","eslint-plugin-unicorn":"51.0.1","eslint-config-prettier":"9.1.0","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.1.3","eslint-plugin-standard":"5.0.0","eslint-formatter-stylish":"8.40.0","@theguild/prettier-config":"2.0.6","@typescript-eslint/parser":"7.4.0","eslint-import-resolver-alias":"1.1.2","@typescript-eslint/eslint-plugin":"7.4.0","eslint-import-resolver-typescript":"3.6.1"},"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-grpc-pool-handler_1.0.0_1717141351221_0.644965645572178","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dmamontov/graphql-mesh-grpc-pool-handler","version":"1.0.1","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-grpc-pool-handler@1.0.1","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"homepage":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler#readme","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler/issues"},"dist":{"shasum":"4961ddde63663db236add85dc6f55decef79f147","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-grpc-pool-handler/-/graphql-mesh-grpc-pool-handler-1.0.1.tgz","fileCount":27,"integrity":"sha512-sSRqZ1DfEYZFiZWzizx7SzYqZxU7QGVXBadzWX/9nTDVxXVP9Wi+U0E1K28YiZl+oO7iM3yg8dbiD0R5/o0Ztg==","signatures":[{"sig":"MEUCIHnwpGIc176zspulSjPyH49JH5c5yTmMxXTLZvl1beSpAiEAvY1cgLcXDN6ruW3RnaFrMmJOG/TbWj41Al5SB9LYHQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92085},"main":"cjs/index.js","type":"module","module":"esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"}},"./package.json":"./package.json"},"gitHead":"3d92ab73f9c622edcca1d8094d12d3f130237349","typings":"typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"git+https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git","type":"git"},"typescript":{"definition":"typings/index.d.ts"},"_npmVersion":"9.8.0","description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"long":"^5.0.0","globby":"^11.1.0","graphql":"*","lodash.get":"^4.4.2","lodash.has":"^4.5.2","protobufjs":"^7.2.5","generic-pool":"^3.9.0","@grpc/grpc-js":"^1.1.7","graphql-compose":"^9.0.10","graphql-scalars":"^1.22.4","@grpc/proto-loader":"^0.7.8","@graphql-mesh/store":"^0.98.4","@graphql-mesh/types":"^0.98.4","@graphql-mesh/utils":"^0.98.4","@graphql-tools/utils":"^10.1.1","@ardatan/grpc-reflection-js":"^0.0.2","@graphql-mesh/cross-helpers":"^0.4.2","@graphql-mesh/string-interpolation":"^0.5.3"},"_hasShrinkwrap":false,"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-grpc-pool-handler_1.0.1_1717141391093_0.26068670558476525","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@dmamontov/graphql-mesh-grpc-pool-handler","version":"1.0.2","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-grpc-pool-handler@1.0.2","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"dist":{"shasum":"101caa4a626abd94193b0f7c05ab57953146deaa","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-grpc-pool-handler/-/graphql-mesh-grpc-pool-handler-1.0.2.tgz","fileCount":31,"integrity":"sha512-MpXWvaGn84pevnqLicThTTw2mS0GVd8iYuG/yLq0gNPufb68OqXviHI0+RUdEbH7/rAWANWAPmBtFfyPXCqBHw==","signatures":[{"sig":"MEUCIQDJm3ADVzqrir60xp/Tv+QRx9KjJirb+2ZiEOZu6UYf/wIgEuJRwRufUNHhUYXuG+9iy/V6Pz0qLvotJb7OgQO7y0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93535},"main":"cjs/index.js","type":"module","module":"esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"}},"./package.json":"./package.json"},"typings":"typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git","type":"git"},"typescript":{"definition":"typings/index.d.ts"},"description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","directories":{},"sideEffects":false,"dependencies":{"long":"^5.0.0","globby":"^11.1.0","graphql":"*","lodash.get":"^4.4.2","lodash.has":"^4.5.2","protobufjs":"^7.2.5","generic-pool":"^3.9.0","@grpc/grpc-js":"^1.1.7","graphql-compose":"^9.0.10","graphql-scalars":"^1.22.4","@grpc/proto-loader":"^0.7.8","@graphql-mesh/store":"^0.98.4","@graphql-mesh/types":"^0.98.4","@graphql-mesh/utils":"^0.98.4","@graphql-tools/utils":"^10.1.1","@ardatan/grpc-reflection-js":"^0.0.2","@graphql-mesh/cross-helpers":"^0.4.2","@graphql-mesh/string-interpolation":"^0.5.3","@q42philips/node-grpc-error-details":"^2.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-grpc-pool-handler_1.0.2_1723467307851_0.17162624716406172","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@dmamontov/graphql-mesh-grpc-pool-handler","version":"1.0.3","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-grpc-pool-handler@1.0.3","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"homepage":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler#readme","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler/issues"},"dist":{"shasum":"df8af4e64373a6e8e869c3fef0a4ee6b5f724e96","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-grpc-pool-handler/-/graphql-mesh-grpc-pool-handler-1.0.3.tgz","fileCount":27,"integrity":"sha512-R8JV4CmT9cREIP0BggkQSDlxODza7CXqcVQ7t1CboNcRSGRisY32PZfhi0btQ1cuT5FC//LCsO/sSOZkG8+evA==","signatures":[{"sig":"MEUCID/O+wJMBdOtYL6R4agOxVyRd2/VTaxYrPZWYiGnZulwAiEAonQ3V22LMkIaejDpi9QyhYt5pTFnVwINqO9sXrjAAlQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93535},"main":"cjs/index.js","type":"module","module":"esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"}},"./package.json":"./package.json"},"gitHead":"6756995fa05b79630451e4b3fc69d0762149b81b","typings":"typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"git+https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git","type":"git"},"typescript":{"definition":"typings/index.d.ts"},"_npmVersion":"9.8.0","description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"long":"^5.0.0","globby":"^11.1.0","graphql":"*","lodash.get":"^4.4.2","lodash.has":"^4.5.2","protobufjs":"^7.2.5","generic-pool":"^3.9.0","@grpc/grpc-js":"^1.1.7","graphql-compose":"^9.0.10","graphql-scalars":"^1.22.4","@grpc/proto-loader":"^0.7.8","@graphql-mesh/store":"^0.98.4","@graphql-mesh/types":"^0.98.4","@graphql-mesh/utils":"^0.98.4","@graphql-tools/utils":"^10.1.1","@ardatan/grpc-reflection-js":"^0.0.2","@graphql-mesh/cross-helpers":"^0.4.2","@graphql-mesh/string-interpolation":"^0.5.3","@q42philips/node-grpc-error-details":"^2.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-grpc-pool-handler_1.0.3_1723467376220_0.6133361530538364","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@dmamontov/graphql-mesh-grpc-pool-handler","version":"1.1.0","sideEffects":false,"peerDependencies":{"graphql":"*"},"dependencies":{"@ardatan/grpc-reflection-js":"^0.0.2","@graphql-mesh/cross-helpers":"^0.4.2","@graphql-mesh/store":"^0.98.4","@graphql-mesh/string-interpolation":"^0.5.5","@graphql-mesh/transport-common":"^0.6.1","@graphql-mesh/types":"^0.98.4","@graphql-mesh/utils":"^0.98.4","@graphql-tools/utils":"^10.1.1","@grpc/grpc-js":"^1.1.7","@grpc/proto-loader":"^0.7.8","@q42philips/node-grpc-error-details":"^2.1.0","generic-pool":"^3.9.0","globby":"^11.1.0","graphql":"*","graphql-compose":"^9.0.11","graphql-scalars":"^1.22.4","lodash.get":"^4.4.2","lodash.has":"^4.5.2","long":"^5.0.0","protobufjs":"^7.2.5"},"repository":{"type":"git","url":"git+https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git"},"author":{"name":"Dmitry Mamontov"},"license":"MIT","engines":{"node":">=20.0.0"},"main":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./package.json":"./package.json"},"_id":"@dmamontov/graphql-mesh-grpc-pool-handler@1.1.0","gitHead":"ee8149f537e9897b729cc5e99f72615f66bf4ff1","description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler/issues"},"homepage":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-OqU87mjhuPEE2l03Mqs+CTjFf0UiifdYtrzKXLrFkjOTFWGltMq4AjOKzfOCBymCtRtlewJXZ4/N33VZ7SN+5Q==","shasum":"679bfa3c8bdf28813e1b2af702a760aa64afb674","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-grpc-pool-handler/-/graphql-mesh-grpc-pool-handler-1.1.0.tgz","fileCount":27,"unpackedSize":92994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX6OO8hxIhrz0M1KbZa0y9Qzs9OodZcO9vvxRH5bEHRAIhANLCMvJOQY1pM5R68EEkSqerqdHfwx6WPTMFnyCjC9O4"}]},"_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"directories":{},"maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-mesh-grpc-pool-handler_1.1.0_1725184825647_0.0737529294571364"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-31T07:42:31.117Z","modified":"2024-09-01T10:00:25.977Z","1.0.0":"2024-05-31T07:42:31.389Z","1.0.1":"2024-05-31T07:43:11.265Z","1.0.2":"2024-08-12T12:55:08.008Z","1.0.3":"2024-08-12T12:56:16.427Z","1.1.0":"2024-09-01T10:00:25.804Z"},"bugs":{"url":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler/issues"},"author":{"name":"Dmitry Mamontov"},"license":"MIT","homepage":"https://github.com/dmamontov/graphql-mesh-grpc-pool-handler#readme","repository":{"type":"git","url":"git+https://github.com/dmamontov/graphql-mesh-grpc-pool-handler.git"},"description":"Grpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"readme":"# Grpc Pool Handler for GraphQL Mesh\n\nGrpc Pool Handler is a handler for [GraphQL Mesh](https://github.com/Urigo/graphql-mesh) that allows integrating gRPC data sources with connection pooling support. This handler is based on the original gRPC handler for GraphQL Mesh and adds the ability to configure connection pools for improved performance and resilience.\n\n## Installation\n\nBefore you can use the Grpc Pool Handler, you need to install it along with GraphQL Mesh if you haven't already done so. You can install these using npm or yarn.\n\n```bash\nnpm install @dmamontov/graphql-mesh-grpc-pool-handler\n```\n\nor\n\n```bash\nyarn add @dmamontov/graphql-mesh-grpc-pool-handler\n```\n\n## Configuration\n\n### Modifying tsconfig.json\n\nTo make TypeScript recognize the Grpc Pool Handler, you need to add an alias in your tsconfig.json.\n\nAdd the following paths configuration under the compilerOptions in your tsconfig.json file:\n\n```json\n{\n  \"compilerOptions\": {\n    \"paths\": {\n       \"grpc-pool\": [\"./node_modules/@dmamontov/graphql-mesh-grpc-pool-handler\"]\n    }\n  }\n}\n```\n\n### Adding the Plugin to GraphQL Mesh\n\nYou need to include the Grpc Pool Handler in your GraphQL Mesh configuration file (usually .meshrc.yaml). Below is an example configuration that demonstrates how to use this plugin:\n\n```yaml\nhandler:\n  grpcPool:\n    endpoint: '{env.SERVICE_ENDPOINT}'\n    source: specs/service.proto\n    useHTTPS: true\n    requestTimeout: 5000\n    deadline: 5000\n    prefixQueryMethod: [get, v3get, v2get]\n    pool:\n      min: 30\n      max: 300\n    metaData:\n      auth: '{env.TOKEN}'\n    context:\n      \"grpc.keepalive_time_ms\": 5000\n      \"grpc.keepalive_timeout_ms\": 500\n      \"grpc.keepalive_permit_without_calls\": 1\n      \"grpc.use_local_subchannel_pool\": 0\n      \"grpc.default_compression_algorithm\": 2\n      \"grpc.initial_reconnect_backoff_ms\": 500\n      \"grpc.max_reconnect_backoff_ms\": 1000\n```\n\n## Conclusion\n\nRemember, always test your configurations in a development environment before applying them in production to ensure that everything works as expected.","readmeFilename":"README.md"}