swiftlang/swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 26 minutes ago
Added to GitGenius on September 12th, 2026
Created on November 9th, 2015
Open Issues & Pull Requests: 739 (+0)
GitHub issues: Enabled
Number of forks: 1,189
Total Stargazers: 5,437 (+0)
Total Subscribers: 296 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 28.3 hours
Mean response time: 138.4 days
90th percentile: 336.5 days
Tracked items: 122

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 95% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 10 hours, while "Foundation" waits about 2 days. Only 4% of issues opened in the past year have been closed. Three people close 60% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 79
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 890 days
Stale 30+ days: 71
Stale 90+ days: 67

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (36)
  • Foundation (28)
  • Windows (9)
  • Linux (7)
  • Crash (3)
  • Improvement (3)
  • RunTimeCrash (2)
  • Standard Library (2)

Detailed Description

Swift-corelibs-foundation is a compatibility implementation of the Foundation framework that provides core utilities, internationalization, and OS independence for Swift on non-Apple platforms.

The Foundation framework defines a base layer of functionality required for most applications, offering primitive classes and introducing paradigms for functionality not provided by the Swift standard library. Swift-corelibs-foundation addresses the problem of making Foundation APIs available on platforms without an Objective-C runtime. The project is composed of multiple components: Swift Foundation, a shared library written in Swift that provides core types like URL, Data, JSONDecoder, Locale, and Calendar through FoundationEssentials and FoundationInternationalization modules; Swift Corelibs Foundation, which adds compatibility APIs for pre-Swift Foundation code including NSObject, class-based data structures, and NSKeyedArchiver; and Foundation ICU, a private library wrapping ICU for internationalization support. On Apple platforms, applications should use the native Foundation that comes with the operating system rather than this implementation.

Developers should choose this tool when building Swift applications for non-Darwin platforms that require Foundation APIs. It is suited for projects targeting Linux and other non-Apple systems where the native Foundation framework is unavailable. The implementation provides best-effort compatibility with the original Objective-C Foundation, though as a distinct implementation written in Swift and C rather than Objective-C, compatibility is not guaranteed to be complete. The project depends on a limited set of packages, primarily swift-collections and swift-syntax, keeping external dependencies minimal.

The project maintains active development across multiple interconnected components with ongoing refinement of API compatibility and platform support. Work spans both the newer Swift-based implementations and the compatibility layer for legacy code patterns. The codebase receives regular updates to align with changes in the Swift toolchain and to improve consistency with Darwin platform behavior, particularly in internationalization through ICU integration.