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

get-system-info

v1.0.2

Published

Zero-dependency enterprise-grade cross-platform system information CLI and library (Windows, macOS, Linux, BSD).

Readme

get-system-info (gsi)

Enterprise-grade, zero-dependency, cross-platform system information CLI and Node.js module. Provides in-depth hardware, BIOS/firmware, CPU cache, memory, GPU adapters, storage, and network statistics across Windows, macOS, Linux, and BSD.


Key Capabilities

  • Zero External Dependencies: Pure native Node.js core modules (os, fs, child_process). Runs instantly without bloat or security audit vulnerabilities.
  • Deep Windows Telemetry (msinfo32 equivalent): Motherboard manufacturer, model, revision, BIOS vendor, version, release date, Windows build and edition, registered owner, timezone, system directories, GPU controllers, and power/battery status.
  • Deep macOS Telemetry (system_profiler / sysctl equivalent): Apple model identifier, macOS build and version, CPU vendor and cache sizes (L2/L3), GPU chipsets and VRAM, System Integrity Protection (SIP) status, serial number, hardware UUID, and battery health via pmset.
  • Deep Linux Telemetry (/proc & /sys/class/dmi/id equivalent): Distribution name and codename, kernel release, motherboard vendor/name, chassis type, physical core count, swap memory, GPU detection (lspci), and battery capacity via sysfs power supply.
  • Multiple Output Formats:
    • Stylized human-readable CLI table
    • Full structured JSON (--json)
    • Compressed / Minified JSON (--compact) for low-overhead logging and telemetry pipelines
    • File exports (--output report.json / report.txt)

Runtime Support

get-system-info is engineered to be 100% runtime-agnostic and runs seamlessly on:

  • Node.js (v14+)
  • Bun (v1.0+)
  • Deno (v1.30+ using node: standard compat or direct npm specifier npm:get-system-info)
  • Electron (Main process)

Running on Bun

bunx get-system-info
# or locally
bun run bin/cli.js

Running on Deno

deno run --allow-all npm:get-system-info

Installation

Run without installing (using npx):

npx get-system-info

Install globally:

npm install -g get-system-info

Install locally as a project dependency:

npm install get-system-info

CLI Usage

Usage:
  get-system-info [options]
  gsi [options]

Options:
  -s, --summary       Human-readable summary table (default)
  -j, --json          Output full raw system info as JSON
  -c, --compact       Compress/minify JSON output for network pipelines
  -w, --msinfo        Show enterprise platform details
  -o, --output <file> Export report to file (.json or .txt format)
  -h, --help          Show help message
  -v, --version       Show package version

Examples

# Display full system summary table
gsi

# Output full JSON
gsi --json

# Output compressed JSON (for curl, pipelines, or telemetry)
gsi --json --compact

# Save report to text or JSON file
gsi --output system-report.txt
gsi --json --output system-report.json

Programmatic API

const {
  getSystemInfo,
  getCpuInfo,
  getMemoryInfo,
  getDiskInfo,
  getNetworkInfo
} = require('get-system-info');

const info = getSystemInfo();

console.log(info.system.osName);
console.log(info.hardware.processor.model);
console.log(info.hardware.graphics);
console.log(info.hardware.memory.totalFormatted);
console.log(info.storage);

Publishing to npm

  1. Log in to npm:
    npm login
  2. Publish the package:
    npm publish --access public

(Note: If the name get-system-info is already claimed on npm registry, rename "name" in package.json to @your-username/get-system-info).


License

MIT © Nikhil