{"id":30178701,"url":"https://github.com/lupcode/node-lup-system","last_synced_at":"2026-01-20T17:36:30.853Z","repository":{"id":307095828,"uuid":"1027696644","full_name":"LupCode/node-lup-system","owner":"LupCode","description":"NodeJS library to retrieve system information and utilization.","archived":false,"fork":false,"pushed_at":"2025-09-02T10:36:07.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T10:45:48.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LupCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-28T11:53:22.000Z","updated_at":"2025-09-02T10:36:10.000Z","dependencies_parsed_at":"2025-07-29T13:08:22.679Z","dependency_job_id":null,"html_url":"https://github.com/LupCode/node-lup-system","commit_stats":null,"previous_names":["lupcode/node-lup-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LupCode/node-lup-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LupCode%2Fnode-lup-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LupCode%2Fnode-lup-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LupCode%2Fnode-lup-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LupCode%2Fnode-lup-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LupCode","download_url":"https://codeload.github.com/LupCode/node-lup-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LupCode%2Fnode-lup-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273901185,"owners_count":25187912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-12T05:40:51.363Z","updated_at":"2026-01-20T17:36:30.847Z","avatar_url":"https://github.com/LupCode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub package.json version](https://img.shields.io/github/package-json/v/LupCode/node-lup-system)\n![npm bundle size](https://img.shields.io/bundlephobia/min/lup-system)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/LupCode/node-lup-system/on-push.yml?branch=main)\n![NPM](https://img.shields.io/npm/l/lup-system)\n\n# lup-system\nNode module that provides utilities for interacting with the operating system and the hardware of the machine. \n\n## Example\n\nJavaScript:\n```javascript\nconst lupSystem = require('lup-system');\n\nlupSystem.getCpuInfo().then(cpuInfo =\u003e console.log(\"CPU Info: \" + cpuInfo));\nlupSystem.getDrives().then(drives =\u003e console.log(\"Drives: \" + drives)); // Array of drive objects\nlupSystem.getGPUs().then(gpus =\u003e console.log(\"GPU Info: \" + gpus));\nlupSystem.getMemoryInfo().then(memoryInfo =\u003e console.log(\"Memory Info: \" + memoryInfo));\nlupSystem.getNetworkInterfaces().then(interfaces =\u003e console.log(\"Network Interfaces: \" + interfaces));\nlupSystem.getOSInfo().then(osInfo =\u003e console.log(\"OS Info: \" + osInfo));\nlupSystem.getTemperatures().then(temps =\u003e console.log(\"Temperatures: \" + temps));\n```\n\nTypeScript:\n```typescript\nimport lupSystem from 'lup-system';\n\n(async () =\u003e {\n    console.log(\"CPU Info: \", await lupSystem.getCpuInfo());\n    console.log(\"Drives: \", await lupSystem.getDrives()); // Array of drive objects\n    console.log(\"GPU Info: \", await lupSystem.getGPUs());\n    console.log(\"Memory Info: \", await lupSystem.getMemoryInfo());\n    console.log(\"Network Interfaces: \", await lupSystem.getNetworkInterfaces());\n    console.log(\"OS Info: \", await lupSystem.getOSInfo());\n    console.log(\"Temperatures: \", await lupSystem.getTemperatures());\n})();\n```\n\nOutput:\n```\nCPU Info: {\n    architecture: 'x64',\n    coreCount: 12,\n    endian: 'LE',\n    name: '11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz',\n    speed: 3912,\n    utilization: {\n        overall: 0.20021299254526093,\n        cores: [\n            0.20253164556962025,\n            0.19230769230769232,\n            0.6025641025641025,\n            0,\n            0.3974358974358974,\n            0.20253164556962025,\n            0,\n            0,\n            0.20253164556962025,\n            0,\n            0.19480519480519481,\n            0.4050632911392405\n        ]\n    }\n}\nDrives: [\n    {\n        filesystem: 'C:',\n        mount: 'C:',\n        type: 'ntfs',\n        total: 1999519543296,\n        utilization: {\n            free: 470568960000,\n            used: 1528950583296,\n            percentage: 0.7646589844156682\n        }\n    },\n    {\n        filesystem: 'D:',\n        mount: 'D:',\n        type: 'ntfs',\n        total: 1000203087872,\n        utilization: {\n            free: 917100240896,\n            used: 83102846976,\n            percentage: 0.08308597322250519\n        }\n    }\n]\nGPU Info: [\n    {\n        name: 'NVIDIA GeForce RTX 3060 Ti',\n        status: 'ok',\n        id: 'PCI\\\\VEN_10DE\u0026DEV_2489\u0026SUBSYS_884F1043\u0026REV_A1\\\\4\u00262130FF93\u00260\u00260008',\n        processor: 'NVIDIA GeForce RTX 3060 Ti',\n        memory: 8589934592,\n        driverDate: '14.05.2025 02:00:00',\n        driverVersion: '32.0.15.7652',\n        displayAttached: true,\n        displayActive: true,\n        utilization: {\n            fanSpeed: 0.56,\n            processing: 0.01,\n            memory: 0,\n            temperature: 51,\n            powerDraw: 46.65\n        }\n    }\n]\nMemory Info: {\n    size: 34249633792,\n    utilization: {\n        used: 22643089408,\n        free: 11606544384,\n        percentage: 0.6611191683249166\n    },\n    devices: [\n        {\n            manufacturer: 'Kingston',\n            model: 'KF3200C16D4/16GX',\n            bankName: 'BANK 0',\n            size: 17179869184,\n            busWidth: 64,\n            maxClockSpeed: 2400,\n            clockSpeed: 2400,\n            voltage: 1.2,\n            locator: 'Controller0-ChannelA-DIMM1',\n            type: 'DDR4',\n            transfersPerClockCycle: 2,\n            bandwidth: 38400000000\n        },\n        {\n            manufacturer: 'Kingston',\n            model: 'KF3200C16D4/16GX',\n            bankName: 'BANK 1',\n            size: 17179869184,\n            busWidth: 64,\n            maxClockSpeed: 2400,\n            clockSpeed: 2400,\n            voltage: 1.2,\n            locator: 'Controller0-ChannelB-DIMM1',\n            type: 'DDR4',\n            transfersPerClockCycle: 2,\n            bandwidth: 38400000000\n        }\n    ],\n    bandwidth: 76800000000\n}\nNetwork Interfaces: [\n    {\n        name: 'Loopback Pseudo-Interface 1',\n        addresses: [ [Object], [Object] ],\n        status: { operational: 'unknown', admin: true, cable: false },\n        physical: true\n    },\n    {\n        name: 'Ethernet',\n        addresses: [],\n        status: { operational: 'up', admin: true, cable: true },\n        physical: true,\n        speed: { bits: 1000000000, bytes: 125000000 },\n        utilization: {\n        receive: 0.000003003690036900369,\n        transmit: 4.723247232472324e-7\n        }\n    }\n]\nOS Info: {\n    name: 'Windows',\n    version: '10.0.26100',\n    architecture: 'x64',\n    machine: 'x86_64',\n    platform: 'win32',\n    bits: 64,\n    hostname: 'my-pc',\n    uptime: 2025-07-25T09:38:27.126Z\n}\nTemperatures: {\n    cpu: 45.2,\n    gpu: 60.8,\n}\n```\n\n\n## Considerations\n\n### GPU Readings\nFor more detailed information on GPUs it is recommended to \ninstall the [nvidia-smi](https://developer.nvidia.com/nvidia-system-management-interface) tool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupcode%2Fnode-lup-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupcode%2Fnode-lup-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupcode%2Fnode-lup-system/lists"}