# swiftsocket/SwiftSocket

The easy way to use sockets on Apple platforms

Repository: https://github.com/swiftsocket/SwiftSocket
Canonical: https://ross.abutalabs.com/products/swiftsocket
Language: Swift
License: BSD-3-Clause
License Family: permissive
Topics: socket, swiftsocket, swift
Last push: 2023-12-12T12:10:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4395, "days_push": 995, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1692, forks 404 (observed 2026-08-28T04:05:22.753679+00:00)

## What it is
SwiftSocket is a Swift library providing a simple interface for TCP and UDP socket connections on Apple platforms, supporting both client and server usage. It is distributed via CocoaPods and Carthage.

## Use cases
- connect to a TCP server from an iOS app
- build a simple TCP echo server in Swift
- send and receive raw bytes over UDP
- make low-level socket connections with connect timeouts
- implement custom network protocols on Apple platforms

## When to choose
- you need raw TCP/UDP sockets in Swift on iOS, macOS, or other Apple platforms
- you want a minimal, easy-to-use socket API without heavy dependencies
- you are building a custom client or lightweight server on Apple devices

## When to avoid
- you need modern async/await networking — prefer Network.framework (NWConnection)
- you need HTTP or higher-level protocols rather than raw sockets
- you need cross-platform support beyond Apple platforms

## Facets
- artifact type: library
- maturity: maintenance
- function: networking
- domain: developer-tools, networking
- platform: -
- tags: tcp, udp, sockets, swift, ios, macos, apple-ecosystem

## Member repositories
- swiftsocket/SwiftSocket (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.753679+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-30T03:38:15.040954+00:00, confidence not recorded.
  - readme: https://github.com/swiftsocket/SwiftSocket (fetched 2026-08-28T04:05:22.753679+00:00, sha eb985915ec75)
- Data as of 2026-08-30T08:39:29.467469+00:00.
