New Version 6 release candidate: rewritten in TypeScript

Every detail of the machine.
One await away.

systeminformation is a lightweight Node.js library with 70+ functions for hardware, system and OS data: CPU, memory, disks, network, processes, Docker and more. Zero dependencies, typed, promise-based.

npm i systeminformation@next
  • 70+functions
  • 0dependencies
  • 8platforms
  • …downloads last month

const data = await si.cpu();

{
  manufacturer: 'Intel®',
  brand: 'Core™ i9-9900',
  vendor: 'GenuineIntel',
  speed: 3.1,
  speedMax: 5,
  governor: 'powersave',
  cores: 16,
  physicalCores: 8,
  processors: 1,
  socket: 'LGA1151',
  virtualization: true,
  cache: { l1d: 262144, l2: 2097152, l3: 16777216 }
}

Security issues? Please have a look at our security advisories.

Up and running in a minute

All functions are async and return plain objects. Import the library and await what you need, or combine several calls into one result with si.get().

  1. Install

    From npm, or use it with bun and Deno. Node.js 20 or newer.

  2. Import and await

    Each function maps to one area of the system: cpu(), mem(), fsSize(), networkInterfaces() …

  3. Pick only what you need

    Use si.get() to fetch selected fields from several functions at once, or si.observe() to watch values over time.

const si = require('systeminformation');

// one call per area
const cpu = await si.cpu();
console.log(`${cpu.manufacturer} ${cpu.brand}, ${cpu.cores} cores`);

// or exactly the fields you want, in one result
const data = await si.get({
  cpu: 'manufacturer, brand, speed',
  mem: 'total, used',
  osInfo: 'platform, distro, release'
});

Function reference

Every function, grouped by area. Letters show the supported platforms (L Linux, B BSD, M macOS, W Windows, S SunOS). Press / or to jump straight to one.

Runs where your servers run

Backend and server-side only: it reads from the operating system and does not run in a browser. Coverage differs per function, see the platform columns in each reference.

  • Linux
  • macOS
  • Windows (partial)
  • FreeBSD
  • OpenBSD
  • NetBSD
  • SunOS
  • Android

Version 6 is not fully backward compatible

It is a complete rewrite in TypeScript with breaking changes: callbacks are gone, some functions were split or renamed. Read the changes before upgrading an existing project.

Documentation for previous versions: Version 5 and Version 4. Like the library? Buy me a coffee.