npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vxcloud/sdk

v2026.6.15

Published

TypeScript SDK for the vxcloud / VxCloud platform — provision infrastructure, deploy applications, and manage running services from your terminal or CI pipeline.

Readme

@vxcloud/sdk · TypeScript SDK

npm version npm downloads node types license

Provision infrastructure, deploy applications, and manage running services on the vxcloud platform — straight from TypeScript & Node.js.

The official TypeScript SDK for the vxcloud / VxCloud platform. Fully typed, dual ESM + CJS, zero-config auth (API key with automatic refresh on 401), and the same wire contract as the Go and Python SDKs.

Install · Quick start · What you can do · Auth · Errors · Docs

Versioning: CalVer (YYYY.M.D) — releases track the vxnode fleet date (e.g. v2026.6.10-1), so the SDK, the node binary, and the dashboard all read the same number. Still a preview surface; pin exact versions in production.


Install

npm install @vxcloud/sdk
# or
pnpm add @vxcloud/sdk
# or
yarn add @vxcloud/sdk

Requires Node.js ≥18 (uses native fetch and FormData). Ships ESM + CommonJS builds and full .d.ts type definitions — no @types package needed.

Quick start

import { VxCloud } from '@vxcloud/sdk';

// 1. Load credentials written by `vxcli auth login` (~/.vxcloud/credentials.json)
const c = await VxCloud.loadFromVxcli();
//    or pass them explicitly:
// const c = new VxCloud({ apiKey: 'xc_live_…', username: 'alice' });

// 2. Provision a VM
const vm = await c.cloud.vm.provision({
  name: 'api-vm',
  cloud: 'aws',
  instanceType: 't3.small',
  region: 'us-east-1',
  keyPairName: 'AWSPRODKEY2',
  tags: { app: 'studio-backend', env: 'staging' },
});

// 3. Deploy a Docker container onto it
const ssh = { host: vm.public_ip as string, sshUser: 'ubuntu', keyPairName: 'AWSPRODKEY1.PEM' };
const sess = await c.deploy.container({
  image: 'grafana/grafana:latest',
  name: 'grafana',
  ports: ['3000:3000'],
  ...ssh,
});
console.log('session:', sess.sessionId);

// 4. Manage it
console.log(await c.services.status('grafana', ssh));
await c.services.restart('grafana', ssh);

Pick the entry-point name you like

All four resolve to the same class — there is no behavior difference:

import { VxCloud } from '@vxcloud/sdk';   // canonical (PascalCase)
import { vxcloud } from '@vxcloud/sdk';   // lowercase brand
import { Vxsdk }   from '@vxcloud/sdk';   // mirrors the Python `vxsdk` name
import { Client }  from '@vxcloud/sdk';   // mirrors `vxsdk.Client`

const c = await VxCloud.loadFromVxcli();

What you can do

A thin, fully-typed wrapper over the vxcloud FastAPI control plane. Every module is await-able and returns typed responses.

