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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lup-system

v1.5.7

Published

NodeJS library to retrieve system information and utilization.

Readme

GitHub package.json version npm bundle size GitHub Workflow Status NPM

lup-system

Node module that provides utilities for interacting with the operating system and the hardware of the machine.

Example

JavaScript:

const lupSystem = require('lup-system');

lupSystem.getCpuInfo().then(cpuInfo => console.log("CPU Info: " + cpuInfo));
lupSystem.getDrives().then(drives => console.log("Drives: " + drives)); // Array of drive objects
lupSystem.getGPUs().then(gpus => console.log("GPU Info: " + gpus));
lupSystem.getMemoryInfo().then(memoryInfo => console.log("Memory Info: " + memoryInfo));
lupSystem.getNetworkInterfaces().then(interfaces => console.log("Network Interfaces: " + interfaces));
lupSystem.getOSInfo().then(osInfo => console.log("OS Info: " + osInfo));
lupSystem.getTemperatures().then(temps => console.log("Temperatures: " + temps));

TypeScript:

import lupSystem from 'lup-system';

(async () => {
    console.log("CPU Info: ", await lupSystem.getCpuInfo());
    console.log("Drives: ", await lupSystem.getDrives()); // Array of drive objects
    console.log("GPU Info: ", await lupSystem.getGPUs());
    console.log("Memory Info: ", await lupSystem.getMemoryInfo());
    console.log("Network Interfaces: ", await lupSystem.getNetworkInterfaces());
    console.log("OS Info: ", await lupSystem.getOSInfo());
    console.log("Temperatures: ", await lupSystem.getTemperatures());
})();

Output:

CPU Info: {
    architecture: 'x64',
    coreCount: 12,
    endian: 'LE',
    name: '11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz',
    speed: 3912,
    utilization: {
        overall: 0.20021299254526093,
        cores: [
            0.20253164556962025,
            0.19230769230769232,
            0.6025641025641025,
            0,
            0.3974358974358974,
            0.20253164556962025,
            0,
            0,
            0.20253164556962025,
            0,
            0.19480519480519481,
            0.4050632911392405
        ]
    }
}
Drives: [
    {
        filesystem: 'C:',
        mount: 'C:',
        type: 'ntfs',
        total: 1999519543296,
        utilization: {
            free: 470568960000,
            used: 1528950583296,
            percentage: 0.7646589844156682
        }
    },
    {
        filesystem: 'D:',
        mount: 'D:',
        type: 'ntfs',
        total: 1000203087872,
        utilization: {
            free: 917100240896,
            used: 83102846976,
            percentage: 0.08308597322250519
        }
    }
]
GPU Info: [
    {
        name: 'NVIDIA GeForce RTX 3060 Ti',
        status: 'ok',
        id: 'PCI\\VEN_10DE&DEV_2489&SUBSYS_884F1043&REV_A1\\4&2130FF93&0&0008',
        processor: 'NVIDIA GeForce RTX 3060 Ti',
        memory: 8589934592,
        driverDate: '14.05.2025 02:00:00',
        driverVersion: '32.0.15.7652',
        displayAttached: true,
        displayActive: true,
        utilization: {
            fanSpeed: 0.56,
            processing: 0.01,
            memory: 0,
            temperature: 51,
            powerDraw: 46.65
        }
    }
]
Memory Info: {
    size: 34249633792,
    utilization: {
        used: 22643089408,
        free: 11606544384,
        percentage: 0.6611191683249166
    },
    devices: [
        {
            manufacturer: 'Kingston',
            model: 'KF3200C16D4/16GX',
            bankName: 'BANK 0',
            size: 17179869184,
            busWidth: 64,
            maxClockSpeed: 2400,
            clockSpeed: 2400,
            voltage: 1.2,
            locator: 'Controller0-ChannelA-DIMM1',
            type: 'DDR4',
            transfersPerClockCycle: 2,
            bandwidth: 38400000000
        },
        {
            manufacturer: 'Kingston',
            model: 'KF3200C16D4/16GX',
            bankName: 'BANK 1',
            size: 17179869184,
            busWidth: 64,
            maxClockSpeed: 2400,
            clockSpeed: 2400,
            voltage: 1.2,
            locator: 'Controller0-ChannelB-DIMM1',
            type: 'DDR4',
            transfersPerClockCycle: 2,
            bandwidth: 38400000000
        }
    ],
    bandwidth: 76800000000
}
Network Interfaces: [
    {
        name: 'Loopback Pseudo-Interface 1',
        addresses: [ [Object], [Object] ],
        status: { operational: 'unknown', admin: true, cable: false },
        physical: true
    },
    {
        name: 'Ethernet',
        addresses: [],
        status: { operational: 'up', admin: true, cable: true },
        physical: true,
        speed: { bits: 1000000000, bytes: 125000000 },
        utilization: {
        receive: 0.000003003690036900369,
        transmit: 4.723247232472324e-7
        }
    }
]
OS Info: {
    name: 'Windows',
    version: '10.0.26100',
    architecture: 'x64',
    machine: 'x86_64',
    platform: 'win32',
    bits: 64,
    hostname: 'my-pc',
    uptime: 2025-07-25T09:38:27.126Z
}
Temperatures: {
    cpu: 45.2,
    gpu: 60.8,
}

Considerations

GPU Readings

For more detailed information on GPUs it is recommended to install the nvidia-smi tool. For GPU core count and flops calculations install nvidia-settings e.g. using apt install -y nvidia-settings.