{"id":31892250,"url":"https://github.com/compnerd/swift-platform-core","last_synced_at":"2025-10-13T08:47:28.359Z","repository":{"id":306661051,"uuid":"1026451594","full_name":"compnerd/swift-platform-core","owner":"compnerd","description":"Currency types for cross-platform support in Swift","archived":false,"fork":false,"pushed_at":"2025-10-07T05:04:33.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T07:08:09.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compnerd.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":"2025-07-25T23:16:16.000Z","updated_at":"2025-10-07T05:04:35.000Z","dependencies_parsed_at":"2025-07-27T00:08:19.915Z","dependency_job_id":"f9ee97ed-8c19-4f16-9774-88d36feb0f35","html_url":"https://github.com/compnerd/swift-platform-core","commit_stats":null,"previous_names":["compnerd/swift-platform-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/compnerd/swift-platform-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-platform-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-platform-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-platform-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-platform-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compnerd","download_url":"https://codeload.github.com/compnerd/swift-platform-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fswift-platform-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014329,"owners_count":26085492,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2025-10-13T08:47:26.718Z","updated_at":"2025-10-13T08:47:28.352Z","avatar_url":"https://github.com/compnerd.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-platform-core\n\nA Swift library providing access to low-level system APIs across Windows, macOS, and Linux platforms.\n\n## Features\n\n- Type-safe wrappers around system APIs\n- Cross-platform system information\n- Platform-specific error handling\n- Modular design with separate Windows and POSIX modules\n\n## Usage\n\n### Cross-Platform System Information\n```swift\nimport POSIXCore      // macOS, Linux\nimport WindowsCore    // Windows\n\nlet pageSize = SystemInfo.PageSize\n```\n\n### Error Handling\n```swift\n// POSIX platforms\nguard ... else {\n  throw POSIXError() // implicitly captures `errno`\n}\n\n// Windows platform  \nguard ... else {\n  throw WindowsError() // implicitly captures 'GetlastError()`\n}\n```\n\n## Requirements\n\n- Swift 6.0+\n- Platforms:\n  - Windows 10+\n  - macOS 10.15+\n  - Linux\n\n## Modules\n\n- **POSIXCore** - macOS and Linux support\n  - POSIX API constants\n  - POSIX error wrapper  \n\n- **WindowsCore** - Windows support\n  - Win32 API constants\n  - Windows error wrapper\n  - NT API function accessors\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fswift-platform-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompnerd%2Fswift-platform-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fswift-platform-core/lists"}