Introducing the xyOps SDK for Node.js #374
jhuckaby
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I’m happy to share the new xyOps SDK for Node.js, now available on npm.
The SDK gives your Node.js code a friendly, native JavaScript interface to xyOps. It is designed for two main use cases: connecting external applications and integrations to the xyOps REST API, and building custom code that runs inside xyOps jobs.
A rich toolkit for running jobs
The
jobinterface makes it much easier to write custom Node.js Event Plugins and scripts for the built-in Shell Plugin. It handles the xyOps job protocol for you, so your code can focus on the work it needs to do.You can use simple helpers to:
A friendly API client
The
apiinterface wraps the xyOps REST API and takes care of request formatting, authentication, and response parsing. You can use it from applications, services, command-line tools, integrations, or directly inside an xyOps job.It includes support for:
Here is a small example:
Note: For using the API client inside of xyOps jobs, you'll need to create an API Key, add it to a Secret Vault as
XYOPS_API_KEY, and assign that Secret Vault to the Event or Plugin running your code. The SDK will automatically use this variable to authenticate API requests.Ready to use in xyOps jobs
Starting with xySat (xyOps Satellite) v1.0.34, the SDK is already included with the Satellite. Your custom xyOps Event Plugins and scripts running through the built-in Shell Plugin can simply require the package and start using it, without a separate installation step.
For external Node.js applications, install it from npm as usual:
Both CommonJS and ESM imports are supported, and the library is fully typed with bundled TypeScript type definitions.
The project README includes a complete guide to the job runtime helpers, API client configuration, working examples, and the full API catalog.
I hope this makes it easier and more enjoyable to extend xyOps, build integrations, and create powerful custom job experiences. If you try it, I’d love to hear what you build and any feedback you have!
What SDK language should we build next? PHP? Python? Go? Perl?
Beta Was this translation helpful? Give feedback.
All reactions