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 }
}
{
total: 67092135936,
free: 65769291776,
used: 1322844160,
active: 1032495104,
available: 66059640832,
buffers: 63213568,
cached: 800124928,
swaptotal: 8589930496,
swapused: 0,
swapfree: 8589930496
}
{
platform: 'darwin',
distro: 'macOS',
release: '26.5.2',
codename: 'Tahoe',
kernel: '25.5.0',
arch: 'arm64',
hostname: 'MacBook-Pro.local',
build: '25F84',
uefi: true,
displayServer: 'quartz',
hwAcceleration: [ 'metal', 'opencl' ]
}
[
{
cycleCount: 35,
isCharging: false,
designedCapacity: 64958,
maxCapacity: 65865,
currentCapacity: 64856,
voltage: 12.767,
percent: 100,
timeRemaining: 551,
acConnected: false,
type: 'Li-ion'
}
]
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().
-
Install
From npm, or use it with bun and Deno. Node.js 20 or newer.
-
Import and await
Each function maps to one area of the system:
cpu(),mem(),fsSize(),networkInterfaces()… -
Pick only what you need
Use
si.get()to fetch selected fields from several functions at once, orsi.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.