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

@nexuss0781/nexinal

v1.0.0

Published

TypeScript/JavaScript client for Nexuss Bash remote execution API

Downloads

44

Readme

nexinal — TypeScript/JavaScript Client for Nexuss Bash

npm version

A typed client library for interacting with the Nexuss Bash remote shell API.

Install

npm install nexinal

Quick Start

Basic Setup

import { NexussBash } from 'nexinal';

const nx = new NexussBash({
  host: 'http://localhost:3000',
  apiKey: 'your-api-key',
});

const result = await nx.run('echo "Hello from Nexuss Bash"');
console.log(result.stdout);

Running a Pipeline from YAML

const pipeline = await nx.pipelineRun({
  name: 'build-and-test',
  yaml: `
    steps:
      - run: npm ci
      - run: npm run build
      - run: npm test
  `,
});

console.log(pipeline.steps);

File Upload

const file = await nx.fileUpload('./data.csv', { path: '/workspace/data.csv' });
console.log(file.id, file.path);

Session Management

const session = await nx.sessionCreate({ name: 'dev-work' });
await nx.sessionExec(session.id, 'ls -la');
const logs = await nx.sessionLogs(session.id);
console.log(logs.entries);
await nx.sessionDelete(session.id);

Package Management

await nx.packageInstall('lodash');
const packages = await nx.packageList();
console.log(packages.packages);

Error Handling

import {
  NexussBash,
  AuthError,
  NotFoundError,
  ThrottledError,
} from 'nexinal';

const nx = new NexussBash({ host: 'http://localhost:3000', apiKey: 'bad-key' });

try {
  await nx.run('whoami');
} catch (err) {
  if (err instanceof AuthError) {
    console.error('Invalid API key');
  } else if (err instanceof NotFoundError) {
    console.error('Resource not found');
  } else if (err instanceof ThrottledError) {
    console.error('Rate limited, retry later');
  } else if (err instanceof NexussBashError) {
    console.error(err.message, err.status);
  }
}

API Reference

| Method | HTTP Call | Return Type | |---|---|---| | health() | GET /health | HealthResponse | | resources() | GET /resources | ResourceResponse | | systemInfo() | GET /system | SystemResponse | | run(command, opts?) | POST /run | RunResult | | runList(pagination?) | GET /run | RunListResponse | | sessionCreate(opts?) | POST /session | Session | | sessionList(pagination?) | GET /session | SessionListResponse | | sessionLogs(id) | GET /session/:id/logs | SessionLogs | | sessionExec(id, command) | POST /session/:id/exec | ExecResult | | sessionDelete(id) | DELETE /session/:id | void | | jobRun(language, opts?) | POST /job/:lang | JobRef | | jobDetail(id) | GET /job/:id | JobDetail | | jobList(language?, pagination?) | GET /job | JobListResponse | | jobCancel(id) | DELETE /job/:id | void | | jobLog(id) | GET /job/:id/log | string | | fileUpload(filePath, opts?) | POST /file | FileRecord | | fileList(pagination?) | GET /file | FileListResponse | | fileInfo(id) | GET /file/:id | FileRecord | | fileDelete(id) | DELETE /file/:id | void | | fileDownload(id) | GET /file/:id/download | Uint8Array | | pipelineRun(opts) | POST /pipeline | PipelineDetail | | pipelineDetail(id) | GET /pipeline/:id | PipelineDetail | | pipelineList(pagination?) | GET /pipeline | PipelineListResponse | | packageList(pagination?) | GET /package | PackageListResponse | | packageInstall(name) | POST /package/:name/install | PackageRecord | | packageUninstall(name) | DELETE /package/:name/install | void |

TypeScript Support

Full type definitions are included. All request options, responses, and error classes are fully typed.

import type { NexussBashConfig, RunResult, Session } from 'nexinal';

Requirements

  • Node.js 18+ — uses native fetch.

License

MIT

Links