Skip to content
@swift-standards

swift-standards

An organization for Swift packages that encode standards.

Swift Standards

Swift implementations of standards and protocols.

Overview

Rules sit at the heart of every system we build and rely on. When those rules are clear and consistently expressed, everything built atop them becomes simpler, safer, and more predictable. We believe rules deserve to be written in a form that leaves no ambiguity — where structure, constraints, and intent can be validated rather than interpreted.

Swift’s type system makes that possible. By modeling the logic of standards directly in types, authoritative specifications become precise, executable rules that the compiler can enforce. This removes guesswork, prevents invalid states, and forms a foundation developers can trust.

Swift Standards is built on that idea. It offers a growing collection of modular Swift packages that implement international standards exactly as written, each grounded in a shared core. Together, these packages create a reliable, composable base for software that needs to follow the rules — both today and in the systems yet to come.

Technical Approach

Newer standards may depend on older ones. Each standards package depends solely on the swift-standards package. This core package extends Swift’s standard library with foundational functionality common to many specifications.

Every standard defines its own namespace (e.g. RFC_5322) and nests all of its types within that namespace. Standards may extend Swift’s standard library types where appropriate. Cross-type transformations occur only through init extensions or static funcs; methods are reserved for mutation, returning Self, or limited conveniences.

Each standards package implements its authoritative source document as literally as possible. Parsing, validation, and formatting are performed through Swift’s type system, ensuring that invalid structures are rejected at compile time rather than runtime. Packages consider performance, such as by using [UInt8] instead of String where appropriate.

Where multiple specifications govern the same subject matter, a dedicated swift-*-standard package brings them together. This package depends on all relevant standards and exposes a unified, final type to be used as the canonical representation.

Requirements

•	Swift 6.2+
•	macOS 15.0+ / iOS 18.0+ / Linux

License

All packages use the Apache License 2.0.

Popular repositories Loading

  1. swift-domain-standard swift-domain-standard Public

    The Swift standard Domain type.

    Swift 2

  2. swift-standards swift-standards Public

    The Swift library for extensions to the Swift standard library.

    Swift 2

  3. swift-emailaddress-standard swift-emailaddress-standard Public

    The Swift standard EmailAddress type.

    Swift 1

  4. swift-rss-standard swift-rss-standard Public

    The Swift standard RSS types.

    Swift 1

  5. swift-rfc-1035 swift-rfc-1035 Public

    Swift implementation of RFC 1035: Domain Names - Implementation and Specification.

    Swift

  6. swift-rfc-1123 swift-rfc-1123 Public

    Swift implementation of RFC 1123: Requirements for Internet Hosts - Application and Support.

    Swift

Repositories

Showing 10 of 75 repositories
  • swift-standards Public

    The Swift library for extensions to the Swift standard library.

    swift-standards/swift-standards’s past year of commit activity
    Swift 2 Apache-2.0 0 0 2 Updated Dec 20, 2025
  • swift-standards/swift-pdf-standard’s past year of commit activity
    Swift 0 0 0 0 Updated Dec 20, 2025
  • swift-standards/swift-css-standard’s past year of commit activity
    Swift 0 0 0 1 Updated Dec 20, 2025
  • swift-standards/swift-iec-61966’s past year of commit activity
    Swift 0 0 0 0 Updated Dec 20, 2025
  • swift-standards/swift-iso-32000’s past year of commit activity
    Swift 0 Apache-2.0 0 0 1 Updated Dec 20, 2025
  • swift-iso-9899 Public

    Swift implementation of ISO/IEC 9899 (C Standard) math functions

    swift-standards/swift-iso-9899’s past year of commit activity
    Swift 0 Apache-2.0 0 0 1 Updated Dec 20, 2025
  • swift-whatwg-html Public

    Swift implementation of WHATWG HTML Living Standard.

    swift-standards/swift-whatwg-html’s past year of commit activity
    Swift 0 Apache-2.0 0 0 1 Updated Dec 20, 2025
  • swift-rfc-1950 Public

    Swift implementation of RFC 1950 (ZLIB Compressed Data Format)

    swift-standards/swift-rfc-1950’s past year of commit activity
    Swift 0 0 0 1 Updated Dec 20, 2025
  • swift-rfc-5321 Public

    Swift implementation of RFC 5321: Simple Mail Transfer Protocol.

    swift-standards/swift-rfc-5321’s past year of commit activity
    Swift 0 Apache-2.0 0 0 1 Updated Dec 20, 2025
  • swift-cssom Public

    W3C CSSOM implementation in Swift

    swift-standards/swift-cssom’s past year of commit activity
    Swift 0 Apache-2.0 0 0 1 Updated Dec 20, 2025

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Swift

Most used topics

Loading…