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

node-redfish

v1.0.2

Published

Client for querying and managing Redfish-compliant BMCs (DMTF Redfish)

Readme

node-redfish

CI npm version npm downloads docs license semantic-release

A TypeScript client for querying and managing Redfish-compliant BMCs (Dell iDRAC, HPE iLO, Lenovo XCC, Supermicro, and other DMTF Redfish implementations).

Ships as dual ESM/CJS with bundled type declarations. Full API reference: https://sourceregistry.github.io/node-redfish/

Install

npm install node-redfish

Usage

import { RedfishClient } from 'node-redfish';

const client = new RedfishClient({
  baseUrl: 'https://10.0.0.5',
  auth: { type: 'session', username: 'admin', password: 'secret' },
  // Most BMCs ship a self-signed TLS certificate.
  insecure: true,
});

await client.connect();

const root = await client.getServiceRoot();
console.log(root.RedfishVersion);

const systems = await client.getSystems();
for (const system of systems) {
  console.log(system.Id, system.PowerState, system.Status?.Health);
}

await client.resetSystem(systems[0].Id!, 'GracefulRestart');

await client.disconnect();

Authentication

Three strategies are supported via the auth option:

// HTTP Basic auth on every request
{ type: 'basic', username: 'admin', password: 'secret' }

// Redfish session auth: connect() creates a session and captures
// X-Auth-Token; disconnect() deletes it.
{ type: 'session', username: 'admin', password: 'secret' }

// A pre-existing X-Auth-Token / bearer-style token
{ type: 'token', token: 'abc123' }

Omit auth (or pass { type: 'none' }) for unauthenticated requests.

Self-signed certificates

BMCs commonly present a self-signed or vendor-CA certificate. Pass insecure: true to skip TLS verification (backed by an undici Agent).

API surface

client.getServiceRoot();

client.getSystems();          // expanded ComputerSystem[]
client.getSystemIds();        // string[] of resource IDs
client.getSystem(id);
client.resetSystem(id, resetType); // 'On' | 'ForceOff' | 'GracefulRestart' | ...

client.getChassisCollection();
client.getChassis(id);
client.getPower(chassisId);
client.getThermal(chassisId);

client.getManagers();
client.getManager(id);
client.resetManager(id, resetType);

client.getSessions();

// Generic escape hatches for anything not wrapped above
client.get(path);
client.post(path, body);
client.patch(path, body, etag);  // sends If-Match when etag is given
client.put(path, body, etag);
client.delete(path);

resetSystem/resetManager read the action target URL from the resource's own Actions block (per the Redfish spec) rather than assuming a fixed path, and throw RedfishActionNotSupportedError if the resource doesn't advertise that action.

Errors

  • RedfishError — non-2xx response; carries status, statusText, parsed body, and extendedInfo (from @Message.ExtendedInfo).
  • RedfishTimeoutError — request exceeded timeoutMs (default 15s).
  • RedfishActionNotSupportedError — requested action isn't present on the resource.

Contributing

See DEVELOPMENT.md for local setup, testing (including integration tests against a real Redfish server), and the release process.

License

Apache-2.0