{"id":50759010,"url":"https://github.com/baogutang/n1ko-state","last_synced_at":"2026-06-17T14:00:57.461Z","repository":{"id":363977560,"uuid":"1265736496","full_name":"baogutang/N1KO-STATE","owner":"baogutang","description":"Native macOS menu bar system monitor — CPU, GPU, memory, temps, fans. Swift, low overhead, AI vibecoding. 轻量原生 macOS 菜单栏监控。","archived":false,"fork":false,"pushed_at":"2026-06-15T14:19:38.000Z","size":1082,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-16T13:27:43.964Z","etag":null,"topics":["ai-assisted","apple-silicon","cpu-monitor","fan-control","gpu-monitor","macos","memory-monitor","menu-bar","menubar-app","native-app","open-source","swift","swiftui","system-monitor","temperature-monitor","vibecoding"],"latest_commit_sha":null,"homepage":"https://github.com/baogutang/N1KO-STATE/releases","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baogutang.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T03:22:51.000Z","updated_at":"2026-06-15T14:20:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/baogutang/N1KO-STATE","commit_stats":null,"previous_names":["baogutang/n1ko-state"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/baogutang/N1KO-STATE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baogutang%2FN1KO-STATE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baogutang%2FN1KO-STATE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baogutang%2FN1KO-STATE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baogutang%2FN1KO-STATE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baogutang","download_url":"https://codeload.github.com/baogutang/N1KO-STATE/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baogutang%2FN1KO-STATE/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34451342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["ai-assisted","apple-silicon","cpu-monitor","fan-control","gpu-monitor","macos","memory-monitor","menu-bar","menubar-app","native-app","open-source","swift","swiftui","system-monitor","temperature-monitor","vibecoding"],"created_at":"2026-06-11T08:01:52.753Z","updated_at":"2026-06-17T14:00:57.412Z","avatar_url":"https://github.com/baogutang.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/baogutang/N1KO-STATE\"\u003e\n    \u003cimg src=\"docs/assets/readme-banner.jpg\" alt=\"N1KO-STATE — Native macOS System Monitor\" width=\"100%\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA lightweight, native macOS menu bar system monitor.\u003c/strong\u003e\u003cbr/\u003e\n  \u003cstrong\u003e轻量原生 macOS 菜单栏系统监控工具。\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003c!-- N1KO API — sponsored callout --\u003e\n\u003ctable align=\"center\" width=\"100%\"\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ctable width=\"720\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n        \u003ctr\u003e\n          \u003ctd align=\"center\" bgcolor=\"#0d1117\" style=\"border: 2px solid #10b981; border-radius: 16px; padding: 28px 24px;\"\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\n              \u003cimg src=\"https://img.shields.io/badge/作者出品-N1KO%20API%20·%20大模型%20API%20中转站-10b981?style=for-the-badge\u0026logo=openapi-initiative\u0026logoColor=white\" alt=\"N1KO API · 大模型 API 中转站\" /\u003e\n            \u003c/a\u003e\n            \u003cbr/\u003e\u003cbr/\u003e\n            \u003cstrong\u003e一个 API Key · 各家最新旗舰大模型 · OpenAI 兼容\u003c/strong\u003e\u003cbr/\u003e\n            \u003csub\u003eOne key · frontier models · OpenAI-compatible relay\u003c/sub\u003e\n            \u003cbr/\u003e\u003cbr/\u003e\n            \u003csub\u003e兼容主流 AI Agent，填入 API Key 即可接入 · Works with leading AI agents out of the box\u003c/sub\u003e\n            \u003cbr/\u003e\u003cbr/\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Claude%20Desktop-✓-D97706?style=flat-square\u0026logo=anthropic\u0026logoColor=white\" alt=\"Claude Desktop\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Claude%20Code-✓-7C3AED?style=flat-square\u0026logo=anthropic\u0026logoColor=white\" alt=\"Claude Code\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Codex-✓-10A981?style=flat-square\u0026logo=openai\u0026logoColor=white\" alt=\"Codex\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/OpenCode-✓-3B82F6?style=flat-square\u0026logo=visualstudiocode\u0026logoColor=white\" alt=\"OpenCode\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Hermes-✓-8B5CF6?style=flat-square\" alt=\"Hermes\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/OpenClaw-✓-F59E0B?style=flat-square\" alt=\"OpenClaw\" /\u003e\u003c/a\u003e\n            \u003cbr/\u003e\n            \u003csub\u003e旗舰模型 · Frontier Models\u003c/sub\u003e\n            \u003cbr/\u003e\u003cbr/\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Claude-claude--fable--5-7C3AED?style=flat-square\u0026logo=anthropic\u0026logoColor=white\" alt=\"claude-fable-5\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/GPT-5.5-10A981?style=flat-square\u0026logo=openai\u0026logoColor=white\" alt=\"GPT-5.5\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Gemini-3.1%20Pro-3B82F6?style=flat-square\u0026logo=google\u0026logoColor=white\" alt=\"Gemini 3.1 Pro\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/Gemini-3.5%20Flash-2563EB?style=flat-square\u0026logo=google\u0026logoColor=white\" alt=\"Gemini 3.5 Flash\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/更多-16%2B-475569?style=flat-square\" alt=\"16+ models\" /\u003e\u003c/a\u003e\n            \u003ca href=\"https://token.baogutang.top\"\u003e\u003cimg src=\"https://img.shields.io/badge/按量计费-灵活省钱-06B6D4?style=flat-square\" alt=\"Pay as you go\" /\u003e\u003c/a\u003e\n            \u003cbr/\u003e\u003cbr/\u003e\n            \u003cp align=\"center\"\u003e\n              \u003ca href=\"https://token.baogutang.top\"\u003e\n                \u003cimg src=\"https://img.shields.io/badge/免费注册_·_立即接入-10b981?style=for-the-badge\u0026logo=rocket\u0026logoColor=white\" alt=\"免费注册 · 立即接入\" /\u003e\n              \u003c/a\u003e\n            \u003c/p\u003e\n            \u003cbr/\u003e\n          \u003c/td\u003e\n        \u003c/tr\u003e\n      \u003c/table\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#english\"\u003eEnglish\u003c/a\u003e · \u003ca href=\"#中文\"\u003e中文\u003c/a\u003e ·\n  \u003ca href=\"https://github.com/baogutang/N1KO-STATE/releases\"\u003eReleases\u003c/a\u003e ·\n  \u003ca href=\"https://token.baogutang.top\"\u003eN1KO API\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/macOS-12%2B-000000?style=flat-square\u0026logo=apple\u0026logoColor=white\" alt=\"macOS 12+\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-5.9-F05138?style=flat-square\u0026logo=swift\u0026logoColor=white\" alt=\"Swift 5.9\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/version-1.0.7-blue?style=flat-square\" alt=\"1.0.7\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-green?style=flat-square\" alt=\"MIT\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/baogutang/N1KO-STATE/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/baogutang/N1KO-STATE?style=social\" alt=\"GitHub stars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/baogutang/N1KO-STATE/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/baogutang/N1KO-STATE?style=social\u0026label=Release\" alt=\"Latest release\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Built%20with-AI%20Vibecoding-8B5CF6?style=for-the-badge\u0026logo=dependabot\u0026logoColor=white\" alt=\"Built with AI Vibecoding\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003e\n    An \u003cstrong\u003eAI vibecoding\u003c/strong\u003e project by \u003ca href=\"https://github.com/baogutang\"\u003ebaogutang\u003c/a\u003e — built with \u003ca href=\"https://token.baogutang.top\"\u003eN1KO API\u003c/a\u003e, product intent meets AI-assisted Swift/macOS development.\u003cbr/\u003e\n    作者 \u003cstrong\u003eAI vibecoding\u003c/strong\u003e 作品，开发过程使用 \u003ca href=\"https://token.baogutang.top\"\u003eN1KO API\u003c/a\u003e 大模型中转。\n  \u003c/sub\u003e\n\u003c/p\u003e\n\n---\n\n## English\n\n**N1KO-STATE** lives quietly in your menu bar and surfaces the metrics that matter — CPU, memory, GPU, network, disk, battery, temperatures, and fans — without turning your Mac into a second monitoring workload.\n\nLeft-click the menu bar icon for the live dashboard. Right-click for settings, about, and quit.\n\n### Highlights\n\n| | Feature | Description |\n|---|---------|-------------|\n| 📊 | **Live metrics** | CPU cores, memory pressure, GPU utilization, disk I/O, network rates, battery health |\n| 🌡️ | **Sensors** | Apple Silicon HID temperatures + Intel SMC fallback; peak temperature tracking |\n| 🌀 | **Fan control** | Manual RPM with one-time admin authorization; temperature-based fan curve |\n| 📈 | **History** | 24-hour trend charts (CPU / memory / network) at 30 s granularity |\n| 🔔 | **Alerts** | Configurable thresholds for CPU, memory, temperature, disk space, battery |\n| 🌍 | **Localization** | English, 简体中文, 繁體中文 |\n| ⚡ | **Low overhead** | Visibility-driven sampling — idle ~0.3–0.5% CPU, ~20 MB footprint |\n\n### Requirements\n\n- macOS **12.0** (Monterey) or later\n- Apple Silicon or Intel Mac\n\n### Install\n\n1. Download **`N1KO-STATE.dmg`** from [Releases](https://github.com/baogutang/N1KO-STATE/releases).\n2. Open the DMG and drag **N1KO-STATE** to **Applications**.\n3. First launch (ad-hoc build): if macOS blocks it, run `xattr -cr /Applications/N1KO-STATE.app` in Terminal. You can also right-click **N1KO-STATE.app** → **Open**.\n\n\u003e Fan control installs a small privileged helper (one administrator password, once). Without it, fan speeds are read-only.\n\n### Build from source\n\n```bash\ngit clone git@github.com:baogutang/N1KO-STATE.git\ncd N1KO-STATE\n\n# Universal release + DMG (for distribution)\n./build_app.sh --dmg\n\n# Fast local build (host arch only)\n./build_app.sh --native\n\n# Smoke test after build\n./build_app.sh --native --smoke\n```\n\nOutput: `build/N1KO-STATE.app` · DMG: `build/N1KO-STATE.dmg`\n\nOptional Developer ID signing:\n\n```bash\nexport SIGN_IDENTITY=\"Developer ID Application: Your Name (TEAMID)\"\nexport NOTARY_PROFILE=\"your-notarytool-profile\"\n./build_app.sh --dmg\n```\n\n### Project layout\n\n```\nSources/N1KOState/     App UI, monitors, settings\nSources/FanHelper/     Privileged fan-control daemon\nSources/SMCKit/        Vendored SMC client (MIT, beltex)\nLocalization/          en · zh-Hans · zh-Hant\nResources/             Info.plist, app icon\nbuild_app.sh           Build, sign, DMG, smoke test\n```\n\n### Credits\n\n- [SMCKit](https://github.com/beltex/SMCKit) — MIT © 2014–2017 beltex (vendored locally)\n\n---\n\n## 中文\n\n**N1KO-STATE** 是一款原生 macOS **菜单栏系统监控**应用。它把 CPU、内存、GPU、网络、磁盘、电池、温度与风扇等关键指标收进菜单栏，自身占用极低，不会「监控你的 Mac 的同时再拖慢 Mac」。\n\n左键点击菜单栏图标打开监控面板；右键打开设置、关于与退出。\n\n### 功能亮点\n\n| | 功能 | 说明 |\n|---|------|------|\n| 📊 | **实时监控** | CPU 核心、内存压力、GPU 利用率、磁盘 I/O、网速、电池健康 |\n| 🌡️ | **传感器** | Apple Silicon HID 温度 + Intel SMC 回退；峰值温度追踪 |\n| 🌀 | **风扇控制** | 手动 RPM（一次性管理员授权）；温度曲线自动调速 |\n| 📈 | **历史趋势** | 24 小时图表（CPU / 内存 / 网络），30 秒粒度 |\n| 🔔 | **告警通知** | CPU、内存、温度、磁盘空间、电量阈值可配置 |\n| 🌍 | **多语言** | English · 简体中文 · 繁體中文 |\n| ⚡ | **低占用** | 可见性驱动采样 — 空闲约 0.3–0.5% CPU、~20 MB 内存 |\n\n### 系统要求\n\n- macOS **12.0**（Monterey）或更高\n- Apple Silicon 或 Intel Mac\n\n### 安装\n\n1. 从 [Releases](https://github.com/baogutang/N1KO-STATE/releases) 下载 **`N1KO-STATE.dmg`**。\n2. 打开 DMG，将 **N1KO-STATE** 拖入「应用程序」。\n3. 首次启动（ad-hoc 签名）若被系统拦截，优先在「终端」执行：`xattr -cr /Applications/N1KO-STATE.app`。也可以右键 **N1KO-STATE.app** → **打开**。\n\n\u003e 风扇控制需安装小型特权 Helper（仅需输入一次管理员密码）。未授权时风扇转速为只读。\n\n### 从源码构建\n\n```bash\ngit clone git@github.com:baogutang/N1KO-STATE.git\ncd N1KO-STATE\n\n# Universal 发布包 + DMG\n./build_app.sh --dmg\n\n# 本机架构快速构建\n./build_app.sh --native\n\n# 构建后冒烟测试\n./build_app.sh --native --smoke\n```\n\n产物：`build/N1KO-STATE.app` · DMG：`build/N1KO-STATE.dmg`\n\n### 致谢\n\n- [SMCKit](https://github.com/beltex/SMCKit) — MIT © 2014–2017 beltex（本地 vendored）\n\n---\n\n## Star History / Star 趋势\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/baogutang/N1KO-STATE/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/baogutang/N1KO-STATE?style=for-the-badge\u0026logo=github\u0026label=Stars\" alt=\"GitHub Stars\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://star-history.com/#baogutang/N1KO-STATE\u0026Date\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/chart?repos=baogutang/N1KO-STATE\u0026type=date\u0026theme=dark\u0026legend=top-left\u0026v=2\" /\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/chart?repos=baogutang/N1KO-STATE\u0026type=date\u0026legend=top-left\u0026v=2\" /\u003e\n      \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/chart?repos=baogutang/N1KO-STATE\u0026type=date\u0026legend=top-left\u0026v=2\" width=\"600\" /\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003e\n    Live star count above · chart may lag a few hours (GitHub image cache) · click chart for interactive view\u003cbr/\u003e\n    上方徽章为实时 Star 数 · 趋势图因 GitHub 缓存可能延迟更新 · 点击图表可查看交互版\u003cbr/\u003e\n    Title avatar may not render in README (GitHub blocks external images inside proxied SVG) · 标题处头像在 README 中可能无法显示\n  \u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eIf this project helps you, a ⭐ on GitHub is appreciated · 若对你有帮助，欢迎点个 Star ⭐\u003c/sub\u003e\n\u003c/p\u003e\n\n---\n\n## ☕ Buy me a coffee / 请作者喝杯咖啡\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eN1KO-STATE\u003c/strong\u003e is free and open source. If it saves you time or keeps your Mac running smoothly,\u003cbr/\u003e\n  consider buying the author a coffee — every bit of support helps keep the project alive.\u003cbr/\u003e\n  \u003cbr/\u003e\n  \u003cstrong\u003eN1KO-STATE\u003c/strong\u003e 免费开源。若它帮你省下了时间、或让你更安心地掌握 Mac 状态，\u003cbr/\u003e\n  欢迎请作者喝杯咖啡，你的支持是我持续维护的动力 ☕\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/alipay-donate.png\" alt=\"Alipay donation QR code for Nikooh\" width=\"240\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eScan with Alipay · 支付宝扫一扫 · Account: Nikooh\u003c/sub\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eN1KO-STATE · v1.0.7 · Made for macOS power users who want clarity without clutter.\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaogutang%2Fn1ko-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaogutang%2Fn1ko-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaogutang%2Fn1ko-state/lists"}