{"id":49337,"library":"service-apis-node","title":"Digitalkin Service APIs Node.js Client","description":"Generated gRPC client and server interfaces for Digitalkin's service APIs, providing type-safe Node.js bindings. Current stable version is 2.2.3, with releases tied to API updates. Key differentiators include full TypeScript support, ESM-first module system, and auto-generated service definitions. The library depends on @grpc/grpc-js v1.13.3 peer dependency for gRPC communication.","status":"active","version":"2.2.3","language":"javascript","source_language":"en","source_url":"https://github.com/DigitalKin-ai/service-apis-node","tags":["javascript","typescript"],"install":[{"cmd":"npm install service-apis-node","lang":"bash","label":"npm"},{"cmd":"yarn add service-apis-node","lang":"bash","label":"yarn"},{"cmd":"pnpm add service-apis-node","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for gRPC client/server functionality","package":"@grpc/grpc-js","optional":false}],"imports":[{"note":"ESM-only module; CommonJS require() will fail with ERR_REQUIRE_ESM.","wrong":"const { ServiceClient } = require('service-apis-node')","symbol":"ServiceClient","correct":"import { ServiceClient } from 'service-apis-node'"},{"note":"Named export, not default export.","wrong":"import ServiceServer from 'service-apis-node'","symbol":"ServiceServer","correct":"import { ServiceServer } from 'service-apis-node'"},{"note":"Use 'import type' for type-only imports to avoid runtime overhead.","wrong":"import { MessageTypes } from 'service-apis-node'","symbol":"MessageTypes","correct":"import type { MessageTypes } from 'service-apis-node'"}],"quickstart":{"code":"import { ServiceClient, ServiceServer } from 'service-apis-node';\nimport { credentials } from '@grpc/grpc-js';\n\n// Create a client\nconst client = new ServiceClient(\n  'localhost:50051',\n  credentials.createInsecure()\n);\n\n// Start a server\nconst server = new ServiceServer();\nserver.bindAsync('0.0.0.0:50051', credentials.createInsecure(), () => {\n  server.start();\n  console.log('Server running on port 50051');\n});","lang":"typescript","description":"Shows how to initialize both gRPC client and server using the generated interfaces with TypeScript."},"warnings":[{"fix":"Convert project to ESM or use dynamic import().","message":"ESM-only import: CommonJS require() will throw ERR_REQUIRE_ESM.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Update imports to use named exports as shown in documentation.","message":"Version 1.x used default export; v2 uses named exports.","severity":"deprecated","affected_versions":"=2.0.0"},{"fix":"Use credentials.createSsl() for production.","message":"gRPC channel credentials must match server; insecure credentials are for development only.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin exact version in package.json to avoid breaking changes from API updates.","message":"Service definitions are auto-generated and may change between patch versions.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2.2.3':27 'api':3,16,32 'auto':47 'auto-gener':46 'bind':22 'client':5,8 'communic':61 'current':23 'definit':50 'depend':53,58 'differenti':35 'digitalkin':1,13 'esm':41 'esm-first':40 'first':42 'full':37 'generat':6,48 'grpc':7,60 'grpc/grpc-js':55 'includ':36 'interfac':11 'javascript':62 'key':34 'librari':52 'modul':43 'node.js':4,21 'peer':57 'provid':17 'releas':29 'safe':20 'server':10 'servic':2,15,49 'stabl':24 'support':39 'system':44 'tie':30 'type':19 'type-saf':18 'typescript':38,63 'updat':33 'v1.13.3':56 'version':25","created_at":"2026-06-07T17:01:14.612604+00:00","updated_at":"2026-06-07T17:01:14.612604+00:00","problems":[{"fix":"Use import statement or dynamic import() in your module.","cause":"Using CommonJS require() to load an ESM-only package.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module not supported."},{"fix":"Change import to: import { ServiceClient } from 'service-apis-node'.","cause":"Incorrect import; library is ESM-only and may require named import.","error":"TypeError: ServiceClient is not a constructor"},{"fix":"Ensure server is started and accessible, check host:port.","cause":"gRPC server not running or unreachable.","error":"Error: 14 UNAVAILABLE: failed to connect to all addresses"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/DigitalKin-ai/service-apis-node#readme","github":"https://github.com/DigitalKin-ai/service-apis-node","docs":null,"changelog":null,"pypi":null,"npm":"service-apis-node","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}