| Module | Highlights | |---|---| | c.auth | whoami, exchange, refresh | | c.cloud | vm.{provision,status,action}, createVm (flat shortcut), s3, iam.{createPolicy,createRole,createKeypair}, database, kubernetes, network.createVpc, serverless.createFunction | | c.deploy | container + all 12 stacks (fastapi, react, nextjs, django, nodejs, python, golang, rust, cpp, php, static) | | c.install | script (run a remote installer), compose (apply a docker-compose) | | c.services | list/status/start/stop/restart/remove/logs + vm.{reboot,shutdown,diskCleanup,dockerCleanup,restartDocker,memory,disk,listServices,listContainers,killPort,stopService} | | c.cicd | pipelines.{list,show,trigger}, builds.show, git.list | | c.networks | script catalog + remote-execute | | c.marketplace | agents/models/solutions.{list,show,deploy,provision} | | c.metaldb | testConnection, provision (self-managed PostgreSQL over SSH) | | c.agents | coding / devops / git / parallel / run / presets / tools / tool | | c.agentcontrol | summary, fineTuning/training/knowledge.{list,get,create,wait}, datasets.{list,get,preview,upload}, agents.{list,execute}, github.{listRepos,importDataset} | | c.chat | send(...), quick(provider, model, question) | | c.vxcomputer | info, health, classify, run, resolveApproval, auditVerify | | c.workflow | list/get/create/save/publish/delete, validate, execute, testNode, listExecutions, cancelExecution, export | | c.vxchrono | createGoal/listGoals/updateGoal, schedule, launchRun, pauseRun/resumeRun/stopRun, dispatchScheduler | | c.robotic | listRobots/getRobot/registerRobot/sendCommand, telemetry, plan, emergencyStop, fleetCommand | | c.observability | backups, migrations, sync (backup CRUD, migration plan/execute, batch sync) | | c.billing | multicloud, optimization | | c.workspace | full /api/v2/setup/* — workspace + organization lifecycle, cloud/AI provider creds, API tokens, Git/payment/SMTP/SSL/OAuth/OKTA/CyberArk credentials | | c.nodes | list, current, setDefault | | c.sessions | list, show, apply, pull, delete |

// Deploy a language stack straight from a public git repo
await c.deploy.stack('golang', {
  host: '54.197.71.181', sshUser: 'ubuntu', keyPairName: 'AWSPRODKEY1.PEM',
  repoUrl: 'https://github.com/joelwembo/va-sample-golang.git', branch: 'main',
  gitProvider: 'github', appName: 'va-sample-golang',
  httpPort: '80', appPort: '8080', goVersion: '1.22',
});

// Trigger a CI/CD pipeline
for (const p of await c.cicd.pipelines.list()) console.log(p.id, p.name);
await c.cicd.pipelines.trigger({ pipelineId: 'abc…', branch: 'main' });

Authentication

The SDK supports the full vxcloud auth model:

  • API keyxc_dev_…, xc_test_…, xc_live_…. Exchanged lazily on the first protected call, refreshed on 401, single-flight to avoid a thundering herd.
  • JWT — pass accessToken directly if you already exchanged.
  • Vault key-pair name — the server resolves the SSH key from your workspace Vault.
  • Local PEM file — pass keyPairLocation: '~/.ssh/id_rsa' and the SDK reads it locally and attaches it as a private_key_pem multipart part.
const sess = await c.deploy.container({
  image: 'grafana/grafana:latest',
  name: 'grafana',
  ports: ['3000:3000'],
  host: '13.216.243.13',
  sshUser: 'ubuntu',
  keyPairLocation: '~/.ssh/awsprodkey1.pem',   // local PEM instead of Vault
});

Error handling

Every error is a subclass of VxError — discriminate with instanceof:

import {
  VxAuthError, VxValidationError, VxRateLimitError,
  VxServerError, VxNetworkError, isRetryable,
} from '@vxcloud/sdk';

try {
  await c.deploy.container({ /* … */ });
} catch (err) {
  if (err instanceof VxAuthError) {
    // re-run `vxcli auth login`
  } else if (err instanceof VxValidationError) {
    // bad input — fix the call
  } else if (isRetryable(err)) {
    // VxRateLimit / VxServer / VxNetwork — back off + retry
  } else {
    throw err;
  }
}

The client retries transient failures (VxRateLimitError, VxServerError, VxNetworkError) and transparently refreshes an expired API key on 401 before replaying the request, so application code rarely sees token expiration. Auth and validation errors surface immediately.

SDKs for every stack

| Language | Package | Install | |---|---|---| | TypeScript / Node | @vxcloud/sdk | npm install @vxcloud/sdk | | Python | vxcloud / vxsdk | pip install vxcloud | | Go | github.com/prodxcloud/vxcloud | go get github.com/prodxcloud/vxcloud |

Development

npm install
npm run typecheck
npm test
npm run build

Links

License

Apache-2.0 © vxcloud / ProdXCloud