Registry / ai-ml / arg-services

arg-services

JSON →
library4.0.5jsnpmunverified

arg-services provides Protobuf and gRPC definitions for microservice-based argumentation machines, supporting building complex argumentation systems with a microservice architecture. Current stable version is v4.0.5. The package is generated from Protobuf definitions and is part of a multi-language ecosystem (Python, TypeScript). Released via npm, it enables swapping individual components easily. Key differentiators include native Protobuf definitions, Buf Schema Registry documentation, and integration with argumentation, CBR, graphs, NLP, and similarity use cases.

npm install arg-services
INSTALL
IMPORT
SIG · ARG-SERVICES
A
arg-services
ai-mljavascriptv4.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

arg-services
import * as argServices from 'arg-services'
const argServices = require('arg-services')
Package is ESM-only; CommonJS require will fail. Use dynamic import if needed.
ArgServicesClient
import { ArgServicesClient } from 'arg-services'
import ArgServicesClient from 'arg-services'
Named export, not default. Check generated types for exact client name.
Protobuf types
import { SomeMessage } from 'arg-services/generated/some_file'
import { SomeMessage } from 'arg-services'
Protobuf types are in subpath exports; direct import from root may not include all.

Shows how to import the package and create a gRPC client using the generated services. Assumes a running server.

import * as argServices from 'arg-services'; import { ChannelCredentials } from '@grpc/grpc-js'; const client = new argServices.ArgServicesClient('localhost:50051', ChannelCredentials.createInsecure()); client.someMethod({ someField: 'value' }, (error, response) => { if (error) console.error(error); else console.log(response); });
Debug
Known issues
breakingVersion 4.x changed from CommonJS to ESM-only.
fix
Update imports to ESM style: use import statements instead of require(). For CommonJS projects, use dynamic import() or migrate to ESM.
affects: >=4.0.0
gotchaSubpath exports only work if package.json has exports field; otherwise access internal paths.
fix
Verify package.json exports; use documented import paths from README or Buf Schema Registry.
affects: >=4.0.0
deprecatedOlder gRPC API methods may be deprecated in favor of new ones.
fix
Check changelog for method renames; update calls to new API.
affects: >=3.0.0
gotchaProtobuf generated types may have different properties between languages; ensure client-server consistency.
fix
Use the same version of arg-services for client and server, and verify Proto files via Buf Schema Registry.
affects: all
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() with an ESM-only package (v4+).
fix
Use import syntax or dynamic import(). If using CommonJS, downgrade to v3 or upgrade to ESM.
Module not found: Can't resolve 'arg-services'
Package not installed or import path incorrect.
fix
Run 'npm install arg-services' and ensure import path is correct. Check package.json for exports field.
TypeError: argServices.ArgServicesClient is not a constructor
Using wrong import style (e.g., default import) or missing named export.
fix
Use named import: import { ArgServicesClient } from 'arg-services'.
Upgrade
Version history
4.0.5latest on npm
Audit
Dependencies
@grpc/grpc-jsrequiredRequired for gRPC client/server implementations
protobufjsrequiredRequired for Protobuf serialization/deserialization
Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
arg-services — npm install arg-services · libregistry