{"id":13489156,"url":"https://github.com/beltex/dshb","last_synced_at":"2025-03-28T04:30:55.344Z","repository":{"id":20791901,"uuid":"24077079","full_name":"beltex/dshb","owner":"beltex","description":"macOS system monitor","archived":false,"fork":false,"pushed_at":"2022-02-13T18:05:41.000Z","size":490,"stargazers_count":473,"open_issues_count":24,"forks_count":34,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-31T02:33:31.718Z","etag":null,"topics":["cli","monitoring","swift"],"latest_commit_sha":null,"homepage":"https://beltex.github.io/dshb","language":"Swift","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/beltex.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}},"created_at":"2014-09-15T23:00:44.000Z","updated_at":"2024-10-28T02:10:15.000Z","dependencies_parsed_at":"2022-07-23T15:16:25.670Z","dependency_job_id":null,"html_url":"https://github.com/beltex/dshb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beltex%2Fdshb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beltex%2Fdshb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beltex%2Fdshb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beltex%2Fdshb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beltex","download_url":"https://codeload.github.com/beltex/dshb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245970341,"owners_count":20702392,"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":["cli","monitoring","swift"],"created_at":"2024-07-31T19:00:18.233Z","updated_at":"2025-03-28T04:30:55.047Z","avatar_url":"https://github.com/beltex.png","language":"Swift","readme":"dshb\n====\n\nA macOS system monitor in Swift, inspired by\n\u003ca href=\"https://en.wikipedia.org/wiki/Top_(software)\"\u003etop\u003c/a\u003e \u0026\n[htop](https://github.com/hishamhm/htop). Displays live readings of system CPU \u0026\nmemory usage, machine temperature sensors, fan speeds, battery information and\nother miscellaneous system statistics. The ncurses based TUI (text-based user\ninterface) uses color coating to imply status and is fully resizable. Stats are\nupdated at one second intervals while still maintaining low overhead (the\n\u003ca href=\"https://en.wikipedia.org/wiki/Observer_effect_(physics)\"\u003eobserver effect\u003c/a\u003e\nis inescapable in this case sadly).\n\n![alt text](docs/dshb.png)\n\n\n### Why?\n\n- Exploration of Swift. In particular, systems programming and interfacing with\n  low-level C APIs\n\n\n### Homebrew :beer:\n\n```sh\n$ brew install dshb\n```\n\n\n### Requirements\n\n- [Xcode 8.3.3 (Swift 3.1)](https://developer.apple.com/xcode/downloads/)\n- macOS 10.9+\n    - This is due to Swift  \n\n\n### Clone\n\nMake sure to use the recursive option on clone to auto init all submodules.\n\n```sh\ngit clone --recursive https://github.com/beltex/dshb\n```\n\nIncase you have already cloned the repository, run the following inside the\nproject directory.\n\n```sh\ngit submodule update --init\n```\n\n\n### Install\n\nThis will build dshb from source and place the binary and manual page in your\npath.\n\n```sh\nmake install\n```\n\n\n### Stack\n\n- [ncurses](https://www.gnu.org/software/ncurses/ncurses.html)\n    - For drawing to the terminal (tested with version 5.4 - default on macOS)\n- [SystemKit](https://github.com/beltex/SystemKit)\n    - For almost all statistics\n- [SMCKit](https://github.com/beltex/SMCKit)\n    - For temperature \u0026 fan statistics\n- [CommandLine](https://github.com/jatoben/CommandLine)\n    - For the CLI\n- [ronn](https://github.com/rtomayko/ronn)\n    - For generating the manual page\n\nAll Git submodules are built part of the project as simply source files, not\nframeworks (which are essentially dynamic libraries). This is because currently,\nthe Swift runtime dynamic libraries must be packaged with the application in\nquestion. In the case of **dshb**, a single binary is generated which has the\nruntime statically linked. Thus, frameworks, which expect to find the libraries\ninside the application bundle (`.app`), cannot _\"see\"_ them.\n\nFor more see:\n\n- [SwiftInFlux/Runtime Dynamic Libraries](https://github.com/ksm/SwiftInFlux#runtime-dynamic-libraries)\n- [SwiftInFlux/Static Libraries](https://github.com/ksm/SwiftInFlux#static-libraries)\n\n\n### References\n\n- [top](http://www.opensource.apple.com/source/top/)\n- [NCURSES Programming HOWTO](http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/index.html)\n- [Programmer's Guide to ncurses](http://www.c-for-dummies.com/ncurses/)\n- [Writing Programs with NCURSES](http://invisible-island.net/ncurses/ncurses-intro.html)\n\n\n### License\n\nThis project is under the **MIT License**.\n\n\n##### _P.S._\n\nWorking on this always brought a smile to my face. I hope it brings a smile to\nyours too.\n[Enjoy](http://hypem.com/track/23j7h/First+Aid+Kit+-+My+Silver+Lining) :)\n \n","funding_links":[],"categories":["Swift","Demo Apps / 示例程序","Demo Apps"],"sub_categories":["OS X"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeltex%2Fdshb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeltex%2Fdshb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeltex%2Fdshb/lists"}