{"id":13579361,"url":"https://github.com/jkuri/macstats","last_synced_at":"2025-06-19T13:34:42.913Z","repository":{"id":1238687,"uuid":"42023550","full_name":"jkuri/macstats","owner":"jkuri","description":"Mac OS X Statistics - Battery, Fans, CPU","archived":false,"fork":false,"pushed_at":"2024-03-22T14:18:43.000Z","size":191,"stargazers_count":67,"open_issues_count":8,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-09T14:59:19.035Z","etag":null,"topics":["battery","capacity","cpu","cycle-count","darwin","fan","macos"],"latest_commit_sha":null,"homepage":"","language":"C++","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/jkuri.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}},"created_at":"2015-09-07T00:26:47.000Z","updated_at":"2025-03-17T15:47:20.000Z","dependencies_parsed_at":"2024-07-08T23:26:15.442Z","dependency_job_id":null,"html_url":"https://github.com/jkuri/macstats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jkuri/macstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fmacstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fmacstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fmacstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fmacstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkuri","download_url":"https://codeload.github.com/jkuri/macstats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fmacstats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260759780,"owners_count":23058482,"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","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":["battery","capacity","cpu","cycle-count","darwin","fan","macos"],"created_at":"2024-08-01T15:01:38.678Z","updated_at":"2025-06-19T13:34:37.892Z","avatar_url":"https://github.com/jkuri.png","language":"C++","readme":"# macstats\nnode script for you mac stats\n\n## Example output:\n\n```shell\n--- CPU Stats ---\nCPU Temp:        33.75°C\n\n--- Fans Stats ---\nFan 0 speed:     1996 RPM\nFan 1 speed:     2003 RPM\n\n--- Battery Stats ---\nCharged:         82%\nCapacity:        92%\nCycle Count:     692 (69%)\nMax Cycle Count: 1000\nCurrent Charge:  5189 mAh\nMaximum Charge:  6316 mAh\nDesign Capacity: 6900 mAh\nTime Remaining:  6.54 h\nTemperature:     30.06°C\n```\n\n## Installation\n\n```shell\nnpm i macstats -g\n```\n\n## Run\n\n```shell\nmacstats\n```\n\n## API\n\n````JavaScript\n'use strict';\n\nlet macstats = require('macstats');\n\nconsole.log(macstats);\n````\n\n## API Reference\n\nData                              | Description\n:---------------------------------|:-------------------------------------------------------------------------------------------------------------\nbattery.battery_installed         | Is battery installed, true or false [Boolean]\nbattery.design_capacity           | Battery design capacity in mAh [Int]\nbattery.max_capacity              | Max battery capacity in mAh [Int]\nbattery.current_capacity          | Current battery capacity in mAh [Int]\nbattery.percentage                | Current capacity percentage [Int]\nbattery.design_cycle_count        | Design cycle count [Int]\nbattery.cycle_count               | Current battery cycle count [Int]\nbattery.cycle_percentage          | Cycle count percentage [Int]\nbattery.temperature               | Battery temperature in °C [Float]\nbattery.charged                   | Current battery charge percentage [Int]\nbattery.time_remaining            | Remaining time in minutes, if plugged in time until full, otherwise time until empty [Int]\nbattery.time_remaining_hours      | Time remaining in hours. Use in a combination with *time_remaining_minutes* [Int]\nbattery.time_remaining_minutes    | Time remaining in minutes. Use in a combination with *time_remaining_hours* [Int]\ncpu.temp                          | CPU Temperature in °C [Float]\nfan.num                           | Total number of fans [Int]\nfan.fans                          | Array of Objects (properties: id [Int], rpm [Int]), example: [ { id: 0, rpm: 2007 }, { id: 1, rpm: 1999 } ] }\n\n## Author\n\n[Jan Kuri](http://www.jankuri.com)\n\n## Licence\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n## Thanks\n\nThanks [Massimiliano Marcon](https://github.com/mmarcon) for SMC C++ code in v8.\n","funding_links":[],"categories":["\u003ca name=\"cpp\"\u003e\u003c/a\u003eC++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkuri%2Fmacstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkuri%2Fmacstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkuri%2Fmacstats/lists"}