{"id":17502634,"url":"https://github.com/ryouze/applefetch","last_synced_at":"2025-10-17T20:31:37.610Z","repository":{"id":258344949,"uuid":"858719025","full_name":"ryouze/applefetch","owner":"ryouze","description":"macOS CLI system information tool, inspired by neofetch.","archived":false,"fork":false,"pushed_at":"2025-01-09T17:39:03.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T18:41:06.512Z","etag":null,"topics":["cmake","cmake-fetchcontent","command-line-tool","cpp","macos","neofetch","system-information"],"latest_commit_sha":null,"homepage":"https://ryouze.net/","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/ryouze.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":"2024-09-17T12:17:57.000Z","updated_at":"2025-01-09T17:39:07.000Z","dependencies_parsed_at":"2025-01-02T13:32:49.172Z","dependency_job_id":"e25dc6d7-5c47-47fb-8789-df8c9cd863d4","html_url":"https://github.com/ryouze/applefetch","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"110ce3dbcdb645391ba09c5b5e301328b03d8b89"},"previous_names":["ryouze/applefetch"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryouze%2Fapplefetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryouze%2Fapplefetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryouze%2Fapplefetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryouze%2Fapplefetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryouze","download_url":"https://codeload.github.com/ryouze/applefetch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236865471,"owners_count":19216945,"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":["cmake","cmake-fetchcontent","command-line-tool","cpp","macos","neofetch","system-information"],"created_at":"2024-10-19T21:14:49.066Z","updated_at":"2025-10-17T20:31:32.274Z","avatar_url":"https://github.com/ryouze.png","language":"C++","readme":"# applefetch\n\n[![CI](https://github.com/ryouze/applefetch/actions/workflows/ci.yml/badge.svg)](https://github.com/ryouze/applefetch/actions/workflows/ci.yml)\n[![Release](https://github.com/ryouze/applefetch/actions/workflows/release.yml/badge.svg)](https://github.com/ryouze/applefetch/actions/workflows/release.yml)\n![Release version](https://img.shields.io/github/v/release/ryouze/applefetch)\n\napplefetch is a macOS CLI system information tool, inspired by [neofetch](https://github.com/dylanaraps/neofetch).\n\n\n## Motivation\n\nI wanted to create a neofetch clone for macOS that uses native C++ code and, where possible, system calls, rather than relying on the shell.\n\nIt looks like this:\n\n```\nOS: macOS 14.6.1 (arm64)\nModel: MacBookPro18,3\nUptime: 17d 23h 52m\nPackages: 138 (brew)\nShell: /bin/zsh\nDisplay: 1512x982 @ 120 Hz\nCPU: Apple M1 Pro\nMemory: 10.16GiB / 16.00GiB (63%)\n```\n\nPlease note that more advanced projects (e.g., [fastfetch](https://github.com/fastfetch-cli/fastfetch)) are already available, this is merely a learning exercise for me.\n\n\n## Features\n\n- Written in modern C++ (C++17).\n- Comprehensive documentation with doxygen-style comments.\n- Automatic third-party dependency management using CMake's [FetchContent](https://www.foonathan.net/2022/06/cmake-fetchcontent/).\n- No missing STL headers thanks to [header-warden](https://github.com/ryouze/header-warden).\n\n\n## Tested Systems\n\nThis project has been tested on the following systems:\n\n- macOS 14.6 (Sonoma)\n\nAutomated testing is also performed on the latest version of macOS using GitHub Actions.\n\n\n## Pre-built Binaries\n\nPre-built binaries are available for macOS (ARM64). You can download the latest version from the [Releases](../../releases) page.\n\nTo remove macOS quarantine, use the following commands:\n\n```sh\nxattr -d com.apple.quarantine applefetch-macos-arm64\nchmod +x applefetch-macos-arm64\n```\n\n\n## Requirements\n\nTo build and run this project, you'll need:\n\n- C++17 or higher\n- CMake\n\n\n## Build\n\nFollow these steps to build the project:\n\n1. **Clone the repository**:\n\n    ```sh\n    git clone https://github.com/ryouze/applefetch.git\n    ```\n\n2. **Generate the build system**:\n\n    ```sh\n    cd applefetch\n    mkdir build \u0026\u0026 cd build\n    cmake ..\n    ```\n\n    Optionally, you can disable compile warnings by setting `ENABLE_COMPILE_FLAGS` to `OFF`:\n\n    ```sh\n    cmake .. -DENABLE_COMPILE_FLAGS=OFF\n    ```\n\n3. **Compile the project**:\n\n    To compile the project, use the following command:\n\n    ```sh\n    cmake --build . --parallel\n    ```\n\nAfter successful compilation, you can run the program using `./applefetch`. However, it is highly recommended to install the program, so that it can be run from any directory. Refer to the [Install](#install) section below.\n\n\u003e [!TIP]\n\u003e The mode is set to `Release` by default. To build in `Debug` mode, use `cmake .. -DCMAKE_BUILD_TYPE=Debug`.\n\n\n## Install\n\nIf not already built, follow the steps in the [Build](#build) section and ensure that you are in the `build` directory.\n\nTo install the program, use the following command:\n\n```sh\nsudo cmake --install .\n```\n\nThis will install the program to `/usr/local/bin`. You can then run the program from any directory using `applefetch`.\n\n\n## Usage\n\nTo run the program, use the following command:\n\n```sh\napplefetch\n```\n\nOn startup, the program will display system information akin to the following:\n\n```\nOS: macOS 14.6.1 (arm64)\nModel: MacBookPro18,3\nUptime: 17d 23h 52m\nPackages: 138 (brew)\nShell: /bin/zsh\nDisplay: 1512x982 @ 120 Hz\nCPU: Apple M1 Pro\nMemory: 10.16GiB / 16.00GiB (63%)\n```\n\nIf the `NO_COLOR` environment variable is set, the program will not use any color codes in the output.\n\n```sh\nNO_COLOR=1 applefetch\n```\n\n\n## Flags\n\n```sh\n[~] $ applefetch --help\nUsage: applefetch [-h] [-v]\n\nCLI system information tool for macOS, inspired by neofetch.\n\nOptional arguments:\n  -h, --help     prints help message and exits\n  -v, --version  prints version and exits\n```\n\n\n## Testing\n\nTests are included in the project but are not built by default.\n\nTo enable and build the tests manually, run the following commands from the `build` directory:\n\n```sh\ncmake .. -DBUILD_TESTS=ON\ncmake --build . --parallel\nctest --output-on-failure\n```\n\n\n## Credits\n\n- [fmt](https://github.com/fmtlib/fmt)\n\n\n## Contributing\n\nAll contributions are welcome.\n\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryouze%2Fapplefetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryouze%2Fapplefetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryouze%2Fapplefetch/lists"}