# swiftlang/swift-foundation

The Foundation project

Repository: https://github.com/swiftlang/swift-foundation
Canonical: https://ross.abutalabs.com/products/swift-foundation
Language: Swift
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T09:55:56+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 93, longevity 94
- inputs: {"age_days": 1322, "days_push": 7, "days_rel": 46, "gap_med": 0.0, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2680, forks 260 (observed 2026-08-28T04:07:09.991958+00:00)

## What it is
The Swift Foundation project, providing the core implementation of key Foundation API types such as URL, Data, JSONDecoder, Locale, and Calendar for all Swift platforms. It ships with the Swift toolchain and is not intended for direct use as a package dependency in other projects.

## Use cases
- use Foundation types like URL and Data on Linux
- parse and encode JSON in Swift
- handle dates, calendars, and locales portably
- access the file system from Swift
- localize and internationalize a Swift app

## When to choose
- you are contributing to or studying the Swift Foundation implementation
- you need Foundation API on non-Apple platforms via the Swift toolchain

## When to avoid
- you want to add Foundation as a package dependency in a shipping app - use the toolchain or OS-provided copy instead
- you are on Apple platforms, where the OS-provided Foundation should be used

## Facets
- artifact type: library
- maturity: active
- function: internationalization, file-system, serialization, date-time, json
- domain: developer-tools, programming-languages, cross-platform
- platform: windows, cross-platform
- tags: foundation, swift-toolchain, standard-library, apple, utility-types, swift, macos, ios, linux

## Member repositories
- swiftlang/swift-foundation (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.991958+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:17:56.852004+00:00, confidence not recorded.
  - readme: https://github.com/swiftlang/swift-foundation (fetched 2026-08-28T04:07:09.991958+00:00, sha 66e45e8d7c3f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
