{"id":23134869,"url":"https://github.com/luckman212/apfs-free","last_synced_at":"2026-01-31T18:01:43.757Z","repository":{"id":265822671,"uuid":"864112594","full_name":"luckman212/apfs-free","owner":"luckman212","description":"Report real free space on APFS volume","archived":false,"fork":false,"pushed_at":"2024-09-27T14:18:55.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T04:04:12.070Z","etag":null,"topics":["apfs","macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckman212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-27T14:12:09.000Z","updated_at":"2025-01-08T18:36:20.000Z","dependencies_parsed_at":"2024-12-01T04:47:05.631Z","dependency_job_id":"58f17835-d286-4de7-a940-e899b100780c","html_url":"https://github.com/luckman212/apfs-free","commit_stats":null,"previous_names":["luckman212/apfs-free"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Fapfs-free","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Fapfs-free/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Fapfs-free/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Fapfs-free/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckman212","download_url":"https://codeload.github.com/luckman212/apfs-free/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238006180,"owners_count":19400867,"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":["apfs","macos","swift"],"created_at":"2024-12-17T12:13:33.837Z","updated_at":"2026-01-31T18:01:38.731Z","avatar_url":"https://github.com/luckman212.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apfs-free\n\nOn modern macOS systems where the disks are APFS-formatted, legacy tools like `df` do not correctly report free disk space.\n\nThis is a small POC commandline tool that reports free disk space on the boot volume in JSON format, in both bytes and as a percentage.\n\nThe program uses the [`volumeAvailableCapacityForImportantUsage`][1] API.\n\nExample (illustrates that `df` reports only 6% free, yet there is actually 22%):\n\n```bash\n$ df -h /dev/disk3s5\nFilesystem      Size    Used   Avail Capacity iused ifree %iused  Mounted on\n/dev/disk3s5   460Gi   413Gi    27Gi    94%    3.4M  281M    1%   /System/Volumes/Data\n```\n\n```bash\n$ apfs_free\n{\n    \"availableBytes\": 109467447839,\n    \"availablePercent\": 22\n}\n```\n\n[1]: https://developer.apple.com/documentation/foundation/urlresourcekey/checking_volume_storage_capacity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckman212%2Fapfs-free","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckman212%2Fapfs-free","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckman212%2Fapfs-free/lists"}