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

macos-temperature-sensor

v1.0.4

Published

Mac OS Temperature Sensor library for [node.js][nodejs-url]

Readme

macos-temperature-sensor

Mac OS Temperature Sensor library for node.js

NPM Version NPM Downloads Git Issues MIT license

Quick Start

This small library captures CPU temperature on macOS (Apple silicon processors), all values are in degree Celsius. This library is intended to be used server side (not within a browser) and is designed to work on ARM based systems.

This library is a replacement for our old osx-temperature-sensor package (which was designed to work on intel based machines).

Installation

$ npm install macos-temperature-sensor

Using this library with Deno:

Make sure, that your deno.json has set the following:

{
  ...
  "nodeModulesDir": "auto",
  ...
}

Install the package with

$ deno install --allow-scripts=npm:macos-temperature-sensor
$ deno add npm:macos-temperature-sensor

Usage

Here a small example how to use this library index.js:

const macosTemp = require('macos-temperature-sensor');v

let temperature = macosTemp.temperature();
console.log('CPU temperature:');
console.log(temperature);

Then run it with node index.js

In Deno it would be index.ts:

import macosTemp from 'macos-temperature-sensor';

let temperature = macosTemp.temperature();
console.log('CPU temperature:');
console.log(temperature);

Then run it with deno run -A index.ts

Sample output:

{
  cpu: 45.832000732421875,
  soc: 45.34083271026611,
  gpu: 45.42668151855469,
  cpuDieTemps: [
    45.832000732421875, 45.121612548828125,
     45.21040344238281, 45.121612548828125,
    45.121612548828125,  45.21040344238281,
    ...
  ],
  probeGroupsTemps: [
    45.56561279296875,
    45.56561279296875,
    45.476806640625,
    ...
  ],
  gpuDieTemps: [
    40.06523132324219,  34.63139343261719,
    45.02667236328125, 44.929351806640625,
    44.70109558105469,  41.27174377441406,
    ...
  ]
}

News and Changes

Latest Activity

| Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | | 1.0.4 | 24.12.2025 | fix docs | | 1.0.3 | 22.12.2025 | doc improvements | | 1.0.2 | 21.12.2025 | added TS typings, doc improvements | | 1.0.1 | 21.12.2025 | fix lib index reference | | 1.0.0 | 21.12.2025 | initial release |

If you have comments, suggestions & reports, please feel free to contact me!

This library is used by one of my other libraries systeminformation, also available via github and npm

Reference

Function Reference

| Function | Comments | | --------------- | -------- | | macosTemp.version() | library version (no callback/promise) | | macosTemp.temperature() | CPU temperature (if sensors is installed) in Celsius | | - cpu | cpu max temperature | | - soc | soc avg temperature | | - gpu | max gpu temperature | | - cpuDieTemps | array of all cpu die temperature points | | - probeGroupsTemps | array of all probe groups temperature points | | - gpuDieTemps | array of all gpu die temperature points |

This library is supposed to only work on macOS, apple silicon processors

Known Issues

I am happy to discuss any comments and suggestions. Please feel free to contact me if you see any possibility of improvement!

Comments

If you have ideas or comments, please do not hesitate to contact me.

Happy monitoring!

Sincerely,

Sebastian Hildebrandt, +innovations

Credits

Written by Sebastian Hildebrandt sebhildebrandt

Copyright Information

Apple and macOS are registered trademarks of Apple Inc., Node.js is a trademark of OpenJS Foundation. All other trademarks are the property of their respective owners.

License MIT license

The MIT License (MIT)

Copyright © 2025 Sebastian Hildebrandt, +innovations.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Further details see LICENSE file.