{"_id":"@aristech-org/nlp-client","_rev":"7-5fffa39405d83d8e2eb74ab619efaf6a","name":"@aristech-org/nlp-client","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@aristech-org/nlp-client","version":"1.0.0","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@1.0.0","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"4e5d438d1c73cf6a96cf2078b64058c9f123859b","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-1.0.0.tgz","fileCount":22,"integrity":"sha512-0dWsWTgFEcz1JbnC+K68UPSgMBMvH5zLfItPZeZQApHtrD+q4beM37jvCZjmhcGFubHXbACmYtgnjVgEUX5B0w==","signatures":[{"sig":"MEUCIECYGMwLDQ1/LQFL3y2FbDNCUIMywAT94hIr1WGek7M4AiEAy/HZz9l4hcQihNP55JjOoIW1qY7UI7TBvRgB4ADitwE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":281971},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"gitHead":"237fe8f5f8a0ead9765c527bf764cffe350d8f4e","scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.13.2","@bufbuild/protobuf":"2.2.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.19.3","dotenv":"16.4.7","ts-proto":"2.7.0","typescript":"5.8.2","@types/node":"22.13.16","simple-git-hooks":"2.12.1"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_1.0.0_1743514502677_0.8479021880606927","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@aristech-org/nlp-client","version":"1.1.0","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@1.1.0","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"191abc55f961b24fa63acf3bab87c049b10da132","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-1.1.0.tgz","fileCount":22,"integrity":"sha512-pKsS9+TyFpYBJ+z2ZTdxx2oeg742o7ThapZzajAGDMUKPI3KfpGd7bO0v0YX9XWhFR1zYMjbtP+QMibxl6vVZw==","signatures":[{"sig":"MEYCIQD1DRn58QTBkq1xAMmjD9Mp8zL6gMQCxP6sWb4qhUaZrwIhAP4m+2CEUX0zuoxifww1YCsTggHJB64oSovstO6yvWa7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":282981},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.13.3","@bufbuild/protobuf":"2.2.5"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.19.4","dotenv":"16.5.0","ts-proto":"2.7.0","typescript":"5.8.3","@types/node":"22.15.3","simple-git-hooks":"2.13.0"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_1.1.0_1745914185425_0.9329384313058269","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@aristech-org/nlp-client","version":"1.1.1","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@1.1.1","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"788d38184c99e11c05592e0e72a3f038463eca1b","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-1.1.1.tgz","fileCount":22,"integrity":"sha512-e08SvAwPIX2/sKdDiRt5bMJz4GknlDubl98q4QLGt8MDF2pPfGAFtJiS1Hdr0JlE1nmGXyGihtnDoLIWxgXxWw==","signatures":[{"sig":"MEYCIQDTFXV3rZHkypX12AEZ2bSRAadB8zkfFK126qPxHSp4vQIhAIRgw+4xAMcn3LH6XUDibJIb2kd/Up/g3Y1kZER1U3jx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":282987},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.13.3","@bufbuild/protobuf":"2.4.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.19.4","dotenv":"16.5.0","ts-proto":"2.7.0","typescript":"5.8.3","@types/node":"22.15.18","simple-git-hooks":"2.13.0"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_1.1.1_1747376353781_0.24615501368784187","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@aristech-org/nlp-client","version":"2.0.0","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@2.0.0","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"a7d1613274e5d860ad19ea0b8d0b72d482f4f294","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-2.0.0.tgz","fileCount":22,"integrity":"sha512-tI8FeAHZMgiaxkRu9L2yBqwEqq3vJM7zm2GFUqZpe+FFrMSEjxdYzsrSIMIoddlCynHBuGo7gqLKFR9pGo0zhA==","signatures":[{"sig":"MEUCICT7R/qcZGyyZKxfkLeoZNiN404lSkcG8DV3b1JS1im9AiEAokPB28CMoizSSjwjHHxG1RUgkns3qPgvWvoqoYlMpGU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":328287},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.13.4","@bufbuild/protobuf":"2.6.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.20.3","dotenv":"17.2.1","ts-proto":"2.7.5","typescript":"5.8.3","@types/node":"24.1.0","simple-git-hooks":"2.13.0"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_2.0.0_1753442552164_0.9319476979261339","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@aristech-org/nlp-client","version":"2.0.1","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@2.0.1","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"b42e2c3b4298cc81e321c711d47bbdb7f63f6e2d","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-2.0.1.tgz","fileCount":22,"integrity":"sha512-i7p+zKyU/So+NhVwErKUf2TR2IlbRmi0L4u2Z2x23GjVpOd3Zivm12Wv9PqGyRdN6PG8fW3ghSQ8SbMtaxXITg==","signatures":[{"sig":"MEUCIQDECY0u7+6E5ywwfrJhJT+g+YFXDsEjPTTqEMO+LVoIYgIgZtVJJ9rku85ea+6JufXRF7I90WmqNaDAUbA2rEt1yEs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":328287},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.13.4","@bufbuild/protobuf":"2.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.20.5","dotenv":"17.2.1","ts-proto":"2.7.7","typescript":"5.9.2","@types/node":"24.3.0","simple-git-hooks":"2.13.1"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_2.0.1_1756110948388_0.09490932552071896","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@aristech-org/nlp-client","version":"2.1.0","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","_id":"@aristech-org/nlp-client@2.1.0","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"homepage":"https://github.com/aristech-de/nlp-clients#readme","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"dist":{"shasum":"3177daab93eff8eca90744c9b627e6b2c012cea2","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-2.1.0.tgz","fileCount":22,"integrity":"sha512-9076VkMuYXG/hCh1SvKt6mTORqhjkCg9yRdGBpOVWMOmqxDFlENtVOdtOEezhVcn5C7iHcAclPnRRk6m4Xptjw==","signatures":[{"sig":"MEUCIA/PdydNfvWmZ5+TPYVkhXfj/xhIgKRRB3Z5xewkAeFjAiEAsgBmeB7+nbTFeN/GAJCyv5+Yw5qeQptUivem1txEutU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":329147},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/project":"./dist/generated/project.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js"},"scripts":{"test":"tsx --test","build":"tsc -p .","start":"tsx watch src/index.ts","prepare":"simple-git-hooks","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"repository":{"url":"git+https://github.com/aristech-de/nlp-clients.git","type":"git"},"_npmVersion":"10.8.2","description":"A Node.js client library for the Aristech NLP Service","directories":{"example":"examples"},"_nodeVersion":"20.18.0","dependencies":{"@grpc/grpc-js":"1.14.0","@bufbuild/protobuf":"2.9.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.20.5","dotenv":"17.2.2","ts-proto":"2.7.7","typescript":"5.9.2","@types/node":"24.5.2","simple-git-hooks":"2.13.1"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"_npmOperationalInternal":{"tmp":"tmp/nlp-client_2.1.0_1758265456650_0.7452822650755628","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@aristech-org/nlp-client","version":"3.0.0","description":"A Node.js client library for the Aristech NLP Service","type":"module","types":"dist/index.d.ts","typings":"dist/index.d.ts","main":"dist/index.js","directories":{"example":"examples"},"scripts":{"test":"tsx --test","start":"tsx watch src/index.ts","build":"tsc -p .","generate":"mkdir -p src/generated && ./proto2Typescript.sh","type-check":"tsc --noEmit","prepare":"simple-git-hooks"},"simple-git-hooks":{"pre-commit":"npm run --prefix node type-check"},"repository":{"type":"git","url":"git+https://github.com/aristech-de/nlp-clients.git"},"keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"author":{"name":"Martin Mende"},"license":"MIT","bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"homepage":"https://github.com/aristech-de/nlp-clients#readme","devDependencies":{"@types/node":"25.9.1","dotenv":"17.4.2","simple-git-hooks":"2.13.1","ts-proto":"2.11.8","tsx":"4.22.3","typescript":"6.0.3"},"dependencies":{"@bufbuild/protobuf":"2.12.0","@grpc/grpc-js":"1.14.4"},"exports":{".":"./dist/index.js","./dist/generated/intents":"./dist/generated/intents.js","./dist/generated/nlp_server":"./dist/generated/nlp_server.js","./dist/generated/project":"./dist/generated/project.js"},"_id":"@aristech-org/nlp-client@3.0.0","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-z4GzAZ0nfG2hxesUGX7gT6jNkXyvCHU3y5sA2p6tj8iRsh7lsaZpRQQ3pxP1yyj/kOrd6VHv0t9qBzkeCApLww==","shasum":"17e9f9c93a167f9571e9d58c43122161cd3446b6","tarball":"https://registry.npmjs.org/@aristech-org/nlp-client/-/nlp-client-3.0.0.tgz","fileCount":25,"unpackedSize":581144,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCVdKsBpdKQH4E0qrQrO6ZMfd86a4r1+RDZS1EJ842dFwIgDwks8R3v3BlhgnbVhOVFdHqDmPHHv/H5Qp6s/DzWHgg="}]},"_npmUser":{"name":"mmende","email":"martin.mende@aristech.de"},"maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nlp-client_3.0.0_1780051350394_0.21210714534837538"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-01T13:35:02.602Z","modified":"2026-05-29T10:42:30.699Z","1.0.0":"2025-04-01T13:35:02.868Z","1.1.0":"2025-04-29T08:09:45.619Z","1.1.1":"2025-05-16T06:19:13.965Z","2.0.0":"2025-07-25T11:22:32.328Z","2.0.1":"2025-08-25T08:35:48.567Z","2.1.0":"2025-09-19T07:04:16.836Z","3.0.0":"2026-05-29T10:42:30.567Z"},"bugs":{"url":"https://github.com/aristech-de/nlp-clients/issues"},"author":{"name":"Martin Mende"},"license":"MIT","homepage":"https://github.com/aristech-de/nlp-clients#readme","keywords":["natural-language-processing","nlp","real-time","streaming","client-library"],"repository":{"type":"git","url":"git+https://github.com/aristech-de/nlp-clients.git"},"description":"A Node.js client library for the Aristech NLP Service","maintainers":[{"name":"liambrewig","email":"liam.brewig@aristech.de"},{"name":"mmende","email":"martin.mende@aristech.de"}],"readme":"# Aristech NLP-Client for NodeJS\n\nThis is the NodeJS client implementation for the Aristech NLP-Server.\n\n## Installation\n\n```bash\nnpm install @aristech-org/nlp-client\n```\n\n## Usage\n\n```typescript\nimport { NlpClient } from '@aristech-org/nlp-client'\n\nconst client = new NlpClient({ host: 'nlp.example.com' })\nconst response = await client.runFunctions({\n  input: 'hello world',\n  functions: [{ id: 'spellcheck-de' }]\n})\nconsole.log(response)\n```\n\nThere are several examples in the `examples` directory:\n\n- [functions.ts](examples/models.ts): Demonstrates how to list the available functions.\n- [runFunctions.ts](examples/runFunctions.ts): Demonstrates how to perform NLP processing on a text.\n- [process.ts](examples/process.ts): Demonstrates how to perform NLP processing on a text.\n- [projects.ts](examples/projects.ts): Demonstrates how to list the available projects.\n- [intents.ts](examples/intents.ts): Demonstrates how to list intents for a project.\n- [scoreLimits.ts](examples/scoreLimits.ts): Demonstrates how to use score limits to figure out good thresholds for intents.\n- [content.ts](examples/content.ts): Demonstrates how to search content for a given prompt and read the streamed result list.\n\nYou can run the examples directly using `tsx` like this:\n\n1. Create a `.env` file in the [node](.) directory:\n\n```sh\nHOST=nlp.example.com\n# The credentials are optional but probably required for most servers:\nTOKEN=your-token\nSECRET=your-secret\n\n# The following are optional:\n# ROOT_CERT=your-root-cert.pem # If the server uses a self-signed certificate\n# SSL=true # Set to true if credentials are provided or if a ROOT_CERT is provided\n# PROJECT_ID=your-project-id # Required for some examples\n```\n\n2. Run the examples, e.g.:\n\n```sh\nnpx tsx examples/functions.ts\n```\n\n## Build\n\nTo rebuild the generated typescript files from the proto file, run:\n\n```bash\nnpm run generate\n```\n\nTo build the library, run:\n\n```bash\nnpm run build\n```\n\n","readmeFilename":"README.md"}